author | zautrix <zautrix> | 2005-07-02 05:23:23 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-02 05:23:23 (UTC) |
commit | b51bfb06293b34b77c46954253ab1b5220c8dd03 (patch) (unidiff) | |
tree | 63caa6a4df764e14b49440800c8744b42ce94d82 /korganizer/kofilterview.h | |
parent | 36a9df18a9789d0f44d0485b5f47c4f0329abb22 (diff) | |
download | kdepimpi-b51bfb06293b34b77c46954253ab1b5220c8dd03.zip kdepimpi-b51bfb06293b34b77c46954253ab1b5220c8dd03.tar.gz kdepimpi-b51bfb06293b34b77c46954253ab1b5220c8dd03.tar.bz2 |
fixxx
-rw-r--r-- | korganizer/kofilterview.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/korganizer/kofilterview.h b/korganizer/kofilterview.h index 02107cf..874fc6a 100644 --- a/korganizer/kofilterview.h +++ b/korganizer/kofilterview.h | |||
@@ -65,17 +65,19 @@ class KONewCalPrefs : public QDialog | |||
65 | url = new KURLRequester ( this ); | 65 | url = new KURLRequester ( this ); |
66 | lay->addWidget( url ); | 66 | lay->addWidget( url ); |
67 | QPushButton * ok = new QPushButton( i18n("OK"), this ); | 67 | QPushButton * ok = new QPushButton( i18n("OK"), this ); |
68 | lay->addWidget( ok ); | 68 | lay->addWidget( ok ); |
69 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); | 69 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); |
70 | lay->addWidget( cancel ); | 70 | lay->addWidget( cancel ); |
71 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( checkValid() ) ); | 71 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( checkValid() ) ); |
72 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); | 72 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); |
73 | setMinimumWidth( 220 ); | 73 | int minwid = 220; |
74 | if ( QApplication::desktop()->width() >= 320 ) minwid = 300; | ||
75 | setMinimumWidth( minwid ); | ||
74 | resize(sizeHint() ); | 76 | resize(sizeHint() ); |
75 | } | 77 | } |
76 | 78 | ||
77 | QString calName() { return nameE->text(); } | 79 | QString calName() { return nameE->text(); } |
78 | QString calFileName() { return url->url(); } | 80 | QString calFileName() { return url->url(); } |
79 | 81 | ||
80 | public slots: | 82 | public slots: |
81 | void checkValid() { | 83 | void checkValid() { |
@@ -158,28 +160,29 @@ class KOCalRadioButton : public QRadioButton | |||
158 | { | 160 | { |
159 | connect( this, SIGNAL( toggled ( bool ) ), | 161 | connect( this, SIGNAL( toggled ( bool ) ), |
160 | SLOT( bottonClicked( bool ) )); | 162 | SLOT( bottonClicked( bool ) )); |
161 | mNumber = -1; | 163 | mNumber = -1; |
162 | setFocusPolicy(NoFocus); | 164 | setFocusPolicy(NoFocus); |
163 | //setMaximumWidth( 10 ); | 165 | //setMaximumWidth( 10 ); |
164 | 166 | ||
165 | } | 167 | } |
168 | int num() { return mNumber;} | ||
166 | void setNum ( int num ) {mNumber = num; } | 169 | void setNum ( int num ) {mNumber = num; } |
167 | signals: | 170 | signals: |
168 | void selectNum ( int, bool ); | 171 | void selectNum ( int ); |
169 | private: | 172 | private: |
170 | int mNumber; | 173 | int mNumber; |
171 | void keyPressEvent ( QKeyEvent * e ) | 174 | void keyPressEvent ( QKeyEvent * e ) |
172 | { | 175 | { |
173 | e->ignore(); | 176 | e->ignore(); |
174 | } | 177 | } |
175 | 178 | ||
176 | private slots : | 179 | private slots : |
177 | void bottonClicked( bool b) { if ( mNumber > 0 ) emit selectNum ( mNumber , b); } | 180 | void bottonClicked( bool b) { if ( mNumber > 0 ) emit selectNum ( mNumber); } |
178 | }; | 181 | }; |
179 | 182 | ||
180 | 183 | ||
181 | 184 | ||
182 | class KOFilterView : public KOFilterView_base | 185 | class KOFilterView : public KOFilterView_base |
183 | { | 186 | { |
184 | Q_OBJECT | 187 | Q_OBJECT |
185 | public: | 188 | public: |
@@ -211,38 +214,39 @@ class KOCalEditView : public QScrollView | |||
211 | int addCalendar( QString calName, QString fileName, bool ask = true ); | 214 | int addCalendar( QString calName, QString fileName, bool ask = true ); |
212 | int getBirtdayID(); | 215 | int getBirtdayID(); |
213 | public slots: | 216 | public slots: |
214 | void addCal(); | 217 | void addCal(); |
215 | void enableAll(); | 218 | void enableAll(); |
216 | void enableAlarm(); | 219 | void enableAlarm(); |
217 | void disableRO(); | 220 | void disableRO(); |
218 | void deleteAll(); | 221 | void deleteAll(); |
219 | void selectStdCal(int,bool ); | 222 | void selectStdCal(int); |
220 | void selectCal(int,bool ); | 223 | void selectCal(int,bool ); |
221 | void selectCalAlarm(int,bool ); | 224 | void selectCalAlarm(int,bool ); |
222 | void selectReadOnly(int,bool ); | 225 | void selectReadOnly(int,bool ); |
223 | void setColor(const QColor &,int) ; | 226 | void setColor(const QColor &,int) ; |
224 | void deleteCal(int) ; | 227 | void deleteCal(int) ; |
225 | void infoCal(int) ; | 228 | void infoCal(int) ; |
226 | void readConfig(); | 229 | void readConfig(); |
227 | void defaultInfo(); | 230 | void defaultInfo(); |
231 | void findNewStandard(); | ||
228 | signals: | 232 | signals: |
229 | void alarmEnabled ( int cal, bool enable ); | 233 | void alarmEnabled ( int cal, bool enable ); |
230 | void calendarEnabled ( int cal, bool enable ); | 234 | void calendarEnabled ( int cal, bool enable ); |
231 | void calendarReadonly ( int cal, bool readonly ); | 235 | void calendarReadonly ( int cal, bool readonly ); |
232 | void setCalendarDefault ( int cal ); | 236 | void setCalendarDefault ( int cal ); |
233 | void removeCalendar ( int cal ); | 237 | void removeCalendar ( int cal ); |
234 | void calendarAdded( int ); | 238 | void calendarAdded( int ); |
235 | void needsUpdate(); | 239 | void needsUpdate(); |
236 | void checkCalendar(); | 240 | void checkCalendar(); |
237 | 241 | ||
238 | private: | 242 | private: |
239 | QWidget *mw; | 243 | QWidget *mw; |
240 | void toggleList ( QPtrList<KOCalCheckButton> ); | 244 | void toggleList ( QPtrList<KOCalCheckButton> , bool b = true ); |
241 | QPtrList<KOCalRadioButton> mStdandardB; | 245 | QPtrList<KOCalRadioButton> mStdandardB; |
242 | QPtrList<KOCalCheckButton> mEnabledB; | 246 | QPtrList<KOCalCheckButton> mEnabledB; |
243 | QPtrList<KOCalCheckButton> mAlarmB; | 247 | QPtrList<KOCalCheckButton> mAlarmB; |
244 | QPtrList<KOCalCheckButton> mROB; | 248 | QPtrList<KOCalCheckButton> mROB; |
245 | QGridLayout* mainLayout; | 249 | QGridLayout* mainLayout; |
246 | }; | 250 | }; |
247 | 251 | ||
248 | 252 | ||