summaryrefslogtreecommitdiff
path: root/core/pim/today/todayconfig.cpp
blob: 905ec4bfa4c4137157583b23bbdeeaac467cbc36 (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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
/*
 * todayconfig.cpp
 *
 * ---------------------
 *
 * begin       : Sun 10 17:20:00 CEST 2002
 * copyright   : (c) 2002 by Maximilian Reiß
 * email       : max.reiss@gmx.de
 *
 */
/***************************************************************************
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 ***************************************************************************/

#include "todayconfig.h"

#include <qcheckbox.h>
#include <qframe.h>
#include <qlabel.h>
#include <qspinbox.h>
#include <qtabwidget.h>
#include <qwidget.h>
#include <qlayout.h>
#include <qvariant.h>
//#include <qwhatsthis.h>

todayconfig::todayconfig( QWidget* parent,  const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl ) {
  if ( !name )
      setName( "todayconfig" );
  resize( 175, 232 );
  setCaption( tr( "Today config" ) );

  TabWidget3 = new QTabWidget( this, "TabWidget3" );
  TabWidget3->setGeometry( QRect( 0, 0, 220, 320 ) );
  TabWidget3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, TabWidget3->sizePolicy().hasHeightForWidth() ) );
  TabWidget3->setAutoMask( FALSE );
  TabWidget3->setTabShape( QTabWidget::Rounded );

  tab = new QWidget( TabWidget3, "tab" );

  Frame8 = new QFrame( tab, "Frame8" );
  Frame8->setGeometry( QRect( -5, 0, 200, 300 ) );
  Frame8->setFrameShape( QFrame::StyledPanel );
  Frame8->setFrameShadow( QFrame::Raised );

  TextLabel4 = new QLabel( Frame8, "TextLabel4" );
  TextLabel4->setGeometry( QRect( 20, 65, 100, 60 ) );
  TextLabel4->setText( tr( "Should the \n"
			   "location \n"
			   "be shown?" ) );

  TextLabel5 = new QLabel( Frame8, "TextLabel5" );
  TextLabel5->setGeometry( QRect( 20, 160, 120, 40 ) );
  TextLabel5->setText( tr( "Should the notes \n"
			   "be shown?" ) );

  CheckBox2 = new QCheckBox( Frame8, "CheckBox2" );
  CheckBox2->setGeometry( QRect( 158, 170, 27, 21 ) );
  //CheckBox2->setText( tr( "" ) );

  CheckBox1 = new QCheckBox( Frame8, "CheckBox1" );
  CheckBox1->setGeometry( QRect( 158, 65, 27, 50 ) );
  //CheckBox1->setText( tr( "" ) );

  CheckBox3 = new QCheckBox (Frame8, "CheckBox3" );
  CheckBox3->setGeometry( QRect( 158, 125, 27, 21 ) );

  TextLabel6 = new QLabel( Frame8, "All Day");
  TextLabel6->setGeometry( QRect( 20, 120, 100, 30 ) );
  TextLabel6->setText( tr( "Show only later\n"
			   "appointments") );

  SpinBox1 = new QSpinBox( Frame8, "SpinBox1" );
  SpinBox1->setGeometry( QRect( 115, 20, 58, 25 ) );
  SpinBox1->setMaxValue( 10 );
  SpinBox1->setValue( 5 );

  TextLabel3 = new QLabel( Frame8, "TextLabel3" );
  TextLabel3->setGeometry( QRect( 20, 10, 90, 60 ) );
  TextLabel3->setText( tr( "How many \n"
			   "appointment\n"
			   "should\n"
			   "be shown?" ) );
  TabWidget3->insertTab( tab, tr( "Calendar" ) );

  tab_2 = new QWidget( TabWidget3, "tab_2" );

  Frame9 = new QFrame( tab_2, "Frame9" );
  Frame9->setGeometry( QRect( -5, 0, 230, 310 ) );
  Frame9->setFrameShape( QFrame::StyledPanel );
  Frame9->setFrameShadow( QFrame::Raised );

  TextLabel6 = new QLabel( Frame9, "TextLabel6" );
  TextLabel6->setGeometry( QRect( 20, 10, 100, 60 ) );
  TextLabel6->setText( tr( "How many\n"
			   "tasks should \n"
			   "be shown?" ) );

  SpinBox2 = new QSpinBox( Frame9, "SpinBox2" );
  SpinBox2->setGeometry( QRect( 115, 20, 58, 25 ) );
  SpinBox2->setMaxValue( 20 );
  SpinBox2->setValue( 5 );
  TabWidget3->insertTab( tab_2, tr( "Tasks" ) );

  tab_3 = new QWidget( TabWidget3, "tab_3" );

  Frame14 = new QFrame( tab_3, "Frame14" );
  Frame14->setGeometry( QRect( -5, 0, 200, 220 ) );
  Frame14->setFrameShape( QFrame::StyledPanel );
  Frame14->setFrameShadow( QFrame::Raised );

  TextLabel1 = new QLabel( Frame14, "TextLabel1" );
  TextLabel1->setGeometry( QRect( 20, 20, 100, 30 ) );
  TextLabel1->setText( tr( "Clip after how\n"
			   "many letters" ) );

  SpinBox7 = new QSpinBox( Frame14, "SpinBox7" );
  SpinBox7->setGeometry( QRect( 115, 20, 58, 25 ) );
  SpinBox7->setMaxValue( 80 );

  TextLabel2 = new QLabel( Frame14, "AutoStart" );
  TextLabel2->setGeometry( QRect( 20, 60, 100, 45 ) );
  TextLabel2->setText( tr( "Should today be\n"
			   "autostarted on\n"
			   "resume?"
			   " (Opie only)" ) );

  CheckBoxAuto = new QCheckBox (Frame14, "CheckBoxAuto" );
  CheckBoxAuto->setGeometry( QRect( 158, 60, 27, 21 ) );

  TimeLabel = new QLabel( Frame14, "TimeLabel" );
  TimeLabel->setGeometry( QRect ( 20, 120, 120, 45 ) );
  TimeLabel->setText( tr( "Activate the  \n"
                          "autostart after how\n"
                          "many minutes?" ) );
  SpinBoxTime = new QSpinBox( Frame14, "TimeSpinner");
  SpinBoxTime->setGeometry( QRect( 115,  120,  58, 25 ) );

  TabWidget3->insertTab( tab_3, tr( "Misc" ) );

}

todayconfig::~todayconfig() {
}