gSAFE  1.3.8
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
HDecorDialog Class Reference

#include <guilib.h>

Inherits QDialog.

Public Member Functions

 HDecorDialog (QWidget *parent, QString title, int no_action_closetime)
void setTitleFont (QFont f)

Public Attributes

bool anywhere_click_close
QColor bgcolor
int closerwidth
int crossmargin
int crossthick
bool dont_reset_timer
int framewidth
QColor frcolor
QColor indcolor
QColor titlecolor
int titleheight

Protected Member Functions

void keyPressEvent (QKeyEvent *e)
void mouseMoveEvent (QMouseEvent *e)
void mousePressEvent (QMouseEvent *e)
void paintEvent (QPaintEvent *pe)

Detailed Description

HDecorDialog is a decorated dialog box. Useful for special touch devides. This dialog is a descendat of the QDialog so you can use like that.

You can see a HDecorDialog on the picture, with two HPressButton:

HDecorDialog *dd = new HDecorDialog(this,"DecorDialog",20);
dd->frcolor = QColor(100,255,255);
HPressButton *pb1=new HPressButton(dd,"First function","f1");
HPressButton *pb2=new HPressButton(dd,"Second function","f2");
QVBoxLayout *lay=new QVBoxLayout(dd);
See Also

Definition at line 1309 of file guilib.h.

Constructor & Destructor Documentation

HDecorDialog::HDecorDialog ( QWidget *  parent,
QString  title,
int  no_action_closetime 

Creates a HDecorDialog

parentthe parent QWidget descendant
titlethe title text of the dialog
no_action_closetimeIf this parameter is greater then 0: The dialog is automatically closed after no_action_closetime second if no mouse moved or clicked. If the parameter is 0 the dialog doesn't closed automatically.

Definition at line 4491 of file guilib.cpp.

Member Function Documentation

void HDecorDialog::setTitleFont ( QFont  f)

Sets the font of the window title

Definition at line 4524 of file guilib.cpp.

Member Data Documentation

bool HDecorDialog::anywhere_click_close

If this attribute is true the dialog is closed when the user click anywhere. Useful for information windows

Definition at line 1327 of file guilib.h.

QColor HDecorDialog::bgcolor

Background color

Definition at line 1333 of file guilib.h.

int HDecorDialog::closerwidth

Size of the close X

Definition at line 1341 of file guilib.h.

int HDecorDialog::crossthick

Thick of the close X

Definition at line 1345 of file guilib.h.

bool HDecorDialog::dont_reset_timer

By default this attrubute is false. If this attribute is false the close timeout counter is resetted every time when the mouse moves. Otherwise the dialog closes after the coundown.

Definition at line 1330 of file guilib.h.

int HDecorDialog::framewidth

Width of the frame

Definition at line 1335 of file guilib.h.

QColor HDecorDialog::frcolor

Color of the dialog frame

Definition at line 1337 of file guilib.h.

int HDecorDialog::titleheight

Height of the window title

Definition at line 1339 of file guilib.h.

The documentation for this class was generated from the following files: