kdialog.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
#ifndef _KDIALOG_H_
00022
#define _KDIALOG_H_
00023
00024
class QLayoutItem;
00025
00026
#include <qdialog.h>
00027
00051 class KDialog :
public QDialog
00052 {
00053 Q_OBJECT
00054
00055
public:
00056
00062
KDialog(
QWidget *parent = 0,
const char *name = 0,
00063
bool modal =
false, WFlags f = 0);
00064
00069
static int marginHint();
00070
00075
static int spacingHint();
00076
00084
static void resizeLayout(
QWidget *widget,
int margin,
int spacing );
00085
00093
static void resizeLayout(
QLayoutItem *lay,
int margin,
int spacing );
00094
00105
static void centerOnScreen(
QWidget *widget,
int screen = -1 );
00106
00116
static bool avoidArea(
QWidget *widget,
const QRect& area,
int screen = -1 );
00117
00118
public slots:
00123
virtual void polish();
00124
00132
virtual void setCaption(
const QString &caption );
00133
00140
virtual void setPlainCaption(
const QString &caption );
00141
00142
00143
protected:
00147
virtual void keyPressEvent(
QKeyEvent*);
00148
00149
00150 signals:
00158
void layoutHintChanged();
00159
00160
private:
00161
static int mMarginSize;
00162
static int mSpacingSize;
00163
00164
protected:
00165
virtual void virtual_hook(
int id,
void* data );
00166
private:
00167
class KDialogPrivate;
00168 KDialogPrivate *d;
00169
00170 };
00171
00172
00188
class KDialogQueuePrivate;
00189
class KDialogQueue :
public QObject
00190 {
00191 Q_OBJECT
00192
00193
public:
00194
00195
static void queueDialog(
QDialog *);
00196
00197 ~KDialogQueue();
00198
00199
protected:
00200 KDialogQueue();
00201
static KDialogQueue *
self();
00202
00203
private slots:
00204
void slotShowQueuedDialog();
00205
00206
protected:
00207 KDialogQueuePrivate *d;
00208
static KDialogQueue *_self;
00209 };
00210
00211
#endif // __KDIALOG_H
This file is part of the documentation for kdeui Library Version 3.2.3.