00001 /* 00002 * addresspluginconfig.h 00003 * 00004 * copyright : (c) 2003 by Stefan Eilers 00005 * email : eilers.stefan@epost.de 00006 * 00007 * This implementation was derived from the todolist plugin implementation 00008 * 00009 */ 00010 /*************************************************************************** 00011 * * 00012 * This program is free software; you can redistribute it and/or modify * 00013 * it under the terms of the GNU General Public License as published by * 00014 * the Free Software Foundation; either version 2 of the License, or * 00015 * (at your option) any later version. * 00016 * * 00017 ***************************************************************************/ 00018 00019 #ifndef ADDRESSBOOK_PLUGIN_CONFIG_H 00020 #define ADDRESSBOOK_PLUGIN_CONFIG_H 00021 00022 #include <opie2/todayconfigwidget.h> 00023 #include <opie2/ocolorbutton.h> 00024 00025 #include <qwidget.h> 00026 #include <qspinbox.h> 00027 #include <qcheckbox.h> 00028 00029 class AddressBookPluginConfig : public TodayConfigWidget { 00030 Q_OBJECT 00031 00032 public: 00033 00034 AddressBookPluginConfig( QWidget *parent, const char *name ); 00035 ~AddressBookPluginConfig(); 00036 00037 private: 00041 bool changed(); 00042 void readConfig(); 00043 void writeConfig(); 00044 00045 QSpinBox* SpinBox2; 00046 QSpinBox* SpinBoxClip; 00047 QSpinBox* SpinDaysClip; 00048 QSpinBox* SpinUrgentClip; 00049 Opie::OColorButton* entryColor; 00050 Opie::OColorButton* headlineColor; 00051 Opie::OColorButton* urgentColor; 00052 QCheckBox* m_showBirthdayButton; 00053 QCheckBox* m_showAnniversaryButton; 00054 00055 // how many lines should be showed in the AddressBook section 00056 int m_max_lines_task; 00057 // clip the lines after X chars 00058 int m_maxCharClip; 00059 // How many days look ahead 00060 int m_daysLookAhead; 00061 // Days until urgent color is used 00062 int m_urgentDays; 00063 // Entry Color 00064 QString m_entryColor; 00065 // Headline Color 00066 QString m_headlineColor; 00067 // Urgent Color 00068 QString m_urgentColor; 00069 }; 00070 00071 00072 00073 00074 00075 #endif
1.4.2