summaryrefslogtreecommitdiffabout
path: root/korganizer
Unidiff
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/filteredit_base.cpp.emb97
1 files changed, 76 insertions, 21 deletions
diff --git a/korganizer/filteredit_base.cpp.emb b/korganizer/filteredit_base.cpp.emb
index 9e32851..505edf6 100644
--- a/korganizer/filteredit_base.cpp.emb
+++ b/korganizer/filteredit_base.cpp.emb
@@ -1,97 +1,152 @@
1/**************************************************************************** 1/****************************************************************************
2** Form implementation generated from reading ui file 'filteredit_base.ui' 2** Form implementation generated from reading ui file 'filteredit_base.ui'
3** 3**
4** Created: Do Jan 22 23:56:40 2004 4** Created: Fr Jan 21 21:25:30 2005
5** by: The User Interface Compiler ($Id$) 5** by: The User Interface Compiler ($Id$)
6** 6**
7** WARNING! All changes made in this file will be lost! 7** WARNING! All changes made in this file will be lost!
8****************************************************************************/ 8****************************************************************************/
9 9
10#include "filteredit_base.h" 10#include "filteredit_base.h"
11 11
12#include <qvariant.h> 12#include <qvariant.h>
13#include <qpushbutton.h> 13#include <qpushbutton.h>
14#include <qframe.h> 14#include <qframe.h>
15#include <qbuttongroup.h> 15#include <qbuttongroup.h>
16#include <qapplication.h>
16#include <qradiobutton.h> 17#include <qradiobutton.h>
17#include <qlistbox.h> 18#include <qlistbox.h>
19#include <qlabel.h>
18#include <qcheckbox.h> 20#include <qcheckbox.h>
19#include <qlayout.h> 21#include <qlayout.h>
20#include <qtooltip.h> 22#include <qtooltip.h>
21#include <qwhatsthis.h> 23#include <qwhatsthis.h>
24#include "tr.h"
22 25
23/* 26/*
24 * Constructs a FilterEdit_base as a child of 'parent', with the 27 * Constructs a FilterEdit_base as a child of 'parent', with the
25 * name 'name' and widget flags set to 'f'. 28 * name 'name' and widget flags set to 'f'.
26 */ 29 */
27FilterEdit_base::FilterEdit_base( QWidget* parent, const char* name, WFlags fl ) 30FilterEdit_base::FilterEdit_base( QWidget* parent, const char* name, WFlags fl )
28 : QWidget( parent, name, fl ) 31 : QWidget( parent, name, fl )
29{ 32{
30 if ( !name ) 33 if ( !name )
31 setName( "FilterEdit_base" ); 34 setName( "FilterEdit_base" );
32 FilterEdit_baseLayout = new QVBoxLayout( this, 0, 0, "FilterEdit_baseLayout"); 35 FilterEdit_baseLayout = new QVBoxLayout( this, 0, 0, "FilterEdit_baseLayout");
33 36
34 mCriteriaFrame = new QFrame( this, "mCriteriaFrame" ); 37 mCriteriaFrame = new QFrame( this, "mCriteriaFrame" );
35 mCriteriaFrame->setFrameShape( QFrame::StyledPanel ); 38 mCriteriaFrame->setFrameShape( QFrame::StyledPanel );
36 mCriteriaFrame->setFrameShadow( QFrame::Raised ); 39 mCriteriaFrame->setFrameShadow( QFrame::Raised );
37 mCriteriaFrameLayout = new QVBoxLayout( mCriteriaFrame, 11, 6, "mCriteriaFrameLayout"); 40 mCriteriaFrameLayout = new QVBoxLayout( mCriteriaFrame, 3, 2, "mCriteriaFrameLayout");
38 41
39 ButtonGroup1 = new QButtonGroup( mCriteriaFrame, "ButtonGroup1" ); 42 ButtonGroup1 = new QButtonGroup( mCriteriaFrame, "ButtonGroup1" );
40 ButtonGroup1->setColumnLayout(0, Qt::Vertical ); 43 ButtonGroup1->setColumnLayout(0, Qt::Vertical );
41 ButtonGroup1->layout()->setSpacing( 6 ); 44 ButtonGroup1->layout()->setSpacing( 6 );
42 ButtonGroup1->layout()->setMargin( 11 ); 45 ButtonGroup1->layout()->setMargin( 6 );
43 ButtonGroup1Layout = new QVBoxLayout( ButtonGroup1->layout() ); 46 ButtonGroup1Layout = new QGridLayout( ButtonGroup1->layout() );
44 ButtonGroup1Layout->setAlignment( Qt::AlignTop ); 47 ButtonGroup1Layout->setAlignment( Qt::AlignTop );
45 48
49 layout4 = new QHBoxLayout( 0, 0, 6, "layout4");
50
46 mCatShowCheck = new QRadioButton( ButtonGroup1, "mCatShowCheck" ); 51 mCatShowCheck = new QRadioButton( ButtonGroup1, "mCatShowCheck" );
47 ButtonGroup1Layout->addWidget( mCatShowCheck ); 52 layout4->addWidget( mCatShowCheck );
48 53
49 mCatHideCheck = new QRadioButton( ButtonGroup1, "mCatHideCheck" ); 54 mCatHideCheck = new QRadioButton( ButtonGroup1, "mCatHideCheck" );
50 ButtonGroup1Layout->addWidget( mCatHideCheck ); 55 layout4->addWidget( mCatHideCheck );
56
57 mCatEditButton = new QPushButton( ButtonGroup1, "mCatEditButton" );
58 layout4->addWidget( mCatEditButton );
59
60 ButtonGroup1Layout->addLayout( layout4, 0, 0 );
51 61
52 mCatList = new QListBox( ButtonGroup1, "mCatList" ); 62 mCatList = new QListBox( ButtonGroup1, "mCatList" );
53 ButtonGroup1Layout->addWidget( mCatList );
54 63
55 mCatEditButton = new QPushButton( ButtonGroup1, "mCatEditButton" ); 64 ButtonGroup1Layout->addWidget( mCatList, 1, 0 );
56 ButtonGroup1Layout->addWidget( mCatEditButton );
57 mCriteriaFrameLayout->addWidget( ButtonGroup1 ); 65 mCriteriaFrameLayout->addWidget( ButtonGroup1 );
58 66
67 layout7 = new QHBoxLayout( 0, 0, 6, "layout7");
68
69 textLabel1 = new QLabel( mCriteriaFrame, "textLabel1" );
70 layout7->addWidget( textLabel1 );
71
59 mRecurringCheck = new QCheckBox( mCriteriaFrame, "mRecurringCheck" ); 72 mRecurringCheck = new QCheckBox( mCriteriaFrame, "mRecurringCheck" );
60 mCriteriaFrameLayout->addWidget( mRecurringCheck ); 73 layout7->addWidget( mRecurringCheck );
61 74
62 mCompletedCheck = new QCheckBox( mCriteriaFrame, "mCompletedCheck" ); 75 mCompletedCheck = new QCheckBox( mCriteriaFrame, "mCompletedCheck" );
63 mCriteriaFrameLayout->addWidget( mCompletedCheck ); 76 layout7->addWidget( mCompletedCheck );
77 mCriteriaFrameLayout->addLayout( layout7 );
78
79 layout9 = new QHBoxLayout( 0, 0, 6, "layout9");
80
81 textLabel1_2 = new QLabel( mCriteriaFrame, "textLabel1_2" );
82 layout9->addWidget( textLabel1_2 );
83
84 mEventCheck = new QCheckBox( mCriteriaFrame, "mEventCheck" );
85 layout9->addWidget( mEventCheck );
86
87 mTodoCheck = new QCheckBox( mCriteriaFrame, "mTodoCheck" );
88 layout9->addWidget( mTodoCheck );
89
90 mJournalCheck = new QCheckBox( mCriteriaFrame, "mJournalCheck" );
91 layout9->addWidget( mJournalCheck );
92 mCriteriaFrameLayout->addLayout( layout9 );
93
94 layout2 = new QHBoxLayout( 0, 0, 0, "layout2");
95
96 textLabel2 = new QLabel( mCriteriaFrame, "textLabel2" );
97 layout2->addWidget( textLabel2 );
98
99 mPublicCheck = new QCheckBox( mCriteriaFrame, "mPublicCheck" );
100 layout2->addWidget( mPublicCheck );
101
102 mPrivateCheck = new QCheckBox( mCriteriaFrame, "mPrivateCheck" );
103 layout2->addWidget( mPrivateCheck );
104
105 mConfidentialCheck = new QCheckBox( mCriteriaFrame, "mConfidentialCheck" );
106 mConfidentialCheck->setChecked( FALSE );
107 layout2->addWidget( mConfidentialCheck );
108 mCriteriaFrameLayout->addLayout( layout2 );
64 FilterEdit_baseLayout->addWidget( mCriteriaFrame ); 109 FilterEdit_baseLayout->addWidget( mCriteriaFrame );
65 languageChange(); 110 languageChange();
66 resize( QSize(196, 257).expandedTo(minimumSizeHint()) ); 111 resize( QSize(300, 200).expandedTo(minimumSizeHint()) );
67 clearWState( WState_Polished ); 112 clearWState( WState_Polished );
68} 113}
69 114
70/* 115/*
71 * Destroys the object and frees any allocated resources 116 * Destroys the object and frees any allocated resources
72 */ 117 */
73FilterEdit_base::~FilterEdit_base() 118FilterEdit_base::~FilterEdit_base()
74{ 119{
75 // no need to delete child widgets, Qt does it all for us 120 // no need to delete child widgets, Qt does it all for us
76} 121}
77 122
78/* 123/*
79 * Sets the strings of the subwidgets using the current 124 * Sets the strings of the subwidgets using the current
80 * language. 125 * language.
81 */ 126 */
82void FilterEdit_base::languageChange() 127void FilterEdit_base::languageChange()
83{ 128{
84 setCaption( tr( "FilterEditor" ) ); 129 setCaption( tr( "FilterEditor" ) );
85 ButtonGroup1->setTitle( tr( "Categories" ) ); 130 ButtonGroup1->setTitle( tr( "Categories" ) );
86 mCatShowCheck->setText( tr( "Show only selected" ) ); 131 mCatShowCheck->setText( tr( "Include" ) );
87 mCatHideCheck->setText( tr( "Show all but selected" ) ); 132 mCatHideCheck->setText( tr( "Exclude" ) );
88 mCatEditButton->setText( tr( "Edit Selection..." ) ); 133 mCatEditButton->setText( tr( "Edit Selection..." ) );
89 mRecurringCheck->setText( tr( "Hide recurring events" ) ); 134 textLabel1->setText( tr( "Exclude" ) );
90 mCompletedCheck->setText( tr( "Hide completed to-dos" ) ); 135 if (QApplication::desktop()->width() > 480 ) {
91} 136 mCompletedCheck->setText( tr( "completed to-dos" ) );
92 137 mRecurringCheck->setText( tr( "recurring events" ) );
93void FilterEdit_base::updateFilter() 138 }
94{ 139 else {
95 qWarning( "FilterEdit_base::updateFilter(): Not implemented yet" ); 140 mCompletedCheck->setText( tr( "compl.todos" ) );
141 mRecurringCheck->setText( tr( "recurr. events" ) );
142 }
143 textLabel1_2->setText( tr( "Exclude" ) );
144 mEventCheck->setText( tr( "events" ) );
145 mTodoCheck->setText( tr( "todos" ) );
146 mJournalCheck->setText( tr( "journals" ) );
147 textLabel2->setText( tr( "Include" ) );
148 mPublicCheck->setText( tr( "public" ) );
149 mPrivateCheck->setText( tr( "private" ) );
150 mConfidentialCheck->setText( tr( "confidential" ) );
96} 151}
97 152