author | zautrix <zautrix> | 2004-06-26 19:01:18 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-06-26 19:01:18 (UTC) |
commit | b9aad1f15dc600e4dbe4c62d3fcced6363188ba3 (patch) (unidiff) | |
tree | 2c3d4004fb21c72cba65793859f9bcd8ffd3a49c /korganizer/filteredit_base.cpp | |
download | kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.zip kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.gz kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.bz2 |
Initial revision
Diffstat (limited to 'korganizer/filteredit_base.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/filteredit_base.cpp | 128 |
1 files changed, 128 insertions, 0 deletions
diff --git a/korganizer/filteredit_base.cpp b/korganizer/filteredit_base.cpp new file mode 100644 index 0000000..21a0954 --- a/dev/null +++ b/korganizer/filteredit_base.cpp | |||
@@ -0,0 +1,128 @@ | |||
1 | /**************************************************************************** | ||
2 | ** Form implementation generated from reading ui file 'filteredit_base.ui' | ||
3 | ** | ||
4 | ** Created: Di Mai 4 15:30:31 2004 | ||
5 | ** by: The User Interface Compiler ($Id$) | ||
6 | ** | ||
7 | ** WARNING! All changes made in this file will be lost! | ||
8 | ****************************************************************************/ | ||
9 | |||
10 | #include "filteredit_base.h" | ||
11 | |||
12 | #include <qvariant.h> | ||
13 | #include <qpushbutton.h> | ||
14 | #include <qframe.h> | ||
15 | #include <qbuttongroup.h> | ||
16 | #include <qradiobutton.h> | ||
17 | #include <qlistbox.h> | ||
18 | #include <qlabel.h> | ||
19 | #include <qcheckbox.h> | ||
20 | #include <qlayout.h> | ||
21 | #include <qtooltip.h> | ||
22 | #include <qwhatsthis.h> | ||
23 | |||
24 | /* | ||
25 | * Constructs a FilterEdit_base as a child of 'parent', with the | ||
26 | * name 'name' and widget flags set to 'f'. | ||
27 | */ | ||
28 | FilterEdit_base::FilterEdit_base( QWidget* parent, const char* name, WFlags fl ) | ||
29 | : QWidget( parent, name, fl ) | ||
30 | { | ||
31 | if ( !name ) | ||
32 | setName( "FilterEdit_base" ); | ||
33 | FilterEdit_baseLayout = new QVBoxLayout( this, 0, 0, "FilterEdit_baseLayout"); | ||
34 | |||
35 | mCriteriaFrame = new QFrame( this, "mCriteriaFrame" ); | ||
36 | mCriteriaFrame->setFrameShape( QFrame::StyledPanel ); | ||
37 | mCriteriaFrame->setFrameShadow( QFrame::Raised ); | ||
38 | mCriteriaFrameLayout = new QGridLayout( mCriteriaFrame, 1, 1, 3, 2, "mCriteriaFrameLayout"); | ||
39 | |||
40 | ButtonGroup1 = new QButtonGroup( mCriteriaFrame, "ButtonGroup1" ); | ||
41 | ButtonGroup1->setColumnLayout(0, Qt::Vertical ); | ||
42 | ButtonGroup1->layout()->setSpacing( 6 ); | ||
43 | ButtonGroup1->layout()->setMargin( 11 ); | ||
44 | ButtonGroup1Layout = new QVBoxLayout( ButtonGroup1->layout() ); | ||
45 | ButtonGroup1Layout->setAlignment( Qt::AlignTop ); | ||
46 | |||
47 | mCatShowCheck = new QRadioButton( ButtonGroup1, "mCatShowCheck" ); | ||
48 | ButtonGroup1Layout->addWidget( mCatShowCheck ); | ||
49 | |||
50 | mCatHideCheck = new QRadioButton( ButtonGroup1, "mCatHideCheck" ); | ||
51 | ButtonGroup1Layout->addWidget( mCatHideCheck ); | ||
52 | |||
53 | mCatList = new QListBox( ButtonGroup1, "mCatList" ); | ||
54 | ButtonGroup1Layout->addWidget( mCatList ); | ||
55 | |||
56 | mCatEditButton = new QPushButton( ButtonGroup1, "mCatEditButton" ); | ||
57 | ButtonGroup1Layout->addWidget( mCatEditButton ); | ||
58 | |||
59 | mCriteriaFrameLayout->addWidget( ButtonGroup1, 0, 0 ); | ||
60 | |||
61 | layout1 = new QHBoxLayout( 0, 0, 0, "layout1"); | ||
62 | |||
63 | textLabel1 = new QLabel( mCriteriaFrame, "textLabel1" ); | ||
64 | layout1->addWidget( textLabel1 ); | ||
65 | |||
66 | mRecurringCheck = new QCheckBox( mCriteriaFrame, "mRecurringCheck" ); | ||
67 | layout1->addWidget( mRecurringCheck ); | ||
68 | |||
69 | mCompletedCheck = new QCheckBox( mCriteriaFrame, "mCompletedCheck" ); | ||
70 | layout1->addWidget( mCompletedCheck ); | ||
71 | |||
72 | mCriteriaFrameLayout->addLayout( layout1, 1, 0 ); | ||
73 | |||
74 | layout2 = new QHBoxLayout( 0, 0, 0, "layout2"); | ||
75 | |||
76 | textLabel2 = new QLabel( mCriteriaFrame, "textLabel2" ); | ||
77 | layout2->addWidget( textLabel2 ); | ||
78 | |||
79 | mPublicCheck = new QCheckBox( mCriteriaFrame, "mPublicCheck" ); | ||
80 | layout2->addWidget( mPublicCheck ); | ||
81 | |||
82 | mPrivateCheck = new QCheckBox( mCriteriaFrame, "mPrivateCheck" ); | ||
83 | layout2->addWidget( mPrivateCheck ); | ||
84 | |||
85 | mConfidentialCheck = new QCheckBox( mCriteriaFrame, "mConfidentialCheck" ); | ||
86 | mConfidentialCheck->setChecked( FALSE ); | ||
87 | layout2->addWidget( mConfidentialCheck ); | ||
88 | |||
89 | mCriteriaFrameLayout->addLayout( layout2, 2, 0 ); | ||
90 | FilterEdit_baseLayout->addWidget( mCriteriaFrame ); | ||
91 | languageChange(); | ||
92 | resize( QSize(284, 241).expandedTo(minimumSizeHint()) ); | ||
93 | clearWState( WState_Polished ); | ||
94 | } | ||
95 | |||
96 | /* | ||
97 | * Destroys the object and frees any allocated resources | ||
98 | */ | ||
99 | FilterEdit_base::~FilterEdit_base() | ||
100 | { | ||
101 | // no need to delete child widgets, Qt does it all for us | ||
102 | } | ||
103 | |||
104 | /* | ||
105 | * Sets the strings of the subwidgets using the current | ||
106 | * language. | ||
107 | */ | ||
108 | void FilterEdit_base::languageChange() | ||
109 | { | ||
110 | setCaption( tr( "FilterEditor" ) ); | ||
111 | ButtonGroup1->setTitle( tr( "Categories" ) ); | ||
112 | mCatShowCheck->setText( tr( "Show only selected" ) ); | ||
113 | mCatHideCheck->setText( tr( "Show all but selected" ) ); | ||
114 | mCatEditButton->setText( tr( "Edit Selection..." ) ); | ||
115 | textLabel1->setText( tr( "Hide" ) ); | ||
116 | mRecurringCheck->setText( tr( "recurring events" ) ); | ||
117 | mCompletedCheck->setText( tr( "completed to-dos" ) ); | ||
118 | textLabel2->setText( tr( "Show" ) ); | ||
119 | mPublicCheck->setText( tr( "public" ) ); | ||
120 | mPrivateCheck->setText( tr( "private" ) ); | ||
121 | mConfidentialCheck->setText( tr( "confidential" ) ); | ||
122 | } | ||
123 | |||
124 | void FilterEdit_base::updateFilter() | ||
125 | { | ||
126 | qWarning( "FilterEdit_base::updateFilter(): Not implemented yet" ); | ||
127 | } | ||
128 | |||