summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-01-31 06:24:28 (UTC)
committer zautrix <zautrix>2005-01-31 06:24:28 (UTC)
commited5723f40a93bbedfcbd9f54e6379a23c4a76096 (patch) (unidiff)
treea4c501699f302c9d7ef982b3e6425c902e423bee
parent6dbf4f4a6666e7a94c68517df1659eb14cd104b9 (diff)
downloadkdepimpi-ed5723f40a93bbedfcbd9f54e6379a23c4a76096.zip
kdepimpi-ed5723f40a93bbedfcbd9f54e6379a23c4a76096.tar.gz
kdepimpi-ed5723f40a93bbedfcbd9f54e6379a23c4a76096.tar.bz2
bup file
Diffstat (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
@@ -3,3 +3,3 @@
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$)
@@ -15,4 +15,6 @@
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>
@@ -21,2 +23,3 @@
21#include <qwhatsthis.h> 23#include <qwhatsthis.h>
24#include "tr.h"
22 25
@@ -36,3 +39,3 @@ FilterEdit_base::FilterEdit_base( QWidget* parent, const char* name, WFlags fl )
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
@@ -41,27 +44,69 @@ FilterEdit_base::FilterEdit_base( QWidget* parent, const char* name, WFlags fl )
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 );
@@ -85,12 +130,22 @@ void FilterEdit_base::languageChange()
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}