00001 #include <kdialog.h>
00002 #include <klocale.h>
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include "timedateformatwidget.h"
00013
00014 #include <qvariant.h>
00015 #include <qpushbutton.h>
00016 #include <qcombobox.h>
00017 #include <qcheckbox.h>
00018 #include <qlabel.h>
00019 #include <knuminput.h>
00020 #include <qlayout.h>
00021 #include <qtooltip.h>
00022 #include <qwhatsthis.h>
00023
00024
00025
00026
00027
00028 TimeDateFormatWidgetPrototype::TimeDateFormatWidgetPrototype( QWidget* parent, const char* name, WFlags fl )
00029 : QWidget( parent, name, fl )
00030 {
00031 if ( !name )
00032 setName( "TimeDateFormatWidgetPrototype" );
00033 setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) );
00034 setMinimumSize( QSize( 0, 0 ) );
00035 setBaseSize( QSize( 260, 130 ) );
00036 TimeDateFormatWidgetPrototypeLayout = new QGridLayout( this, 1, 1, 11, 6, "TimeDateFormatWidgetPrototypeLayout");
00037
00038 layout7 = new QVBoxLayout( 0, 0, 6, "layout7");
00039
00040 combo1 = new QComboBox( FALSE, this, "combo1" );
00041 layout7->addWidget( combo1 );
00042
00043 CheckBox1 = new QCheckBox( this, "CheckBox1" );
00044 layout7->addWidget( CheckBox1 );
00045
00046 layout5 = new QHBoxLayout( 0, 0, 6, "layout5");
00047
00048 TextLabel1 = new QLabel( this, "TextLabel1" );
00049 layout5->addWidget( TextLabel1 );
00050 spacer4 = new QSpacerItem( 50, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00051 layout5->addItem( spacer4 );
00052
00053 combo2 = new QComboBox( FALSE, this, "combo2" );
00054 combo2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, combo2->sizePolicy().hasHeightForWidth() ) );
00055 layout5->addWidget( combo2 );
00056 layout7->addLayout( layout5 );
00057
00058 layout4 = new QHBoxLayout( 0, 0, 6, "layout4");
00059
00060 label_correction = new QLabel( this, "label_correction" );
00061 layout4->addWidget( label_correction );
00062 spacer5 = new QSpacerItem( 50, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00063 layout4->addItem( spacer5 );
00064
00065 KIntNumInput1 = new KIntNumInput( this, "KIntNumInput1" );
00066 layout4->addWidget( KIntNumInput1 );
00067 layout7->addLayout( layout4 );
00068
00069 label = new QLabel( this, "label" );
00070 label->setTextFormat( QLabel::PlainText );
00071 label->setIndent( 5 );
00072 layout7->addWidget( label );
00073 Spacer2 = new QSpacerItem( 20, 10, QSizePolicy::Minimum, QSizePolicy::Expanding );
00074 layout7->addItem( Spacer2 );
00075
00076 TimeDateFormatWidgetPrototypeLayout->addLayout( layout7, 0, 0 );
00077 languageChange();
00078 resize( QSize(262, 176).expandedTo(minimumSizeHint()) );
00079 clearWState( WState_Polished );
00080
00081
00082 connect( combo1, SIGNAL( textChanged(const QString&) ), this, SLOT( updateLabel() ) );
00083 connect( combo2, SIGNAL( activated(int) ), this, SLOT( comboActivated() ) );
00084
00085
00086
00087
00088 TextLabel1->setBuddy( combo2 );
00089 }
00090
00091
00092
00093
00094 TimeDateFormatWidgetPrototype::~TimeDateFormatWidgetPrototype()
00095 {
00096
00097 }
00098
00099
00100
00101
00102
00103 void TimeDateFormatWidgetPrototype::languageChange()
00104 {
00105 CheckBox1->setText( tr2i18n( "C&ustom" ) );
00106 TextLabel1->setText( tr2i18n( "&Insert:" ) );
00107 combo2->setCurrentItem( 0 );
00108 label_correction->setText( tr2i18n( "TextLabel1" ) );
00109 label->setText( QString::null );
00110 }
00111
00112 void TimeDateFormatWidgetPrototype::comboActivated()
00113 {
00114 qWarning( "TimeDateFormatWidgetPrototype::comboActivated(): Not implemented yet" );
00115 }
00116
00117 void TimeDateFormatWidgetPrototype::updateLabel()
00118 {
00119 qWarning( "TimeDateFormatWidgetPrototype::updateLabel(): Not implemented yet" );
00120 }
00121
00122 #include "timedateformatwidget.moc"