Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwinscripts/module.h
Show All 32 Lines | |||||
33 | { | 33 | { | ||
34 | Q_OBJECT | 34 | Q_OBJECT | ||
35 | public: | 35 | public: | ||
36 | /** | 36 | /** | ||
37 | * Constructor. | 37 | * Constructor. | ||
38 | * | 38 | * | ||
39 | * @param parent Parent widget of the module | 39 | * @param parent Parent widget of the module | ||
40 | * @param args Arguments for the module | 40 | * @param args Arguments for the module | ||
41 | */ | 41 | **/ | ||
42 | explicit Module(QWidget *parent, const QVariantList &args = QVariantList()); | 42 | explicit Module(QWidget *parent, const QVariantList &args = QVariantList()); | ||
43 | 43 | | |||
44 | /** | 44 | /** | ||
45 | * Destructor. | 45 | * Destructor. | ||
46 | */ | 46 | **/ | ||
47 | ~Module(); | 47 | ~Module(); | ||
48 | virtual void load(); | 48 | virtual void load(); | ||
49 | virtual void save(); | 49 | virtual void save(); | ||
50 | virtual void defaults(); | 50 | virtual void defaults(); | ||
51 | 51 | | |||
52 | protected Q_SLOTS: | 52 | protected Q_SLOTS: | ||
53 | 53 | | |||
54 | /** | 54 | /** | ||
55 | * Called when the import script button is clicked. | 55 | * Called when the import script button is clicked. | ||
56 | */ | 56 | **/ | ||
57 | void importScript(); | 57 | void importScript(); | ||
58 | 58 | | |||
59 | void importScriptInstallFinished(KJob *job); | 59 | void importScriptInstallFinished(KJob *job); | ||
60 | 60 | | |||
61 | private: | 61 | private: | ||
62 | /** | 62 | /** | ||
63 | * UI | 63 | * UI | ||
64 | */ | 64 | **/ | ||
65 | Ui::Module *ui; | 65 | Ui::Module *ui; | ||
66 | /** | 66 | /** | ||
67 | * Updates the contents of the list view. | 67 | * Updates the contents of the list view. | ||
68 | */ | 68 | **/ | ||
69 | void updateListViewContents(); | 69 | void updateListViewContents(); | ||
70 | KSharedConfigPtr m_kwinConfig; | 70 | KSharedConfigPtr m_kwinConfig; | ||
71 | }; | 71 | }; | ||
72 | 72 | | |||
73 | #endif // MODULE_H | 73 | #endif // MODULE_H |