diff options
Diffstat (limited to 'tqtinterface/qt4/tools/designer/examples/credit')
8 files changed, 0 insertions, 455 deletions
diff --git a/tqtinterface/qt4/tools/designer/examples/credit/credit.pro b/tqtinterface/qt4/tools/designer/examples/credit/credit.pro deleted file mode 100644 index 4dc246d..0000000 --- a/tqtinterface/qt4/tools/designer/examples/credit/credit.pro +++ /dev/null @@ -1,11 +0,0 @@ -TEMPLATE = app -LANGUAGE = C++ -TARGET = credit - -SOURCES += main.cpp -HEADERS += creditform.h -SOURCES += creditform.cpp -FORMS = creditformbase.ui -CONFIG += qt warn_on release -DBFILE = credit.db -IMAGEFILE = images.cpp diff --git a/tqtinterface/qt4/tools/designer/examples/credit/creditform.cpp b/tqtinterface/qt4/tools/designer/examples/credit/creditform.cpp deleted file mode 100644 index 3a2afa3..0000000 --- a/tqtinterface/qt4/tools/designer/examples/credit/creditform.cpp +++ /dev/null @@ -1,20 +0,0 @@ -#include <tqradiobutton.h> -#include <tqspinbox.h> -#include "creditform.h" - -CreditForm::CreditForm( TQWidget* parent, const char* name, - bool modal, WFlags fl ) - : CreditFormBase( parent, name, modal, fl ) -{ - setAmount(); -} - -CreditForm::~CreditForm() { /* NOOP */ } - -void CreditForm::setAmount() -{ - if ( stdRadioButton->isChecked() ) - amountSpinBox->setValue( amountSpinBox->maxValue() / 2 ); - else if ( noneRadioButton->isChecked() ) - amountSpinBox->setValue( amountSpinBox->minValue() ); -} diff --git a/tqtinterface/qt4/tools/designer/examples/credit/creditform.h b/tqtinterface/qt4/tools/designer/examples/credit/creditform.h deleted file mode 100644 index fb5b071..0000000 --- a/tqtinterface/qt4/tools/designer/examples/credit/creditform.h +++ /dev/null @@ -1,12 +0,0 @@ -#include "creditformbase.h" - -class CreditForm : public CreditFormBase -{ - TQ_OBJECT -public: - CreditForm( TQWidget* parent = 0, const char* name = 0, - bool modal = FALSE, WFlags fl = 0 ); - ~CreditForm(); -public Q_SLOTS: - void setAmount(); -}; diff --git a/tqtinterface/qt4/tools/designer/examples/credit/creditformbase.cpp b/tqtinterface/qt4/tools/designer/examples/credit/creditformbase.cpp deleted file mode 100644 index ab81bcb..0000000 --- a/tqtinterface/qt4/tools/designer/examples/credit/creditformbase.cpp +++ /dev/null @@ -1,122 +0,0 @@ -/**************************************************************************** -** Form implementation generated from reading ui file 'creditformbase.ui' -** -** Created: Fri Aug 10 09:48:16 2001 -** by: The User Interface Compiler (uic) -** -** WARNING! All changes made in this file will be lost! -****************************************************************************/ -#include "creditformbase.h" - -#include <tqvariant.h> // first for gcc 2.7.2 -#include <tqbuttongroup.h> -#include <tqpushbutton.h> -#include <tqradiobutton.h> -#include <tqspinbox.h> -#include <tqmime.h> -#include <tqdragobject.h> -#include <tqlayout.h> -#include <tqtooltip.h> -#include <tqwhatsthis.h> -#include "creditformbase.ui.h" -#include <tqimage.h> -#include <tqpixmap.h> - -static TQPixmap uic_load_pixmap_CreditFormBase( const TQString &name ) -{ - const TQMimeSource *m = TQMimeSourceFactory::defaultFactory()->data( name ); - if ( !m ) - return TQPixmap(); - TQPixmap pix; - TQImageDrag::decode( m, pix ); - return pix; -} -/* - * Constructs a CreditFormBase which is a child of 'parent', with the - * name 'name' and widget flags set to 'f'. - * - * The dialog will by default be modeless, unless you set 'modal' to - * TRUE to construct a modal dialog. - */ -CreditFormBase::CreditFormBase( TQWidget* parent, const char* name, bool modal, WFlags fl ) - : TQDialog( parent, name, modal, fl ) -{ - if ( !name ) - setName( "CreditFormBase" ); - resize( 276, 224 ); - setCaption( trUtf8( "Credit Rating", "" ) ); - CreditFormBaseLayout = new TQVBoxLayout( this ); - CreditFormBaseLayout->setSpacing( 6 ); - CreditFormBaseLayout->setMargin( 11 ); - - creditButtonGroup = new TQButtonGroup( this, "creditButtonGroup" ); - creditButtonGroup->setTitle( trUtf8( "Credit Rating", "" ) ); - creditButtonGroup->setColumnLayout(0, Qt::Vertical ); - creditButtonGroup->tqlayout()->setSpacing( 0 ); - creditButtonGroup->tqlayout()->setMargin( 0 ); - creditButtonGroupLayout = new TQVBoxLayout( creditButtonGroup->tqlayout() ); - creditButtonGroupLayout->tqsetAlignment( TQt::AlignTop ); - creditButtonGroupLayout->setSpacing( 6 ); - creditButtonGroupLayout->setMargin( 11 ); - - stdRadioButton = new TQRadioButton( creditButtonGroup, "stdRadioButton" ); - stdRadioButton->setText( trUtf8( "&Standard", "" ) ); - stdRadioButton->setChecked( TRUE ); - creditButtonGroupLayout->addWidget( stdRadioButton ); - - noneRadioButton = new TQRadioButton( creditButtonGroup, "noneRadioButton" ); - noneRadioButton->setText( trUtf8( "&None", "" ) ); - creditButtonGroupLayout->addWidget( noneRadioButton ); - - specialRadioButton = new TQRadioButton( creditButtonGroup, "specialRadioButton" ); - specialRadioButton->setText( trUtf8( "Sp&ecial", "" ) ); - creditButtonGroupLayout->addWidget( specialRadioButton ); - CreditFormBaseLayout->addWidget( creditButtonGroup ); - - amountSpinBox = new TQSpinBox( this, "amountSpinBox" ); - amountSpinBox->setEnabled( FALSE ); - amountSpinBox->setPrefix( trUtf8( "$ ", "" ) ); - amountSpinBox->setButtonSymbols( TQSpinBox::UpDownArrows ); - amountSpinBox->setMaxValue( 100000 ); - amountSpinBox->setLineStep( 10000 ); - CreditFormBaseLayout->addWidget( amountSpinBox ); - - Layout4 = new TQHBoxLayout; - Layout4->setSpacing( 6 ); - Layout4->setMargin( 0 ); - TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); - Layout4->addItem( spacer ); - - okPushButton = new TQPushButton( this, "okPushButton" ); - okPushButton->setText( trUtf8( "OK", "" ) ); - okPushButton->setDefault( TRUE ); - Layout4->addWidget( okPushButton ); - TQSpacerItem* spacer_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); - Layout4->addItem( spacer_2 ); - - cancelPushButton = new TQPushButton( this, "cancelPushButton" ); - cancelPushButton->setText( trUtf8( "Cancel", "" ) ); - Layout4->addWidget( cancelPushButton ); - TQSpacerItem* spacer_3 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); - Layout4->addItem( spacer_3 ); - CreditFormBaseLayout->addLayout( Layout4 ); - - - - - - // Q_SIGNALS and Q_SLOTS connections - connect( okPushButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( accept() ) ); - connect( cancelPushButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( reject() ) ); - connect( creditButtonGroup, TQT_SIGNAL( clicked(int) ), this, TQT_SLOT( setAmount() ) ); - connect( specialRadioButton, TQT_SIGNAL( toggled(bool) ), amountSpinBox, TQT_SLOT( setEnabled(bool) ) ); -} - -/* - * Destroys the object and frees any allocated resources - */ -CreditFormBase::~CreditFormBase() -{ - // no need to delete child widgets, TQt does it all for us -} - diff --git a/tqtinterface/qt4/tools/designer/examples/credit/creditformbase.h b/tqtinterface/qt4/tools/designer/examples/credit/creditformbase.h deleted file mode 100644 index 4c9ed51..0000000 --- a/tqtinterface/qt4/tools/designer/examples/credit/creditformbase.h +++ /dev/null @@ -1,48 +0,0 @@ -/**************************************************************************** -** Form interface generated from reading ui file 'creditformbase.ui' -** -** Created: Fri Aug 10 09:48:10 2001 -** by: The User Interface Compiler (uic) -** -** WARNING! All changes made in this file will be lost! -****************************************************************************/ -#ifndef CREDITFORMBASE_H -#define CREDITFORMBASE_H - -#include <tqvariant.h> -#include <tqdialog.h> -class TQVBoxLayout; -class TQHBoxLayout; -class TQGridLayout; -class TQButtonGroup; -class TQPushButton; -class TQRadioButton; -class TQSpinBox; - -class CreditFormBase : public TQDialog -{ - TQ_OBJECT - -public: - CreditFormBase( TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); - ~CreditFormBase(); - - TQButtonGroup* creditButtonGroup; - TQRadioButton* stdRadioButton; - TQRadioButton* noneRadioButton; - TQRadioButton* specialRadioButton; - TQSpinBox* amountSpinBox; - TQPushButton* okPushButton; - TQPushButton* cancelPushButton; - - -public Q_SLOTS: - virtual void setAmount(); - -protected: - TQVBoxLayout* CreditFormBaseLayout; - TQVBoxLayout* creditButtonGroupLayout; - TQHBoxLayout* Layout4; -}; - -#endif // CREDITFORMBASE_H diff --git a/tqtinterface/qt4/tools/designer/examples/credit/creditformbase.ui b/tqtinterface/qt4/tools/designer/examples/credit/creditformbase.ui deleted file mode 100644 index 00aa9a0..0000000 --- a/tqtinterface/qt4/tools/designer/examples/credit/creditformbase.ui +++ /dev/null @@ -1,212 +0,0 @@ -<!DOCTYPE UI><UI version="3.0" stdsetdef="1"> -<class>CreditFormBase</class> -<include location="local" implDecl="in declaration">creditformbase.ui.h</include> -<pixmapinproject/> -<layoutdefaults spacing="6" margin="11"/> -<widget class="TQDialog"> - <property name="name"> - <cstring>CreditFormBase</cstring> - </property> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>276</width> - <height>224</height> - </rect> - </property> - <property name="caption"> - <string>Credit Rating</string> - </property> - <vbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>11</number> - </property> - <property name="spacing"> - <number>6</number> - </property> - <widget class="TQButtonGroup"> - <property name="name"> - <cstring>creditButtonGroup</cstring> - </property> - <property name="title"> - <string>Credit Rating</string> - </property> - <vbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>11</number> - </property> - <property name="spacing"> - <number>6</number> - </property> - <widget class="TQRadioButton"> - <property name="name"> - <cstring>stdRadioButton</cstring> - </property> - <property name="text"> - <string>&Standard</string> - </property> - <property name="checked"> - <bool>true</bool> - </property> - </widget> - <widget class="TQRadioButton"> - <property name="name"> - <cstring>noneRadioButton</cstring> - </property> - <property name="text"> - <string>&None</string> - </property> - </widget> - <widget class="TQRadioButton"> - <property name="name"> - <cstring>specialRadioButton</cstring> - </property> - <property name="text"> - <string>Sp&ecial</string> - </property> - </widget> - </vbox> - </widget> - <widget class="TQSpinBox"> - <property name="name"> - <cstring>amountSpinBox</cstring> - </property> - <property name="enabled"> - <bool>false</bool> - </property> - <property name="prefix"> - <string>$ </string> - </property> - <property name="buttonSymbols"> - <enum>UpDownArrows</enum> - </property> - <property name="maxValue"> - <number>100000</number> - </property> - <property name="lineStep"> - <number>10000</number> - </property> - </widget> - <widget class="TQLayoutWidget"> - <property name="name"> - <cstring>Layout4</cstring> - </property> - <hbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>0</number> - </property> - <property name="spacing"> - <number>6</number> - </property> - <spacer> - <property name="name"> - <cstring>Spacer1</cstring> - </property> - <property name="orientation"> - <enum>Horizontal</enum> - </property> - <property name="sizeType"> - <enum>Expanding</enum> - </property> - <property name="tqsizeHint"> - <size> - <width>20</width> - <height>20</height> - </size> - </property> - </spacer> - <widget class="TQPushButton"> - <property name="name"> - <cstring>okPushButton</cstring> - </property> - <property name="text"> - <string>OK</string> - </property> - <property name="default"> - <bool>true</bool> - </property> - </widget> - <spacer> - <property name="name"> - <cstring>Spacer1_2</cstring> - </property> - <property name="orientation"> - <enum>Horizontal</enum> - </property> - <property name="sizeType"> - <enum>Expanding</enum> - </property> - <property name="tqsizeHint"> - <size> - <width>20</width> - <height>20</height> - </size> - </property> - </spacer> - <widget class="TQPushButton"> - <property name="name"> - <cstring>cancelPushButton</cstring> - </property> - <property name="text"> - <string>Cancel</string> - </property> - </widget> - <spacer> - <property name="name"> - <cstring>Spacer1_3</cstring> - </property> - <property name="orientation"> - <enum>Horizontal</enum> - </property> - <property name="sizeType"> - <enum>Expanding</enum> - </property> - <property name="tqsizeHint"> - <size> - <width>20</width> - <height>20</height> - </size> - </property> - </spacer> - </hbox> - </widget> - </vbox> -</widget> -<connections> - <connection language="C++"> - <sender>okPushButton</sender> - <signal>clicked()</signal> - <receiver>CreditFormBase</receiver> - <slot>accept()</slot> - </connection> - <connection language="C++"> - <sender>cancelPushButton</sender> - <signal>clicked()</signal> - <receiver>CreditFormBase</receiver> - <slot>reject()</slot> - </connection> - <connection language="C++"> - <sender>creditButtonGroup</sender> - <signal>clicked(int)</signal> - <receiver>CreditFormBase</receiver> - <slot>setAmount()</slot> - </connection> - <connection language="C++"> - <sender>specialRadioButton</sender> - <signal>toggled(bool)</signal> - <receiver>amountSpinBox</receiver> - <slot>setEnabled(bool)</slot> - </connection> - <slot access="public" specifier="virtual" language="C++" returnType="void">setAmount()</slot> -</connections> -</UI> diff --git a/tqtinterface/qt4/tools/designer/examples/credit/creditformbase.ui.h b/tqtinterface/qt4/tools/designer/examples/credit/creditformbase.ui.h deleted file mode 100644 index 6cf4faa..0000000 --- a/tqtinterface/qt4/tools/designer/examples/credit/creditformbase.ui.h +++ /dev/null @@ -1,5 +0,0 @@ -void CreditFormBase::setAmount() -{ - -} - diff --git a/tqtinterface/qt4/tools/designer/examples/credit/main.cpp b/tqtinterface/qt4/tools/designer/examples/credit/main.cpp deleted file mode 100644 index a16183d..0000000 --- a/tqtinterface/qt4/tools/designer/examples/credit/main.cpp +++ /dev/null @@ -1,25 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2010 Timothy Pearson and (C) 1992-2008 Trolltech ASA. -** -** This file is part of an example program for TQt. This example -** program may be used, distributed and modified without limitation. -** -*****************************************************************************/ - -#include <tqapplication.h> -#include "creditform.h" - - -int main( int argc, char *argv[] ) -{ - TQApplication app( argc, argv ); - - CreditForm creditForm; - app.setMainWidget( &creditForm ); - creditForm.show(); - - return app.exec(); -} - - |