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/incomingdialog_base.cpp | |
download | kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.zip kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.gz kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.bz2 |
Initial revision
Diffstat (limited to 'korganizer/incomingdialog_base.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/incomingdialog_base.cpp | 137 |
1 files changed, 137 insertions, 0 deletions
diff --git a/korganizer/incomingdialog_base.cpp b/korganizer/incomingdialog_base.cpp new file mode 100644 index 0000000..91740a4 --- a/dev/null +++ b/korganizer/incomingdialog_base.cpp | |||
@@ -0,0 +1,137 @@ | |||
1 | #include <klocale.h> | ||
2 | /**************************************************************************** | ||
3 | ** Form implementation generated from reading ui file '/build/kde/cvs/korge/kdepim/korganizer/incomingdialog_base.ui' | ||
4 | ** | ||
5 | ** Created: Sat Mar 29 22:31:27 2003 | ||
6 | ** by: The User Interface Compiler () | ||
7 | ** | ||
8 | ** WARNING! All changes made in this file will be lost! | ||
9 | ****************************************************************************/ | ||
10 | |||
11 | #include "incomingdialog_base.h" | ||
12 | |||
13 | #include <qvariant.h> | ||
14 | #include <qheader.h> | ||
15 | #include <qlistview.h> | ||
16 | #include <qpushbutton.h> | ||
17 | #include <qlayout.h> | ||
18 | #include <qtooltip.h> | ||
19 | #include <qwhatsthis.h> | ||
20 | |||
21 | /* | ||
22 | * Constructs a IncomingDialog_base as a child of 'parent', with the | ||
23 | * name 'name' and widget flags set to 'f'. | ||
24 | * | ||
25 | * The dialog will by default be modeless, unless you set 'modal' to | ||
26 | * TRUE to construct a modal dialog. | ||
27 | */ | ||
28 | IncomingDialog_base::IncomingDialog_base( QWidget* parent, const char* name, bool modal, WFlags fl ) | ||
29 | : QDialog( parent, name, modal, fl ) | ||
30 | |||
31 | { | ||
32 | if ( !name ) | ||
33 | setName( "IncomingDialog_base" ); | ||
34 | IncomingDialog_baseLayout = new QGridLayout( this, 1, 1, 11, 6, "IncomingDialog_baseLayout"); | ||
35 | |||
36 | PushButton4 = new QPushButton( this, "PushButton4" ); | ||
37 | |||
38 | IncomingDialog_baseLayout->addWidget( PushButton4, 0, 1 ); | ||
39 | |||
40 | PushButton7 = new QPushButton( this, "PushButton7" ); | ||
41 | PushButton7->setDefault( TRUE ); | ||
42 | |||
43 | IncomingDialog_baseLayout->addWidget( PushButton7, 5, 1 ); | ||
44 | |||
45 | mMessageListView = new QListView( this, "mMessageListView" ); | ||
46 | mMessageListView->addColumn( tr2i18n( "Summary" ) ); | ||
47 | mMessageListView->addColumn( tr2i18n( "Start Date" ) ); | ||
48 | mMessageListView->addColumn( tr2i18n( "Start Time" ) ); | ||
49 | mMessageListView->addColumn( tr2i18n( "End Date" ) ); | ||
50 | mMessageListView->addColumn( tr2i18n( "End Time" ) ); | ||
51 | mMessageListView->addColumn( tr2i18n( "Organizer" ) ); | ||
52 | mMessageListView->addColumn( tr2i18n( "Method" ) ); | ||
53 | mMessageListView->addColumn( tr2i18n( "Status" ) ); | ||
54 | mMessageListView->setAllColumnsShowFocus( FALSE ); | ||
55 | |||
56 | IncomingDialog_baseLayout->addMultiCellWidget( mMessageListView, 0, 5, 0, 0 ); | ||
57 | |||
58 | PushButton7_2 = new QPushButton( this, "PushButton7_2" ); | ||
59 | |||
60 | IncomingDialog_baseLayout->addWidget( PushButton7_2, 3, 1 ); | ||
61 | |||
62 | PushButton8 = new QPushButton( this, "PushButton8" ); | ||
63 | |||
64 | IncomingDialog_baseLayout->addWidget( PushButton8, 1, 1 ); | ||
65 | |||
66 | PushButton9 = new QPushButton( this, "PushButton9" ); | ||
67 | |||
68 | IncomingDialog_baseLayout->addWidget( PushButton9, 2, 1 ); | ||
69 | QSpacerItem* spacer = new QSpacerItem( 20, 70, QSizePolicy::Minimum, QSizePolicy::Expanding ); | ||
70 | IncomingDialog_baseLayout->addItem( spacer, 4, 1 ); | ||
71 | languageChange(); | ||
72 | resize( QSize(525, 262).expandedTo(minimumSizeHint()) ); | ||
73 | |||
74 | // signals and slots connections | ||
75 | connect( PushButton7, SIGNAL( clicked() ), this, SLOT( accept() ) ); | ||
76 | connect( PushButton4, SIGNAL( clicked() ), this, SLOT( retrieve() ) ); | ||
77 | connect( PushButton7_2, SIGNAL( clicked() ), this, SLOT( acceptAllMessages() ) ); | ||
78 | |||
79 | // tab order | ||
80 | setTabOrder( PushButton7, PushButton4 ); | ||
81 | setTabOrder( PushButton4, PushButton7_2 ); | ||
82 | setTabOrder( PushButton7_2, mMessageListView ); | ||
83 | setTabOrder( mMessageListView, PushButton8 ); | ||
84 | setTabOrder( PushButton8, PushButton9 ); | ||
85 | } | ||
86 | |||
87 | /* | ||
88 | * Destroys the object and frees any allocated resources | ||
89 | */ | ||
90 | IncomingDialog_base::~IncomingDialog_base() | ||
91 | { | ||
92 | // no need to delete child widgets, Qt does it all for us | ||
93 | } | ||
94 | |||
95 | /* | ||
96 | * Sets the strings of the subwidgets using the current | ||
97 | * language. | ||
98 | */ | ||
99 | void IncomingDialog_base::languageChange() | ||
100 | { | ||
101 | setCaption( tr2i18n( "Scheduler - Incoming Messages" ) ); | ||
102 | PushButton4->setText( tr2i18n( "Retrieve &Messages" ) ); | ||
103 | PushButton7->setText( tr2i18n( "&Close" ) ); | ||
104 | mMessageListView->header()->setLabel( 0, tr2i18n( "Summary" ) ); | ||
105 | mMessageListView->header()->setLabel( 1, tr2i18n( "Start Date" ) ); | ||
106 | mMessageListView->header()->setLabel( 2, tr2i18n( "Start Time" ) ); | ||
107 | mMessageListView->header()->setLabel( 3, tr2i18n( "End Date" ) ); | ||
108 | mMessageListView->header()->setLabel( 4, tr2i18n( "End Time" ) ); | ||
109 | mMessageListView->header()->setLabel( 5, tr2i18n( "Organizer" ) ); | ||
110 | mMessageListView->header()->setLabel( 6, tr2i18n( "Method" ) ); | ||
111 | mMessageListView->header()->setLabel( 7, tr2i18n( "Status" ) ); | ||
112 | PushButton7_2->setText( tr2i18n( "Accept A&ll" ) ); | ||
113 | PushButton8->setText( tr2i18n( "&Accept" ) ); | ||
114 | PushButton9->setText( tr2i18n( "&Reject" ) ); | ||
115 | } | ||
116 | |||
117 | void IncomingDialog_base::acceptAllMessages() | ||
118 | { | ||
119 | qWarning( "IncomingDialog_base::acceptAllMessages(): Not implemented yet" ); | ||
120 | } | ||
121 | |||
122 | void IncomingDialog_base::acceptMessage() | ||
123 | { | ||
124 | qWarning( "IncomingDialog_base::acceptMessage(): Not implemented yet" ); | ||
125 | } | ||
126 | |||
127 | void IncomingDialog_base::rejectMessage() | ||
128 | { | ||
129 | qWarning( "IncomingDialog_base::rejectMessage(): Not implemented yet" ); | ||
130 | } | ||
131 | |||
132 | void IncomingDialog_base::retrieve() | ||
133 | { | ||
134 | qWarning( "IncomingDialog_base::retrieve(): Not implemented yet" ); | ||
135 | } | ||
136 | |||
137 | #include "incomingdialog_base.moc" | ||