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