39 #pragma warning( disable:4251 )
69 typedef enum {
None = 0x00000000,
77 OKCancel = OK | Cancel,
79 Standard = OK | Cancel |
Help,
80 All = Standard | YesNo | Apply | Close
83 typedef enum { Accept = 0x000001,
90 QtxDialog(
QWidget* = 0,
bool =
false,
bool =
false,
const int = Standard, Qt::WindowFlags = 0 );
93 void setDialogFlags(
const int );
94 void clearDialogFlags(
const int );
95 bool testDialogFlags(
const int )
const;
97 void setButtonFlags(
const int );
98 void clearButtonFlags(
const int );
99 bool testButtonFlags(
const int )
const;
101 int buttonPosition(
const int )
const;
102 void setButtonPosition(
const int,
const int = -1 );
103 void setPlacePosition(
const int,
const int );
105 int placePolicy(
const int )
const;
106 void setPlacePolicy(
const int,
const int );
107 void setButtonPlace(
const int,
const int );
109 QString buttonText(
const int );
110 void setButtonText(
const int,
const QString& text );
112 void setButtonFocus(
const int );
113 bool hasButtonFocus(
const int )
const;
115 bool isButtonEnabled(
const int )
const;
116 void setButtonEnabled(
const bool,
const int );
118 bool isBorderEnabled(
const int )
const;
119 void setBorderEnabled(
const bool,
const int );
121 void removeButton(
const int );
122 int insertButton(
const QString&,
const int = BottomArea );
127 uint setAlignment( uint align );
128 static void setUnits(
QLabel*,
const QString& );
131 void dlgButton(
int );
132 void dlgParamChanged();
145 virtual void setVisible(
bool );
148 virtual void accept();
149 virtual void reject();
155 void onSizeGripDestroyed();
162 QFrame* mainFrame()
const;
164 virtual bool acceptData()
const;
165 virtual bool rejectData()
const;
170 ButtonMap buttons(
const int = All )
const;
174 virtual void showEvent( QShowEvent* );
175 virtual void hideEvent( QHideEvent* );
176 virtual void closeEvent( QCloseEvent* );
177 virtual void childEvent( QChildEvent* );
178 virtual void keyPressEvent( QKeyEvent* );
181 void adjustButtons();
204 #pragma warning( default:4251 )