diff --git a/kmymoney2/widgets/kaccounttemplateselectordecl.cpp b/kmymoney2/widgets/kaccounttemplateselectordecl.cpp deleted file mode 100644 index a68806d..0000000 --- a/kmymoney2/widgets/kaccounttemplateselectordecl.cpp +++ /dev/null @@ -1,111 +0,0 @@ -#include -#include -#ifndef KMM_I18N -#define KMM_I18N -inline TQString kmm_i18n(const char* msg, const char* ctx) { return i18n(ctx, msg); } -inline TQString kmm_i18n(const char* msg) { return i18n(msg); } -#endif -/**************************************************************************** -** Form implementation generated from reading ui file '../../../kmymoney2/widgets/kaccounttemplateselectordecl.ui' -** -** Created: Fri Feb 12 15:05:39 2010 -** -** WARNING! All changes made in this file will be lost! -****************************************************************************/ - -#include "kaccounttemplateselectordecl.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -/* - * Constructs a KAccountTemplateSelectorDecl as a child of 'parent', with the - * name 'name' and widget flags set to 'f'. - */ -KAccountTemplateSelectorDecl::KAccountTemplateSelectorDecl( TQWidget* parent, const char* name, WFlags fl ) - : TQWidget( parent, name, fl ) -{ - if ( !name ) - setName( "KAccountTemplateSelectorDecl" ); - KAccountTemplateSelectorDeclLayout = new TQVBoxLayout( this, 0, 6, "KAccountTemplateSelectorDeclLayout"); - - m_groupList = new TDEListView( this, "m_groupList" ); - m_groupList->addColumn( kmm_i18n( "Account Types" ) ); - m_groupList->addColumn( kmm_i18n( "Description" ) ); - m_groupList->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, m_groupList->sizePolicy().hasHeightForWidth() ) ); - m_groupList->setMinimumSize( TQSize( 0, 150 ) ); - m_groupList->setProperty( "selectionMode", "Extended" ); - m_groupList->setAllColumnsShowFocus( TRUE ); - m_groupList->setRootIsDecorated( TRUE ); - m_groupList->setFullWidth( TRUE ); - KAccountTemplateSelectorDeclLayout->addWidget( m_groupList ); - - layout3 = new TQHBoxLayout( 0, 0, 6, "layout3"); - - groupBox1 = new TQGroupBox( this, "groupBox1" ); - groupBox1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 2, groupBox1->sizePolicy().hasHeightForWidth() ) ); - groupBox1->setColumnLayout(0, Qt::Vertical ); - groupBox1->layout()->setSpacing( 6 ); - groupBox1->layout()->setMargin( 11 ); - groupBox1Layout = new TQVBoxLayout( groupBox1->layout() ); - groupBox1Layout->setAlignment( TQt::AlignTop ); - - m_description = new KTextEdit( groupBox1, "m_description" ); - m_description->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 3, m_description->sizePolicy().hasHeightForWidth() ) ); - m_description->setReadOnly( TRUE ); - groupBox1Layout->addWidget( m_description ); - layout3->addWidget( groupBox1 ); - - groupBox2 = new TQGroupBox( this, "groupBox2" ); - groupBox2->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 1, 2, groupBox2->sizePolicy().hasHeightForWidth() ) ); - groupBox2->setColumnLayout(0, Qt::Vertical ); - groupBox2->layout()->setSpacing( 6 ); - groupBox2->layout()->setMargin( 11 ); - groupBox2Layout = new TQVBoxLayout( groupBox2->layout() ); - groupBox2Layout->setAlignment( TQt::AlignTop ); - - m_accountList = new TDEListView( groupBox2, "m_accountList" ); - m_accountList->addColumn( kmm_i18n( "Name" ) ); - m_accountList->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 3, m_accountList->sizePolicy().hasHeightForWidth() ) ); - m_accountList->setMinimumSize( TQSize( 0, 150 ) ); - m_accountList->setProperty( "selectionMode", "NoSelection" ); - m_accountList->setAllColumnsShowFocus( TRUE ); - m_accountList->setRootIsDecorated( TRUE ); - m_accountList->setFullWidth( TRUE ); - groupBox2Layout->addWidget( m_accountList ); - layout3->addWidget( groupBox2 ); - KAccountTemplateSelectorDeclLayout->addLayout( layout3 ); - languageChange(); - resize( TQSize(546, 346).expandedTo(minimumSizeHint()) ); - clearWState( WState_Polished ); -} - -/* - * Destroys the object and frees any allocated resources - */ -KAccountTemplateSelectorDecl::~KAccountTemplateSelectorDecl() -{ - // no need to delete child widgets, TQt does it all for us -} - -/* - * Sets the strings of the subwidgets using the current - * language. - */ -void KAccountTemplateSelectorDecl::languageChange() -{ - m_groupList->header()->setLabel( 0, kmm_i18n( "Account Types" ) ); - m_groupList->header()->setLabel( 1, kmm_i18n( "Description" ) ); - groupBox1->setTitle( kmm_i18n( "Detailed description" ) ); - groupBox2->setTitle( kmm_i18n( "Accounts" ) ); - m_accountList->header()->setLabel( 0, kmm_i18n( "Name" ) ); -} - -#include "kaccounttemplateselectordecl.moc" diff --git a/kmymoney2/widgets/kbudgetvaluesdecl.cpp b/kmymoney2/widgets/kbudgetvaluesdecl.cpp deleted file mode 100644 index 3c13196..0000000 --- a/kmymoney2/widgets/kbudgetvaluesdecl.cpp +++ /dev/null @@ -1,257 +0,0 @@ -#include -#include -#ifndef KMM_I18N -#define KMM_I18N -inline TQString kmm_i18n(const char* msg, const char* ctx) { return i18n(ctx, msg); } -inline TQString kmm_i18n(const char* msg) { return i18n(msg); } -#endif -/**************************************************************************** -** Form implementation generated from reading ui file '../../../kmymoney2/widgets/kbudgetvaluesdecl.ui' -** -** Created: Fri Feb 12 15:05:38 2010 -** -** WARNING! All changes made in this file will be lost! -****************************************************************************/ - -#include "kbudgetvaluesdecl.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -/* - * Constructs a KBudgetValuesDecl as a child of 'parent', with the - * name 'name' and widget flags set to 'f'. - */ -KBudgetValuesDecl::KBudgetValuesDecl( TQWidget* parent, const char* name, WFlags fl ) - : TQWidget( parent, name, fl ) -{ - if ( !name ) - setName( "KBudgetValuesDecl" ); - KBudgetValuesDeclLayout = new TQGridLayout( this, 1, 1, 0, 6, "KBudgetValuesDeclLayout"); - - m_amount10 = new kMyMoneyEdit( this, "m_amount10" ); - m_amount10->setProperty( "resetButtonVisibility", TQVariant( false ) ); - - KBudgetValuesDeclLayout->addWidget( m_amount10, 3, 5 ); - - m_amount6 = new kMyMoneyEdit( this, "m_amount6" ); - m_amount6->setProperty( "resetButtonVisibility", TQVariant( false ) ); - - KBudgetValuesDeclLayout->addWidget( m_amount6, 5, 3 ); - - m_amount5 = new kMyMoneyEdit( this, "m_amount5" ); - m_amount5->setProperty( "resetButtonVisibility", TQVariant( false ) ); - - KBudgetValuesDeclLayout->addWidget( m_amount5, 4, 3 ); - - m_label6 = new TQLabel( this, "m_label6" ); - - KBudgetValuesDeclLayout->addWidget( m_label6, 5, 2 ); - - m_label8 = new TQLabel( this, "m_label8" ); - - KBudgetValuesDeclLayout->addWidget( m_label8, 1, 4 ); - - m_amount9 = new kMyMoneyEdit( this, "m_amount9" ); - m_amount9->setProperty( "resetButtonVisibility", TQVariant( false ) ); - - KBudgetValuesDeclLayout->addWidget( m_amount9, 2, 5 ); - - m_amount11 = new kMyMoneyEdit( this, "m_amount11" ); - m_amount11->setProperty( "resetButtonVisibility", TQVariant( false ) ); - - KBudgetValuesDeclLayout->addWidget( m_amount11, 4, 5 ); - - m_label12 = new TQLabel( this, "m_label12" ); - - KBudgetValuesDeclLayout->addWidget( m_label12, 5, 4 ); - - m_label10 = new TQLabel( this, "m_label10" ); - - KBudgetValuesDeclLayout->addWidget( m_label10, 3, 4 ); - - m_label7 = new TQLabel( this, "m_label7" ); - - KBudgetValuesDeclLayout->addWidget( m_label7, 0, 4 ); - - m_amount3 = new kMyMoneyEdit( this, "m_amount3" ); - m_amount3->setProperty( "resetButtonVisibility", TQVariant( false ) ); - - KBudgetValuesDeclLayout->addWidget( m_amount3, 2, 3 ); - - m_label4 = new TQLabel( this, "m_label4" ); - - KBudgetValuesDeclLayout->addWidget( m_label4, 3, 2 ); - - m_amount12 = new kMyMoneyEdit( this, "m_amount12" ); - m_amount12->setProperty( "resetButtonVisibility", TQVariant( false ) ); - - KBudgetValuesDeclLayout->addWidget( m_amount12, 5, 5 ); - - m_label3 = new TQLabel( this, "m_label3" ); - - KBudgetValuesDeclLayout->addWidget( m_label3, 2, 2 ); - - m_label1 = new TQLabel( this, "m_label1" ); - - KBudgetValuesDeclLayout->addWidget( m_label1, 0, 2 ); - - m_label2 = new TQLabel( this, "m_label2" ); - - KBudgetValuesDeclLayout->addWidget( m_label2, 1, 2 ); - - m_label5 = new TQLabel( this, "m_label5" ); - - KBudgetValuesDeclLayout->addWidget( m_label5, 4, 2 ); - - m_label11 = new TQLabel( this, "m_label11" ); - - KBudgetValuesDeclLayout->addWidget( m_label11, 4, 4 ); - - m_amount4 = new kMyMoneyEdit( this, "m_amount4" ); - m_amount4->setProperty( "resetButtonVisibility", TQVariant( false ) ); - - KBudgetValuesDeclLayout->addWidget( m_amount4, 3, 3 ); - - m_label9 = new TQLabel( this, "m_label9" ); - - KBudgetValuesDeclLayout->addWidget( m_label9, 2, 4 ); - - m_amount8 = new kMyMoneyEdit( this, "m_amount8" ); - m_amount8->setProperty( "resetButtonVisibility", TQVariant( false ) ); - - KBudgetValuesDeclLayout->addWidget( m_amount8, 1, 5 ); - - m_amount2 = new kMyMoneyEdit( this, "m_amount2" ); - m_amount2->setProperty( "resetButtonVisibility", TQVariant( false ) ); - - KBudgetValuesDeclLayout->addWidget( m_amount2, 1, 3 ); - - m_amount7 = new kMyMoneyEdit( this, "m_amount7" ); - m_amount7->setProperty( "resetButtonVisibility", TQVariant( false ) ); - - KBudgetValuesDeclLayout->addWidget( m_amount7, 0, 5 ); - - m_firstItemStack = new TQWidgetStack( this, "m_firstItemStack" ); - - m_monthlyPage = new TQWidget( m_firstItemStack, "m_monthlyPage" ); - m_monthlyPageLayout = new TQHBoxLayout( m_monthlyPage, 0, 6, "m_monthlyPageLayout"); - - m_amountMonthly = new kMyMoneyEdit( m_monthlyPage, "m_amountMonthly" ); - m_amountMonthly->setProperty( "resetButtonVisibility", TQVariant( false ) ); - m_monthlyPageLayout->addWidget( m_amountMonthly ); - m_firstItemStack->addWidget( m_monthlyPage, 0 ); - - m_yearlyPage = new TQWidget( m_firstItemStack, "m_yearlyPage" ); - m_yearlyPageLayout = new TQHBoxLayout( m_yearlyPage, 0, 6, "m_yearlyPageLayout"); - - m_amountYearly = new kMyMoneyEdit( m_yearlyPage, "m_amountYearly" ); - m_amountYearly->setProperty( "resetButtonVisibility", TQVariant( false ) ); - m_yearlyPageLayout->addWidget( m_amountYearly ); - m_firstItemStack->addWidget( m_yearlyPage, 1 ); - - m_individualPage = new TQWidget( m_firstItemStack, "m_individualPage" ); - m_individualPageLayout = new TQHBoxLayout( m_individualPage, 0, 6, "m_individualPageLayout"); - - m_amount1 = new kMyMoneyEdit( m_individualPage, "m_amount1" ); - m_amount1->setProperty( "resetButtonVisibility", TQVariant( false ) ); - m_individualPageLayout->addWidget( m_amount1 ); - m_firstItemStack->addWidget( m_individualPage, 2 ); - - KBudgetValuesDeclLayout->addWidget( m_firstItemStack, 0, 3 ); - - layout12 = new TQVBoxLayout( 0, 0, 6, "layout12"); - - m_clearButton = new KPushButton( this, "m_clearButton" ); - layout12->addWidget( m_clearButton ); - spacer7 = new TQSpacerItem( 20, 21, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); - layout12->addItem( spacer7 ); - - KBudgetValuesDeclLayout->addMultiCellLayout( layout12, 0, 5, 1, 1 ); - - m_periodGroup = new TQButtonGroup( this, "m_periodGroup" ); - m_periodGroup->setColumnLayout(0, Qt::Vertical ); - m_periodGroup->layout()->setSpacing( 6 ); - m_periodGroup->layout()->setMargin( 11 ); - m_periodGroupLayout = new TQVBoxLayout( m_periodGroup->layout() ); - m_periodGroupLayout->setAlignment( TQt::AlignTop ); - - m_monthlyButton = new TQRadioButton( m_periodGroup, "m_monthlyButton" ); - m_periodGroupLayout->addWidget( m_monthlyButton ); - - m_yearlyButton = new TQRadioButton( m_periodGroup, "m_yearlyButton" ); - m_periodGroupLayout->addWidget( m_yearlyButton ); - - m_individualButton = new TQRadioButton( m_periodGroup, "m_individualButton" ); - m_periodGroupLayout->addWidget( m_individualButton ); - spacer10 = new TQSpacerItem( 20, 21, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); - m_periodGroupLayout->addItem( spacer10 ); - - KBudgetValuesDeclLayout->addMultiCellWidget( m_periodGroup, 0, 5, 0, 0 ); - languageChange(); - resize( TQSize(553, 188).expandedTo(minimumSizeHint()) ); - clearWState( WState_Polished ); - - // tab order - setTabOrder( m_monthlyButton, m_yearlyButton ); - setTabOrder( m_yearlyButton, m_individualButton ); - setTabOrder( m_individualButton, m_clearButton ); - setTabOrder( m_clearButton, m_amount1 ); - setTabOrder( m_amount1, m_amountMonthly ); - setTabOrder( m_amountMonthly, m_amountYearly ); - setTabOrder( m_amountYearly, m_amount2 ); - setTabOrder( m_amount2, m_amount3 ); - setTabOrder( m_amount3, m_amount4 ); - setTabOrder( m_amount4, m_amount5 ); - setTabOrder( m_amount5, m_amount6 ); - setTabOrder( m_amount6, m_amount7 ); - setTabOrder( m_amount7, m_amount8 ); - setTabOrder( m_amount8, m_amount9 ); - setTabOrder( m_amount9, m_amount10 ); - setTabOrder( m_amount10, m_amount11 ); - setTabOrder( m_amount11, m_amount12 ); -} - -/* - * Destroys the object and frees any allocated resources - */ -KBudgetValuesDecl::~KBudgetValuesDecl() -{ - // no need to delete child widgets, TQt does it all for us -} - -/* - * Sets the strings of the subwidgets using the current - * language. - */ -void KBudgetValuesDecl::languageChange() -{ - m_label6->setText( kmm_i18n( "xxx" ) ); - m_label8->setText( kmm_i18n( "xxx" ) ); - m_label12->setText( kmm_i18n( "xxx" ) ); - m_label10->setText( kmm_i18n( "xxx" ) ); - m_label7->setText( kmm_i18n( "xxx" ) ); - m_label4->setText( kmm_i18n( "xxx" ) ); - m_label3->setText( kmm_i18n( "xxx" ) ); - m_label1->setText( kmm_i18n( "xxx" ) ); - m_label2->setText( kmm_i18n( "xxx" ) ); - m_label5->setText( kmm_i18n( "xxx" ) ); - m_label11->setText( kmm_i18n( "xxx" ) ); - m_label9->setText( kmm_i18n( "xxx" ) ); - m_clearButton->setText( TQString() ); - m_periodGroup->setTitle( kmm_i18n( "Period" ) ); - m_monthlyButton->setText( kmm_i18n( "Monthly" ) ); - m_yearlyButton->setText( kmm_i18n( "Yearly" ) ); - m_individualButton->setText( kmm_i18n( "Individual" ) ); -} - -#include "kbudgetvaluesdecl.moc"