00001 /* 00002 This file is part of the Opie Project 00003 00004 Copyright (C) Maximilian Reiss <harlekin@handhelds.org> 00005 =. 00006 .=l. 00007 .>+-= 00008 _;:, .> :=|. This program is free software; you can 00009 .> <`_, > . <= redistribute it and/or modify it under 00010 :`=1 )Y*s>-.-- : the terms of the GNU Library General Public 00011 .="- .-=="i, .._ License as published by the Free Software 00012 - . .-<_> .<> Foundation; either version 2 of the License, 00013 ._= =} : or (at your option) any later version. 00014 .%`+i> _;_. 00015 .i_,=:_. -<s. This program is distributed in the hope that 00016 + . -:. = it will be useful, but WITHOUT ANY WARRANTY; 00017 : .. .:, . . . without even the implied warranty of 00018 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A 00019 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU 00020 ..}^=.= = ; Library General Public License for more 00021 ++= -. .` .: details. 00022 : = ...= . :.=- 00023 -. .:....=;==+<; You should have received a copy of the GNU 00024 -_. . . )=. = Library General Public License along with 00025 -- :-=` this library; see the file COPYING.LIB. 00026 If not, write to the Free Software Foundation, 00027 Inc., 59 Temple Place - Suite 330, 00028 Boston, MA 02111-1307, USA. 00029 */ 00030 00031 #ifndef TODAYCONFIG_H 00032 #define TODAYCONFIG_H 00033 00034 #include "todayconfigmiscbase.h" 00035 00036 #include <opie2/otabwidget.h> 00037 #include <opie2/opluginloader.h> 00038 00039 #include <qvariant.h> 00040 #include <qdialog.h> 00041 #include <qlistview.h> 00042 00043 class QCheckBox; 00044 class QLabel; 00045 class QSpinBox; 00046 class QTabWidget; 00047 class TodayConfigWidget; 00048 class TodayPluginInterface; 00049 00050 namespace Opie { 00051 namespace Core { 00052 class OPluginManager; 00053 class OPluginLoader; 00054 class OPluginItem; 00055 } 00056 } 00057 00058 class TodayConfig : public QDialog { 00059 Q_OBJECT 00060 00061 public: 00062 TodayConfig( QWidget* parent = 0, const char* name = 0, bool modal = FALSE ); 00063 ~TodayConfig(); 00064 00065 Opie::Ui::OTabWidget* TabWidget3; 00066 00067 void writeConfig(); 00068 00069 void setUpPlugins( Opie::Core::OPluginManager * plugManager, Opie::Core::OPluginLoader * plugLoader ); 00070 00071 protected slots: 00072 void moveSelectedUp(); 00073 void moveSelectedDown(); 00074 00075 private: 00076 void setAutoStart(); 00077 void readConfig(); 00078 void pluginManagement( Opie::Core::OPluginItem plugItem); 00079 00080 QListView* m_appletListView; 00081 QMap<QString,QCheckListItem*> m_applets; 00082 QMap<TodayPluginInterface*,TodayConfigWidget*> m_configMap; 00083 00084 int m_autoStart; 00085 int m_autoStartTimer; 00086 int m_iconSize; 00087 QStringList m_excludeApplets; 00088 bool m_applets_changed; 00089 00090 QWidget* tab_2; 00091 QWidget* tab_3; 00092 QLabel* TextLabel1, *TextLabel4; 00093 QSpinBox* SpinBox7; 00094 00095 Opie::Core::OPluginManager *m_pluginManager; 00096 Opie::Core::OPluginLoader *m_pluginLoader; 00097 00098 QCheckListItem *previousItem; 00099 00100 TodayConfigMiscBase *m_guiMisc; 00101 }; 00102 00103 #endif
1.4.2