Diffstat (limited to 'korganizer/outgoingdialog_base.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/outgoingdialog_base.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/korganizer/outgoingdialog_base.cpp b/korganizer/outgoingdialog_base.cpp index e5b913a..1873b44 100644 --- a/korganizer/outgoingdialog_base.cpp +++ b/korganizer/outgoingdialog_base.cpp | |||
@@ -1,109 +1,107 @@ | |||
1 | #include <klocale.h> | 1 | #include <klocale.h> |
2 | /**************************************************************************** | 2 | /**************************************************************************** |
3 | ** Form implementation generated from reading ui file '/build/kde/cvs/korge/kdepim/korganizer/outgoingdialog_base.ui' | 3 | ** Form implementation generated from reading ui file '/build/kde/cvs/korge/kdepim/korganizer/outgoingdialog_base.ui' |
4 | ** | 4 | ** |
5 | ** Created: Sat Mar 29 22:31:21 2003 | 5 | ** Created: Sat Mar 29 22:31:21 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 "outgoingdialog_base.h" | 11 | #include "outgoingdialog_base.h" |
12 | 12 | ||
13 | #include <qvariant.h> | 13 | #include <qvariant.h> |
14 | #include <qheader.h> | 14 | #include <qheader.h> |
15 | #include <qlistview.h> | 15 | #include <qlistview.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 <qwhatsthis.h> |
20 | 20 | ||
21 | /* | 21 | /* |
22 | * Constructs a OutgoingDialog_base as a child of 'parent', with the | 22 | * Constructs a OutgoingDialog_base as a child of 'parent', with the |
23 | * name 'name' and widget flags set to 'f'. | 23 | * name 'name' and widget flags set to 'f'. |
24 | * | 24 | * |
25 | * The dialog will by default be modeless, unless you set 'modal' to | 25 | * The dialog will by default be modeless, unless you set 'modal' to |
26 | * TRUE to construct a modal dialog. | 26 | * TRUE to construct a modal dialog. |
27 | */ | 27 | */ |
28 | OutgoingDialog_base::OutgoingDialog_base( QWidget* parent, const char* name, bool modal, WFlags fl ) | 28 | OutgoingDialog_base::OutgoingDialog_base( QWidget* parent, const char* name, bool modal, WFlags fl ) |
29 | : QDialog( parent, name, modal, fl ) | 29 | : QDialog( parent, name, modal, fl ) |
30 | 30 | ||
31 | { | 31 | { |
32 | if ( !name ) | 32 | if ( !name ) |
33 | setName( "OutgoingDialog_base" ); | 33 | setName( "OutgoingDialog_base" ); |
34 | OutgoingDialog_baseLayout = new QGridLayout( this, 1, 1, 11, 6, "OutgoingDialog_baseLayout"); | 34 | OutgoingDialog_baseLayout = new QGridLayout( this, 1, 1, 11, 6, "OutgoingDialog_baseLayout"); |
35 | 35 | ||
36 | mMessageListView = new QListView( this, "mMessageListView" ); | 36 | mMessageListView = new QListView( this, "mMessageListView" ); |
37 | mMessageListView->addColumn( tr2i18n( "Summary" ) ); | 37 | mMessageListView->addColumn( tr2i18n( "Summary" ) ); |
38 | mMessageListView->addColumn( tr2i18n( "Start Date" ) ); | 38 | mMessageListView->addColumn( tr2i18n( "Start Date" ) ); |
39 | mMessageListView->addColumn( tr2i18n( "Start Time" ) ); | 39 | mMessageListView->addColumn( tr2i18n( "Start Time" ) ); |
40 | mMessageListView->addColumn( tr2i18n( "End Date" ) ); | 40 | mMessageListView->addColumn( tr2i18n( "End Date" ) ); |
41 | mMessageListView->addColumn( tr2i18n( "End Time" ) ); | 41 | mMessageListView->addColumn( tr2i18n( "End Time" ) ); |
42 | mMessageListView->addColumn( tr2i18n( "Method" ) ); | 42 | mMessageListView->addColumn( tr2i18n( "Method" ) ); |
43 | mMessageListView->setFrameShape( QListView::StyledPanel ); | 43 | mMessageListView->setFrameShape( QListView::StyledPanel ); |
44 | mMessageListView->setFrameShadow( QListView::Sunken ); | 44 | mMessageListView->setFrameShadow( QListView::Sunken ); |
45 | mMessageListView->setAllColumnsShowFocus( TRUE ); | 45 | mMessageListView->setAllColumnsShowFocus( TRUE ); |
46 | 46 | ||
47 | OutgoingDialog_baseLayout->addMultiCellWidget( mMessageListView, 0, 3, 0, 0 ); | 47 | OutgoingDialog_baseLayout->addMultiCellWidget( mMessageListView, 0, 3, 0, 0 ); |
48 | 48 | ||
49 | PushButton5 = new QPushButton( this, "PushButton5" ); | 49 | PushButton5 = new QPushButton( this, "PushButton5" ); |
50 | PushButton5->setDefault( FALSE ); | 50 | PushButton5->setDefault( FALSE ); |
51 | 51 | ||
52 | OutgoingDialog_baseLayout->addWidget( PushButton5, 0, 1 ); | 52 | OutgoingDialog_baseLayout->addWidget( PushButton5, 0, 1 ); |
53 | 53 | ||
54 | PushButton7 = new QPushButton( this, "PushButton7" ); | 54 | PushButton7 = new QPushButton( this, "PushButton7" ); |
55 | 55 | ||
56 | OutgoingDialog_baseLayout->addWidget( PushButton7, 1, 1 ); | 56 | OutgoingDialog_baseLayout->addWidget( PushButton7, 1, 1 ); |
57 | 57 | ||
58 | PushButton6 = new QPushButton( this, "PushButton6" ); | 58 | PushButton6 = new QPushButton( this, "PushButton6" ); |
59 | PushButton6->setDefault( TRUE ); | 59 | PushButton6->setDefault( TRUE ); |
60 | 60 | ||
61 | OutgoingDialog_baseLayout->addWidget( PushButton6, 3, 1 ); | 61 | OutgoingDialog_baseLayout->addWidget( PushButton6, 3, 1 ); |
62 | QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); | 62 | QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); |
63 | OutgoingDialog_baseLayout->addItem( spacer, 2, 1 ); | 63 | OutgoingDialog_baseLayout->addItem( spacer, 2, 1 ); |
64 | languageChange(); | 64 | languageChange(); |
65 | resize( QSize(582, 274).expandedTo(minimumSizeHint()) ); | 65 | resize( QSize(582, 274).expandedTo(minimumSizeHint()) ); |
66 | 66 | ||
67 | // signals and slots connections | 67 | // signals and slots connections |
68 | connect( PushButton6, SIGNAL( clicked() ), this, SLOT( accept() ) ); | 68 | connect( PushButton6, SIGNAL( clicked() ), this, SLOT( accept() ) ); |
69 | connect( PushButton5, SIGNAL( clicked() ), this, SLOT( send() ) ); | 69 | connect( PushButton5, SIGNAL( clicked() ), this, SLOT( send() ) ); |
70 | connect( PushButton7, SIGNAL( clicked() ), this, SLOT( deleteItem() ) ); | 70 | connect( PushButton7, SIGNAL( clicked() ), this, SLOT( deleteItem() ) ); |
71 | } | 71 | } |
72 | 72 | ||
73 | /* | 73 | /* |
74 | * Destroys the object and frees any allocated resources | 74 | * Destroys the object and frees any allocated resources |
75 | */ | 75 | */ |
76 | OutgoingDialog_base::~OutgoingDialog_base() | 76 | OutgoingDialog_base::~OutgoingDialog_base() |
77 | { | 77 | { |
78 | // no need to delete child widgets, Qt does it all for us | 78 | // no need to delete child widgets, Qt does it all for us |
79 | } | 79 | } |
80 | 80 | ||
81 | /* | 81 | /* |
82 | * Sets the strings of the subwidgets using the current | 82 | * Sets the strings of the subwidgets using the current |
83 | * language. | 83 | * language. |
84 | */ | 84 | */ |
85 | void OutgoingDialog_base::languageChange() | 85 | void OutgoingDialog_base::languageChange() |
86 | { | 86 | { |
87 | setCaption( tr2i18n( "Scheduler - Outgoing Messages" ) ); | 87 | setCaption( tr2i18n( "Scheduler - Outgoing Messages" ) ); |
88 | mMessageListView->header()->setLabel( 0, tr2i18n( "Summary" ) ); | 88 | mMessageListView->header()->setLabel( 0, tr2i18n( "Summary" ) ); |
89 | mMessageListView->header()->setLabel( 1, tr2i18n( "Start Date" ) ); | 89 | mMessageListView->header()->setLabel( 1, tr2i18n( "Start Date" ) ); |
90 | mMessageListView->header()->setLabel( 2, tr2i18n( "Start Time" ) ); | 90 | mMessageListView->header()->setLabel( 2, tr2i18n( "Start Time" ) ); |
91 | mMessageListView->header()->setLabel( 3, tr2i18n( "End Date" ) ); | 91 | mMessageListView->header()->setLabel( 3, tr2i18n( "End Date" ) ); |
92 | mMessageListView->header()->setLabel( 4, tr2i18n( "End Time" ) ); | 92 | mMessageListView->header()->setLabel( 4, tr2i18n( "End Time" ) ); |
93 | mMessageListView->header()->setLabel( 5, tr2i18n( "Method" ) ); | 93 | mMessageListView->header()->setLabel( 5, tr2i18n( "Method" ) ); |
94 | PushButton5->setText( tr2i18n( "&Send Messages" ) ); | 94 | PushButton5->setText( tr2i18n( "&Send Messages" ) ); |
95 | PushButton7->setText( tr2i18n( "&Remove" ) ); | 95 | PushButton7->setText( tr2i18n( "&Remove" ) ); |
96 | PushButton6->setText( tr2i18n( "&Close" ) ); | 96 | PushButton6->setText( tr2i18n( "&Close" ) ); |
97 | } | 97 | } |
98 | 98 | ||
99 | void OutgoingDialog_base::send() | 99 | void OutgoingDialog_base::send() |
100 | { | 100 | { |
101 | qWarning( "OutgoingDialog_base::send(): Not implemented yet" ); | 101 | qWarning( "OutgoingDialog_base::send(): Not implemented yet" ); |
102 | } | 102 | } |
103 | 103 | ||
104 | void OutgoingDialog_base::deleteItem() | 104 | void OutgoingDialog_base::deleteItem() |
105 | { | 105 | { |
106 | qWarning( "OutgoingDialog_base::deleteItem(): Not implemented yet" ); | 106 | qWarning( "OutgoingDialog_base::deleteItem(): Not implemented yet" ); |
107 | } | 107 | } |
108 | |||
109 | #include "outgoingdialog_base.moc" | ||