summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.cpp38
-rw-r--r--core/pim/today/today.h1
-rw-r--r--core/pim/today/todayconfig.cpp32
-rw-r--r--core/pim/today/todayconfig.h4
4 files changed, 43 insertions, 32 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index a8c8651..be7cbce 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -19,24 +19,25 @@
19#include <opie2/odebug.h> 19#include <opie2/odebug.h>
20#include <opie2/opluginloader.h> 20#include <opie2/opluginloader.h>
21#include <opie2/oconfig.h> 21#include <opie2/oconfig.h>
22 22
23#include <qpe/qcopenvelope_qws.h> 23#include <qpe/qcopenvelope_qws.h>
24#include <qpe/resource.h> 24#include <qpe/resource.h>
25#include <qpe/qpeapplication.h> 25#include <qpe/qpeapplication.h>
26#include <qpe/contact.h> 26#include <qpe/contact.h>
27 27
28#include <qdir.h> 28#include <qdir.h>
29#include <qtimer.h> 29#include <qtimer.h>
30#include <qwhatsthis.h> 30#include <qwhatsthis.h>
31#include <qmessagebox.h>
31 32
32using namespace Opie::Ui; 33using namespace Opie::Ui;
33using Opie::Core::OPluginItem; 34using Opie::Core::OPluginItem;
34using Opie::Core::OPluginLoader; 35using Opie::Core::OPluginLoader;
35using Opie::Core::OPluginManager; 36using Opie::Core::OPluginManager;
36using Opie::Core::OConfig; 37using Opie::Core::OConfig;
37 38
38 39
39struct TodayPlugin { 40struct TodayPlugin {
40TodayPlugin() : iface( 0 ), guiPart( 0 ), guiBox( 0 ) {} 41TodayPlugin() : iface( 0 ), guiPart( 0 ), guiBox( 0 ) {}
41 QInterfacePtr<TodayPluginInterface> iface; 42 QInterfacePtr<TodayPluginInterface> iface;
42 TodayPluginObject *guiPart; 43 TodayPluginObject *guiPart;
@@ -45,55 +46,52 @@ TodayPlugin() : iface( 0 ), guiPart( 0 ), guiBox( 0 ) {}
45 QString name; 46 QString name;
46 bool excludeRefresh; 47 bool excludeRefresh;
47}; 48};
48 49
49static QMap<QString, TodayPlugin> pluginList; 50static QMap<QString, TodayPlugin> pluginList;
50 51
51Today::Today( QWidget* parent, const char* name, WFlags fl ) 52Today::Today( QWidget* parent, const char* name, WFlags fl )
52: TodayBase( parent, name, fl ) { 53: TodayBase( parent, name, fl ) {
53 54
54 QObject::connect( (QObject*)ConfigButton, SIGNAL( clicked() ), this, SLOT( startConfig() ) ); 55 QObject::connect( (QObject*)ConfigButton, SIGNAL( clicked() ), this, SLOT( startConfig() ) );
55 QObject::connect( (QObject*)OwnerField, SIGNAL( clicked() ), this, SLOT( editCard() ) ); 56 QObject::connect( (QObject*)OwnerField, SIGNAL( clicked() ), this, SLOT( editCard() ) );
56 57
57 #if defined(Q_WS_QWS) 58#if !defined(QT_NO_COP)
58 #if !defined(QT_NO_COP)
59 59
60 QCopChannel *todayChannel = new QCopChannel( "QPE/Today" , this ); 60 QCopChannel *todayChannel = new QCopChannel( "QPE/Today" , this );
61 connect ( todayChannel, SIGNAL( received(const QCString&,const QByteArray&) ), 61 connect ( todayChannel, SIGNAL( received(const QCString&,const QByteArray&) ),
62 this, SLOT ( channelReceived(const QCString&,const QByteArray&) ) ); 62 this, SLOT ( channelReceived(const QCString&,const QByteArray&) ) );
63 #endif 63#endif
64 #endif
65 64
66 setOwnerField(); 65 setOwnerField();
67 m_big_box = 0L; 66 m_big_box = 0L;
68 67
69 layout = new QVBoxLayout( this ); 68 layout = new QVBoxLayout( this );
70 layout->addWidget( Frame ); 69 layout->addWidget( Frame );
71 layout->addWidget( OwnerField ); 70 layout->addWidget( OwnerField );
72 71
73 m_sv = new QScrollView( this ); 72 m_sv = new QScrollView( this );
74 m_sv->setResizePolicy( QScrollView::AutoOneFit ); 73 m_sv->setResizePolicy( QScrollView::AutoOneFit );
75 m_sv->setHScrollBarMode( QScrollView::AlwaysOff ); 74 m_sv->setHScrollBarMode( QScrollView::AlwaysOff );
76 m_sv->setFrameShape( QFrame::NoFrame ); 75 m_sv->setFrameShape( QFrame::NoFrame );
77 76
78 layout->addWidget( m_sv ); 77 layout->addWidget( m_sv );
79 layout->setStretchFactor( m_sv,4 ); 78 layout->setStretchFactor( m_sv,4 );
80 79
81 m_refreshTimer = new QTimer( this ); 80 m_refreshTimer = new QTimer( this );
82 connect( m_refreshTimer, SIGNAL( timeout() ), this, SLOT( refresh() ) ); 81 connect( m_refreshTimer, SIGNAL( timeout() ), this, SLOT( refresh() ) );
83 82
84 init(); 83 init();
85 loadPlugins(); 84 loadPlugins();
86 initialize(); 85 initialize();
87 QPEApplication::showWidget( this );
88} 86}
89 87
90/** 88/**
91 * Qcop receive method. 89 * Qcop receive method.
92 */ 90 */
93void Today::channelReceived( const QCString &msg, const QByteArray & data ) { 91void Today::channelReceived( const QCString &msg, const QByteArray & data ) {
94 QDataStream stream( data, IO_ReadOnly ); 92 QDataStream stream( data, IO_ReadOnly );
95 if ( msg == "message(QString)" ) { 93 if ( msg == "message(QString)" ) {
96 QString message; 94 QString message;
97 stream >> message; 95 stream >> message;
98 setOwnerField( message ); 96 setOwnerField( message );
99 } 97 }
@@ -170,29 +168,42 @@ void Today::init() {
170 m_bblayout = new QVBoxLayout ( m_big_box ); 168 m_bblayout = new QVBoxLayout ( m_big_box );
171} 169}
172 170
173 171
174/** 172/**
175 * Load the plugins 173 * Load the plugins
176 */ 174 */
177void Today::loadPlugins() { 175void Today::loadPlugins() {
178 176
179 m_pluginLoader = new OPluginLoader( "today", true ); 177 m_pluginLoader = new OPluginLoader( "today", true );
180 m_pluginLoader->setAutoDelete( true ); 178 m_pluginLoader->setAutoDelete( true );
181 179
182 OPluginItem::List lst = m_pluginLoader->allAvailable( true );
183
184 m_manager = new OPluginManager( m_pluginLoader ); 180 m_manager = new OPluginManager( m_pluginLoader );
185 m_manager->load(); 181 m_manager->load();
186 182
183 /*
184 * check if loading of Plugins crashed
185 */
186 if( m_pluginLoader->isInSafeMode() ) {
187 QMessageBox::information(this, tr("Today Error"),
188 tr("<qt>The plugin '%1' caused Today to crash."
189 " It could be that the plugin is not properly"
190 " installed.<br>Today tries to continue loading"
191 " plugins.</qt>")
192 .arg( m_manager->crashedPlugin().name()));
193 }
194
195 OPluginItem::List lst = m_pluginLoader->filtered( true );
196
197
187 for ( OPluginItem::List::Iterator it = lst.begin(); it != lst.end(); ++it ) { 198 for ( OPluginItem::List::Iterator it = lst.begin(); it != lst.end(); ++it ) {
188 TodayPluginInterface* iface = m_pluginLoader->load<TodayPluginInterface>( *it, IID_TodayPluginInterface ); 199 TodayPluginInterface* iface = m_pluginLoader->load<TodayPluginInterface>( *it, IID_TodayPluginInterface );
189 200
190 TodayPlugin plugin; 201 TodayPlugin plugin;
191 plugin.iface = iface; 202 plugin.iface = iface;
192 plugin.name = (*it).name(); 203 plugin.name = (*it).name();
193 plugin.oplugin = (*it); 204 plugin.oplugin = (*it);
194 205
195 plugin.guiPart = plugin.iface->guiPart(); 206 plugin.guiPart = plugin.iface->guiPart();
196 plugin.excludeRefresh = plugin.guiPart->excludeFromRefresh(); 207 plugin.excludeRefresh = plugin.guiPart->excludeFromRefresh();
197 208
198 // package the whole thing into a qwidget so it can be shown and hidden 209 // package the whole thing into a qwidget so it can be shown and hidden
@@ -224,25 +235,25 @@ void Today::loadPlugins() {
224/** 235/**
225 * The method for the configuration dialog. 236 * The method for the configuration dialog.
226 */ 237 */
227void Today::startConfig() { 238void Today::startConfig() {
228 239
229 // disconnect timer to prevent problems while being on config dialog 240 // disconnect timer to prevent problems while being on config dialog
230 disconnect( m_refreshTimer, SIGNAL( timeout() ), this, SLOT( refresh() ) ); 241 disconnect( m_refreshTimer, SIGNAL( timeout() ), this, SLOT( refresh() ) );
231 m_refreshTimer->stop( ); 242 m_refreshTimer->stop( );
232 243
233 TodayConfig conf( this, "dialog", true ); 244 TodayConfig conf( this, "dialog", true );
234 conf.setUpPlugins( m_manager, m_pluginLoader ); 245 conf.setUpPlugins( m_manager, m_pluginLoader );
235 246
236 if ( conf.exec() == QDialog::Accepted ) { 247 if ( QPEApplication::execDialog(&conf) == QDialog::Accepted ) {
237 conf.writeConfig(); 248 conf.writeConfig();
238 initialize(); 249 initialize();
239 } else { 250 } else {
240 // since reinitialize is not called in that case , reconnect the signal 251 // since reinitialize is not called in that case , reconnect the signal
241 m_refreshTimer->start( 15000 ); // get the config value in here later 252 m_refreshTimer->start( 15000 ); // get the config value in here later
242 connect( m_refreshTimer, SIGNAL( timeout() ), this, SLOT( refresh() ) ); 253 connect( m_refreshTimer, SIGNAL( timeout() ), this, SLOT( refresh() ) );
243 } 254 }
244} 255}
245 256
246 257
247void Today::initialize() { 258void Today::initialize() {
248 259
@@ -335,20 +346,19 @@ void Today::startApplication() {
335} 346}
336 347
337 348
338/** 349/**
339* launch addressbook (personal card) 350* launch addressbook (personal card)
340*/ 351*/
341void Today::editCard() { 352void Today::editCard() {
342 QCopEnvelope env( "QPE/Application/addressbook", "editPersonalAndClose()" ); 353 QCopEnvelope env( "QPE/Application/addressbook", "editPersonalAndClose()" );
343} 354}
344 355
345 356
346Today::~Today() { 357Today::~Today() {
347 if (m_pluginLoader) { 358 for(QMap<QString, TodayPlugin>::Iterator it = pluginList.begin(); it != pluginList.end(); ++it )
348 delete m_pluginLoader; 359 delete it.data().guiBox;
349 } 360
350 if (m_manager) { 361 delete m_pluginLoader;
351 delete m_manager; 362 delete m_manager;
352 }
353} 363}
354 364
diff --git a/core/pim/today/today.h b/core/pim/today/today.h
index c947ae1..dfc819d 100644
--- a/core/pim/today/today.h
+++ b/core/pim/today/today.h
@@ -31,25 +31,24 @@
31 31
32 32
33class QVBoxLayout; 33class QVBoxLayout;
34 34
35namespace Opie { 35namespace Opie {
36 namespace Core { 36 namespace Core {
37 class OPluginManager; 37 class OPluginManager;
38 class OPluginLoader; 38 class OPluginLoader;
39 } 39 }
40} 40}
41 41
42class Today : public TodayBase { 42class Today : public TodayBase {
43
44 Q_OBJECT 43 Q_OBJECT
45 44
46public: 45public:
47 Today( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); 46 Today( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
48 ~Today(); 47 ~Today();
49 static QString appName() { 48 static QString appName() {
50 return QString::fromLatin1("today"); 49 return QString::fromLatin1("today");
51 } 50 }
52 51
53private slots: 52private slots:
54 void startConfig(); 53 void startConfig();
55 void startApplication(); 54 void startApplication();
diff --git a/core/pim/today/todayconfig.cpp b/core/pim/today/todayconfig.cpp
index c9823d4..dacce8b 100644
--- a/core/pim/today/todayconfig.cpp
+++ b/core/pim/today/todayconfig.cpp
@@ -87,52 +87,53 @@ TodayConfig::TodayConfig( QWidget* parent, const char* name, bool modal )
87 // Misc tab 87 // Misc tab
88 tab_3 = new QWidget( TabWidget3, "tab_3" ); 88 tab_3 = new QWidget( TabWidget3, "tab_3" );
89 QVBoxLayout *tab3Layout = new QVBoxLayout( tab_3 ); 89 QVBoxLayout *tab3Layout = new QVBoxLayout( tab_3 );
90 90
91 m_guiMisc = new TodayConfigMiscBase( tab_3 ); 91 m_guiMisc = new TodayConfigMiscBase( tab_3 );
92 92
93 tab3Layout->addWidget( m_guiMisc ); 93 tab3Layout->addWidget( m_guiMisc );
94 TabWidget3->addTab( tab_3, "SettingsIcon", tr( "Misc" ) ); 94 TabWidget3->addTab( tab_3, "SettingsIcon", tr( "Misc" ) );
95 95
96 connect ( m_appletListView , SIGNAL( clicked(QListViewItem*) ), this, SLOT( appletChanged() ) ); 96 connect ( m_appletListView , SIGNAL( clicked(QListViewItem*) ), this, SLOT( appletChanged() ) );
97 previousItem = 0l; 97 previousItem = 0l;
98 readConfig(); 98 readConfig();
99 QPEApplication::showDialog( this );
100} 99}
101 100
102 101
103void TodayConfig::setUpPlugins( OPluginManager * plugManager, OPluginLoader *plugLoader ) { 102void TodayConfig::setUpPlugins( OPluginManager * plugManager, OPluginLoader *plugLoader ) {
104 103 m_configMap.clear();
105 104
106 m_pluginManager = plugManager; 105 m_pluginManager = plugManager;
107 m_pluginLoader = plugLoader; 106 m_pluginLoader = plugLoader;
108 107
109 OPluginItem::List inLst = m_pluginLoader->allAvailable( true ); 108 OPluginItem::List inLst = m_pluginLoader->allAvailable( true );
110 109
111 OPluginItem::List lst; 110 OPluginItem::List lst;
112 for ( OPluginItem::List::Iterator it = inLst.begin(); it != inLst.end(); ++it ) { 111 for ( OPluginItem::List::Iterator it = inLst.begin(); it != inLst.end(); ++it ) {
113 lst.prepend((*it)); 112 lst.prepend((*it));
114 113
115 TodayPluginInterface* iface = m_pluginLoader->load<TodayPluginInterface>( *it, IID_TodayPluginInterface ); 114 TodayPluginInterface* iface = m_pluginLoader->load<TodayPluginInterface>( *it, IID_TodayPluginInterface );
115 TodayConfigWidget *widget = iface->guiPart()->configWidget( TabWidget3 );
116 116
117 if ( iface->guiPart()->configWidget(this) != 0l ) { 117 if (!widget )
118 TodayConfigWidget* widget = iface->guiPart()->configWidget( TabWidget3 ); 118 continue;
119 TabWidget3->addTab( widget, iface->guiPart()->pixmapNameConfig() 119
120 , iface->guiPart()->appName() ); 120 m_configMap.insert( iface, widget );
121 } 121 TabWidget3->addTab( widget, iface->guiPart()->pixmapNameConfig()
122 , iface->guiPart()->appName() );
122 } 123 }
123 124
124 for ( OPluginItem::List::Iterator it = lst.begin(); it != lst.end(); ++it ) { 125 for ( OPluginItem::List::Iterator it = lst.begin(); it != lst.end(); ++it )
125 pluginManagement( (*it) ); 126 pluginManagement( (*it) );
126 } 127
127 128
128 TabWidget3->setCurrentTab( tab_2 ); 129 TabWidget3->setCurrentTab( tab_2 );
129} 130}
130 131
131/** 132/**
132 * Autostart, uses the new (opie only) autostart method in the launcher code. 133 * Autostart, uses the new (opie only) autostart method in the launcher code.
133 * If registered against that today ist started on each resume. 134 * If registered against that today ist started on each resume.
134 */ 135 */
135void TodayConfig::setAutoStart() { 136void TodayConfig::setAutoStart() {
136 OConfig cfg( "today" ); 137 OConfig cfg( "today" );
137 cfg.setGroup( "Autostart" ); 138 cfg.setGroup( "Autostart" );
138 if ( m_autoStart ) { 139 if ( m_autoStart ) {
@@ -165,28 +166,28 @@ void TodayConfig::readConfig() {
165 m_guiMisc->CheckBoxHide->setChecked( cfg.readNumEntry( "HideBanner", 0 ) ); 166 m_guiMisc->CheckBoxHide->setChecked( cfg.readNumEntry( "HideBanner", 0 ) );
166} 167}
167 168
168/** 169/**
169 * Write the config part 170 * Write the config part
170 */ 171 */
171void TodayConfig::writeConfig() { 172void TodayConfig::writeConfig() {
172 OConfig cfg( "today" ); 173 OConfig cfg( "today" );
173 174
174 int position = m_appletListView->childCount(); 175 int position = m_appletListView->childCount();
175 176
176 QListViewItemIterator list_it( m_appletListView ); 177 QListViewItemIterator list_it( m_appletListView );
177 // 178 OPluginItem::List lst = m_pluginLoader->allAvailable( true );
179
178 // this makes sure the names get saved in the order selected 180 // this makes sure the names get saved in the order selected
179 for ( ; list_it.current(); ++list_it ) { 181 for ( ; list_it.current(); ++list_it ) {
180 OPluginItem::List lst = m_pluginLoader->allAvailable( true );
181 for ( OPluginItem::List::Iterator it = lst.begin(); it != lst.end(); ++it ) { 182 for ( OPluginItem::List::Iterator it = lst.begin(); it != lst.end(); ++it ) {
182 if ( QString::compare( (*it).name() , list_it.current()->text(0) ) == 0 ) { 183 if ( QString::compare( (*it).name() , list_it.current()->text(0) ) == 0 ) {
183 (*it).setPosition(position--); 184 (*it).setPosition(position--);
184 m_pluginManager->setEnabled( (*it),((QCheckListItem*)list_it.current())->isOn() ); 185 m_pluginManager->setEnabled( (*it),((QCheckListItem*)list_it.current())->isOn() );
185 } 186 }
186 } 187 }
187 } 188 }
188 189
189 m_pluginManager->save(); 190 m_pluginManager->save();
190 191
191 cfg.setGroup( "Autostart" ); 192 cfg.setGroup( "Autostart" );
192 m_autoStart = m_guiMisc->CheckBoxAuto->isChecked(); 193 m_autoStart = m_guiMisc->CheckBoxAuto->isChecked();
@@ -194,30 +195,29 @@ void TodayConfig::writeConfig() {
194 m_autoStartTimer = m_guiMisc->SpinBoxTime->value(); 195 m_autoStartTimer = m_guiMisc->SpinBoxTime->value();
195 cfg.writeEntry( "autostartdelay", m_autoStartTimer ); 196 cfg.writeEntry( "autostartdelay", m_autoStartTimer );
196 m_iconSize = m_guiMisc->SpinBoxIconSize->value(); 197 m_iconSize = m_guiMisc->SpinBoxIconSize->value();
197 198
198 cfg.setGroup( "General" ); 199 cfg.setGroup( "General" );
199 cfg.writeEntry( "IconSize", m_iconSize ); 200 cfg.writeEntry( "IconSize", m_iconSize );
200 cfg.writeEntry( "HideBanner", m_guiMisc->CheckBoxHide->isChecked() ); 201 cfg.writeEntry( "HideBanner", m_guiMisc->CheckBoxHide->isChecked() );
201 cfg.writeEntry( "checkinterval", m_guiMisc->SpinRefresh->value()*1000 ); 202 cfg.writeEntry( "checkinterval", m_guiMisc->SpinRefresh->value()*1000 );
202 203
203 // set autostart settings 204 // set autostart settings
204 setAutoStart(); 205 setAutoStart();
205 206
206 OPluginItem::List lst = m_pluginManager->managedPlugins(); 207 OPluginItem::List managedLst = m_pluginManager->managedPlugins();
207 for ( OPluginItem::List::Iterator it = lst.begin(); it != lst.end(); ++it ) { 208 for ( OPluginItem::List::Iterator it = managedLst.begin(); it != managedLst.end(); ++it ) {
208 TodayPluginInterface* iface = m_pluginLoader->load<TodayPluginInterface>( *it, IID_TodayPluginInterface ); 209 TodayPluginInterface* iface = m_pluginLoader->load<TodayPluginInterface>( *it, IID_TodayPluginInterface );
209 if ( iface->guiPart()->configWidget(this) != 0l ) { 210 if ( m_configMap.contains( iface ) )
210 iface->guiPart()->configWidget(this)->writeConfig(); 211 m_configMap[iface]->writeConfig();
211 }
212 } 212 }
213} 213}
214 214
215 215
216void TodayConfig::moveSelectedUp() { 216void TodayConfig::moveSelectedUp() {
217 QListViewItem *item = m_appletListView->selectedItem(); 217 QListViewItem *item = m_appletListView->selectedItem();
218 if ( item && item->itemAbove() ) { 218 if ( item && item->itemAbove() ) {
219 item->itemAbove()->moveItem( item ); 219 item->itemAbove()->moveItem( item );
220 } 220 }
221} 221}
222 222
223 223
diff --git a/core/pim/today/todayconfig.h b/core/pim/today/todayconfig.h
index ab79f31..81120d3 100644
--- a/core/pim/today/todayconfig.h
+++ b/core/pim/today/todayconfig.h
@@ -21,58 +21,60 @@
21 21
22#include <opie2/otabwidget.h> 22#include <opie2/otabwidget.h>
23#include <opie2/opluginloader.h> 23#include <opie2/opluginloader.h>
24 24
25#include <qvariant.h> 25#include <qvariant.h>
26#include <qdialog.h> 26#include <qdialog.h>
27#include <qlistview.h> 27#include <qlistview.h>
28 28
29class QCheckBox; 29class QCheckBox;
30class QLabel; 30class QLabel;
31class QSpinBox; 31class QSpinBox;
32class QTabWidget; 32class QTabWidget;
33class TodayConfigWidget;
34class TodayPluginInterface;
33 35
34namespace Opie { 36namespace Opie {
35 namespace Core { 37 namespace Core {
36 class OPluginManager; 38 class OPluginManager;
37 class OPluginLoader; 39 class OPluginLoader;
38 class OPluginItem; 40 class OPluginItem;
39 } 41 }
40} 42}
41 43
42class TodayConfig : public QDialog { 44class TodayConfig : public QDialog {
43
44 Q_OBJECT 45 Q_OBJECT
45 46
46public: 47public:
47 TodayConfig( QWidget* parent = 0, const char* name = 0, bool modal = FALSE ); 48 TodayConfig( QWidget* parent = 0, const char* name = 0, bool modal = FALSE );
48 ~TodayConfig(); 49 ~TodayConfig();
49 50
50 Opie::Ui::OTabWidget* TabWidget3; 51 Opie::Ui::OTabWidget* TabWidget3;
51 52
52 void writeConfig(); 53 void writeConfig();
53 54
54 void setUpPlugins( Opie::Core::OPluginManager * plugManager, Opie::Core::OPluginLoader * plugLoader ); 55 void setUpPlugins( Opie::Core::OPluginManager * plugManager, Opie::Core::OPluginLoader * plugLoader );
55 56
56protected slots: 57protected slots:
57 void moveSelectedUp(); 58 void moveSelectedUp();
58 void moveSelectedDown(); 59 void moveSelectedDown();
59 60
60private: 61private:
61 void setAutoStart(); 62 void setAutoStart();
62 void readConfig(); 63 void readConfig();
63 void pluginManagement( Opie::Core::OPluginItem plugItem); 64 void pluginManagement( Opie::Core::OPluginItem plugItem);
64 65
65 QListView* m_appletListView; 66 QListView* m_appletListView;
66 QMap<QString,QCheckListItem*> m_applets; 67 QMap<QString,QCheckListItem*> m_applets;
68 QMap<TodayPluginInterface*,TodayConfigWidget*> m_configMap;
67 69
68 int m_autoStart; 70 int m_autoStart;
69 int m_autoStartTimer; 71 int m_autoStartTimer;
70 int m_iconSize; 72 int m_iconSize;
71 QStringList m_excludeApplets; 73 QStringList m_excludeApplets;
72 bool m_applets_changed; 74 bool m_applets_changed;
73 75
74 QWidget* tab_2; 76 QWidget* tab_2;
75 QWidget* tab_3; 77 QWidget* tab_3;
76 QLabel* TextLabel1, *TextLabel4; 78 QLabel* TextLabel1, *TextLabel4;
77 QSpinBox* SpinBox7; 79 QSpinBox* SpinBox7;
78 80