1 | /*************************************************************************** |
2 | knewprojectdlg.h - description |
3 | ------------------- |
4 | begin : Tue Dec 28 1999 |
5 | copyright : (C) 1999 by François Dupoux |
6 | (C) 2004 Emiliano Gulmini <emi_barbarossa@yahoo.it> |
7 | email : dupoux@dupoux.com |
8 | ***************************************************************************/ |
9 | |
10 | /*************************************************************************** |
11 | * * |
12 | * This program is free software; you can redistribute it and/or modify * |
13 | * it under the terms of the GNU General Public License as published by * |
14 | * the Free Software Foundation; either version 2 of the License, or * |
15 | * (at your option) any later version. * |
16 | * * |
17 | ***************************************************************************/ |
18 | |
19 | #ifndef KNEWPROJECTDLG_H |
20 | #define KNEWPROJECTDLG_H |
21 | |
22 | //KDE |
23 | |
24 | //local |
25 | #include "knewprojectdlgs.h" |
26 | #include "configurationclasses.h" |
27 | #include "ktoolinvocation.h" |
28 | |
29 | class KNewProjectDlg : public KNewProjectDlgS |
30 | { |
31 | Q_OBJECT |
32 | |
33 | private: |
34 | QString m_searchNowFlag; |
35 | RCOptions* m_option; |
36 | |
37 | public: |
38 | explicit KNewProjectDlg(RCOptions* info, QWidget *parent=0, const char *name=0); |
39 | ~KNewProjectDlg(); |
40 | |
41 | public: |
42 | //void updateOptions(const RCOptions& info); |
43 | void saveRCOptions(); |
44 | |
45 | protected slots: |
46 | void slotDir(); |
47 | void slotOK(); |
48 | void slotReject(); |
49 | void slotSearchNow(); |
50 | void slotSearchLater(); |
51 | void slotSearchLineEdit(const QString& t); |
52 | void slotEnableSpinboxSizeMin(bool b); |
53 | void slotEnableSpinboxSizeMax(bool b); |
54 | void slotEnableCbValidDate(bool b); |
55 | void slotEnableChbUser(bool b); |
56 | void slotEnableChbGroup(bool b); |
57 | void slotEnableChbBackup(bool b); |
58 | void slotHelp(){ KToolInvocation::invokeHelp(QString::null, "kfilereplace" ); } //krazy:exclude=nullstrassign for old broken gcc |
59 | |
60 | private: |
61 | void initGUI(); |
62 | |
63 | void loadOptions(); |
64 | void loadFileSizeOptions(); |
65 | void loadDateAccessOptions(); |
66 | void loadOwnerOptions(); |
67 | void loadLocationsList(); |
68 | void loadFiltersList(); |
69 | void loadBackupExtensionOptions(); |
70 | |
71 | void saveOptions(); |
72 | void saveFileSizeOptions(); |
73 | void saveDateAccessOptions(); |
74 | void saveOwnerOptions(); |
75 | void saveLocationsList(); |
76 | void saveFiltersList(); |
77 | void saveBackupExtensionOptions(); |
78 | |
79 | bool contains(Q3ListView* lv,const QString& s, int column); |
80 | void setDatas(const QString& directoryString, const QString& filterString); |
81 | void whatsThis(); |
82 | }; |
83 | |
84 | #endif // KNewProjectDlg |
85 | |