-rw-r--r-- | microkde/kdialogbase.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/microkde/kdialogbase.h b/microkde/kdialogbase.h index 199d2fa..7b44bfb 100644 --- a/microkde/kdialogbase.h +++ b/microkde/kdialogbase.h | |||
@@ -76,64 +76,66 @@ class KDialogBase : public KDialog | |||
76 | 76 | ||
77 | bool showPage( int index ); | 77 | bool showPage( int index ); |
78 | void hideButtons(); | 78 | void hideButtons(); |
79 | 79 | ||
80 | QFrame *plainPage(); | 80 | QFrame *plainPage(); |
81 | 81 | ||
82 | signals: | 82 | signals: |
83 | void user1Clicked(); | 83 | void user1Clicked(); |
84 | void user2Clicked(); | 84 | void user2Clicked(); |
85 | /** | 85 | /** |
86 | * The Apply button was pressed. This signal is only emitted if | 86 | * The Apply button was pressed. This signal is only emitted if |
87 | * @ref slotApply() is not replaced. | 87 | * @ref slotApply() is not replaced. |
88 | */ | 88 | */ |
89 | void applyClicked(); | 89 | void applyClicked(); |
90 | 90 | ||
91 | /** | 91 | /** |
92 | * The OK button was pressed. This signal is only emitted if | 92 | * The OK button was pressed. This signal is only emitted if |
93 | * @ref slotOk() is not replaced. | 93 | * @ref slotOk() is not replaced. |
94 | */ | 94 | */ |
95 | void okClicked(); | 95 | void okClicked(); |
96 | 96 | ||
97 | /** | 97 | /** |
98 | * The Cancel button was pressed. This signal is only emitted if | 98 | * The Cancel button was pressed. This signal is only emitted if |
99 | * @ref slotCancel() is not replaced. | 99 | * @ref slotCancel() is not replaced. |
100 | */ | 100 | */ |
101 | void cancelClicked(); | 101 | void cancelClicked(); |
102 | 102 | ||
103 | /** | 103 | /** |
104 | * The Close button was pressed. This signal is only emitted if | 104 | * The Close button was pressed. This signal is only emitted if |
105 | * @ref slotClose() is not replaced. | 105 | * @ref slotClose() is not replaced. |
106 | */ | 106 | */ |
107 | void closeClicked(); | 107 | void closeClicked(); |
108 | void defaultClicked(); | ||
108 | 109 | ||
109 | protected slots: | 110 | protected slots: |
110 | virtual void slotOk(); | 111 | virtual void slotOk(); |
111 | virtual void slotApply(); | 112 | virtual void slotApply(); |
112 | virtual void slotCancel(); | 113 | virtual void slotCancel(); |
113 | virtual void slotClose(); | 114 | virtual void slotClose(); |
114 | virtual void slotUser1(); | 115 | virtual void slotUser1(); |
115 | virtual void slotUser2(); | 116 | virtual void slotUser2(); |
116 | 117 | ||
117 | protected: | 118 | protected: |
118 | QPushButton *findButton( ButtonCode ); | 119 | QPushButton *findButton( ButtonCode ); |
119 | 120 | ||
120 | private: | 121 | private: |
121 | QTabWidget *tabWidget(); | 122 | QTabWidget *tabWidget(); |
122 | void init( const QString &caption, int buttonMask, | 123 | void init( const QString &caption, int buttonMask, |
123 | const QString &user1=QString::null, const QString &user2=QString::null ); | 124 | const QString &user1=QString::null, const QString &user2=QString::null ); |
124 | void initLayout(); | 125 | void initLayout(); |
125 | 126 | ||
126 | QWidget *mMainWidget; | 127 | QWidget *mMainWidget; |
127 | QTabWidget *mTabWidget; | 128 | QTabWidget *mTabWidget; |
128 | QFrame *mPlainPage; | 129 | QFrame *mPlainPage; |
129 | QBoxLayout *mTopLayout; | 130 | QBoxLayout *mTopLayout; |
130 | 131 | ||
131 | QPushButton *mUser1Button; | 132 | QPushButton *mUser1Button; |
132 | QPushButton *mUser2Button; | 133 | QPushButton *mUser2Button; |
133 | QPushButton *mCloseButton; | 134 | QPushButton *mCloseButton; |
134 | QPushButton *mOkButton; | 135 | QPushButton *mOkButton; |
135 | QPushButton *mApplyButton; | 136 | QPushButton *mApplyButton; |
136 | QPushButton *mCancelButton; | 137 | QPushButton *mCancelButton; |
138 | QPushButton *mDefaultButton; | ||
137 | }; | 139 | }; |
138 | 140 | ||
139 | #endif | 141 | #endif |