blob: 5626e5d0fbab5be6ec7a950c741e9ff21085db29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
/*
* addresspluginconfig.h
*
* copyright : (c) 2003 by Stefan Eilers
* email : eilers.stefan@epost.de
*
* This implementation was derived from the todolist plugin implementation
*
*/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef ADDRESSBOOK_PLUGIN_CONFIG_H
#define ADDRESSBOOK_PLUGIN_CONFIG_H
#include <qwidget.h>
#include <qspinbox.h>
#include <qradiobutton.h>
#include <opie/todayconfigwidget.h>
#include <opie/ocolorbutton.h>
class AddressBookPluginConfig : public TodayConfigWidget {
Q_OBJECT
public:
AddressBookPluginConfig( QWidget *parent, const char *name );
~AddressBookPluginConfig();
private:
/**
* if changed then save
*/
bool changed();
void readConfig();
void writeConfig();
QSpinBox* SpinBox2;
QSpinBox* SpinBoxClip;
QSpinBox* SpinDaysClip;
QSpinBox* SpinUrgentClip;
OColorButton* entryColor;
OColorButton* headlineColor;
OColorButton* urgentColor;
QRadioButton* m_showBirthdayButton;
QRadioButton* m_showAnniversaryButton;
// how many lines should be showed in the AddressBook section
int m_max_lines_task;
// clip the lines after X chars
int m_maxCharClip;
// How many days look ahead
int m_daysLookAhead;
// Days until urgent color is used
int m_urgentDays;
// Entry Color
QString m_entryColor;
// Headline Color
QString m_headlineColor;
// Urgent Color
QString m_urgentColor;
};
#endif
|