summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiepim/ui/todayconfigwidget.cpp9
-rw-r--r--libopie2/opiepim/ui/todayconfigwidget.h6
-rw-r--r--libopie2/opiepim/ui/todayplugininterface.h11
-rw-r--r--libopie2/opiepim/ui/ui.pro5
4 files changed, 25 insertions, 6 deletions
diff --git a/libopie2/opiepim/ui/todayconfigwidget.cpp b/libopie2/opiepim/ui/todayconfigwidget.cpp
new file mode 100644
index 0000000..cc98556
--- a/dev/null
+++ b/libopie2/opiepim/ui/todayconfigwidget.cpp
@@ -0,0 +1,9 @@
1#include "todayconfigwidget.h"
2
3
4TodayConfigWidget::TodayConfigWidget( QWidget* parent, const char* name, WFlags fl )
5 : QWidget( parent, name, fl )
6{}
7
8TodayConfigWidget::~TodayConfigWidget()
9{}
diff --git a/libopie2/opiepim/ui/todayconfigwidget.h b/libopie2/opiepim/ui/todayconfigwidget.h
index 134fbdf..5048998 100644
--- a/libopie2/opiepim/ui/todayconfigwidget.h
+++ b/libopie2/opiepim/ui/todayconfigwidget.h
@@ -13,25 +13,25 @@
13 * 13 *
14 * 14 *
15 * @author Maximilian Reiß 15 * @author Maximilian Reiß
16 * @short base class of all today config widgets 16 * @short base class of all today config widgets
17 */ 17 */
18class TodayConfigWidget : public QWidget { 18class TodayConfigWidget : public QWidget {
19 19 Q_OBJECT
20 20
21public: 21public:
22 22
23 /** 23 /**
24 * This will construct the widget. The widget gets deleted once the parent 24 * This will construct the widget. The widget gets deleted once the parent
25 * gets deleted as in any Qt application 25 * gets deleted as in any Qt application
26 * 26 *
27 * @param parent The parent of the widget 27 * @param parent The parent of the widget
28 * @param name The name of the object 28 * @param name The name of the object
29 */ 29 */
30 TodayConfigWidget( QWidget *parent, const char *name ) : QWidget( parent, name ) {} ; 30 TodayConfigWidget( QWidget *parent, const char *name = 0, WFlags fl = 0 );
31 virtual ~TodayConfigWidget() {}; 31 virtual ~TodayConfigWidget();
32 32
33 /** 33 /**
34 * Plugins need to reimplement this in the config widget 34 * Plugins need to reimplement this in the config widget
35 * Used when the config dialog is closed to write config stuff 35 * Used when the config dialog is closed to write config stuff
36 */ 36 */
37 virtual void writeConfig() = 0; 37 virtual void writeConfig() = 0;
diff --git a/libopie2/opiepim/ui/todayplugininterface.h b/libopie2/opiepim/ui/todayplugininterface.h
index 5dfeaa8..2b7f1e5 100644
--- a/libopie2/opiepim/ui/todayplugininterface.h
+++ b/libopie2/opiepim/ui/todayplugininterface.h
@@ -77,26 +77,35 @@ public:
77 virtual QString pixmapNameWidget() const = 0; 77 virtual QString pixmapNameWidget() const = 0;
78 78
79 /** 79 /**
80 * widget for the today view 80 * widget for the today view
81 * It _needs_ a parent here. 81 * It _needs_ a parent here.
82 * Plugin authors need to take parent as parent! 82 * Plugin authors need to take parent as parent!
83 *
84 * Note that you always need to create a new QWidget
85 * on this call and the ownership is transfered to the
86 * caller.
87 *
88 * @param The parent of your to be created widget
83 */ 89 */
84 virtual QWidget* widget( QWidget *parent ) = 0; 90 virtual QWidget* widget( QWidget *parent ) = 0;
85 91
86 /** 92 /**
87 * Pixmap used in the config widget 93 * Pixmap used in the config widget
88 */ 94 */
89 virtual QString pixmapNameConfig() const = 0; 95 virtual QString pixmapNameConfig() const = 0;
90 96
91 /** 97 /**
92 * Config plugin widget - optional 98 * Config plugin widget - optional
93 * If the plugin has a config widget, it _needs_ a parent here. 99 * If the plugin has a config widget, it _needs_ a parent here.
94 * may return 0 if no config widget is needed 100 * may return 0 if no config widget is needed
101 *
102 * Note: Always create a new Widget on this call and ownership
103 * is transfered
95 */ 104 */
96 virtual TodayConfigWidget* configWidget( QWidget * ) = 0; 105 virtual TodayConfigWidget* configWidget( QWidget *parent ) = 0;
97 106
98 /** 107 /**
99 * The application that should be assigned to the button (pixmap) 108 * The application that should be assigned to the button (pixmap)
100 * Today will show the plugin icon. On click it tries to execute the 109 * Today will show the plugin icon. On click it tries to execute the
101 * plugin related application. 110 * plugin related application.
102 */ 111 */
diff --git a/libopie2/opiepim/ui/ui.pro b/libopie2/opiepim/ui/ui.pro
index 6aa01a7..53c7ae2 100644
--- a/libopie2/opiepim/ui/ui.pro
+++ b/libopie2/opiepim/ui/ui.pro
@@ -1,9 +1,10 @@
1HEADERS += ui/opimmainwindow.h \ 1HEADERS += ui/opimmainwindow.h \
2 ui/opimrecurrencewidget.h \ 2 ui/opimrecurrencewidget.h \
3 ui/todayconfigwidget.h \ 3 ui/todayconfigwidget.h \
4 ui/todayplugininterface.h 4 ui/todayplugininterface.h
5 5
6SOURCES += ui/opimmainwindow.cpp \ 6SOURCES += ui/opimmainwindow.cpp \
7 ui/opimrecurrencewidget.cpp 7 ui/opimrecurrencewidget.cpp \
8 ui/todayconfigwidget.cpp
8 9
9INTERFACES += ui/opimrecurrencebase.ui \ No newline at end of file 10INTERFACES += ui/opimrecurrencebase.ui