diff options
author | Michele Calgaro <[email protected]> | 2019-04-21 23:22:20 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2019-04-21 23:22:20 +0900 |
commit | dba036816b279bc1539a9f3894fbc414665d2bce (patch) | |
tree | 29e4bf00bafe515e7afdd02168d65a47a3f9fbc0 /tqtinterface/qt4/tools/designer/examples/book/book5 | |
parent | 6f1b4f0c7505a049d992a33f6e409b7c75732d4b (diff) | |
download | experimental-dba036816b279bc1539a9f3894fbc414665d2bce.tar.gz experimental-dba036816b279bc1539a9f3894fbc414665d2bce.zip |
Removed unnecessary and/or TDE-unrelated code.
Signed-off-by: Michele Calgaro <[email protected]>
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'tqtinterface/qt4/tools/designer/examples/book/book5')
6 files changed, 0 insertions, 547 deletions
diff --git a/tqtinterface/qt4/tools/designer/examples/book/book5/book.ui b/tqtinterface/qt4/tools/designer/examples/book/book5/book.ui deleted file mode 100644 index 399e7fd..0000000 --- a/tqtinterface/qt4/tools/designer/examples/book/book5/book.ui +++ /dev/null @@ -1,188 +0,0 @@ -<!DOCTYPE UI><UI version="3.0" stdsetdef="1"> -<class>BookForm</class> -<include location="local" impldecl="in declaration">qdatabrowser.h</include> -<include location="local" impldecl="in declaration">editbook.h</include> -<include location="local" implDecl="in declaration">book.ui.h</include> -<layoutdefaults spacing="6" margin="11"/> -<widget class="TQDialog"> - <property name="name"> - <cstring>BookForm</cstring> - </property> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>530</width> - <height>524</height> - </rect> - </property> - <property name="caption"> - <string>Book</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="TQSplitter"> - <property name="name"> - <cstring>Splitter1</cstring> - </property> - <property name="frameShape"> - <enum>MShape</enum> - </property> - <property name="frameShadow"> - <enum>MShadow</enum> - </property> - <property name="orientation"> - <enum>Vertical</enum> - </property> - <widget class="TQDataTable"> - <column> - <property name="text"> - <string>Surname</string> - </property> - <property name="field"> - <string>surname</string> - </property> - </column> - <column> - <property name="text"> - <string>Forename</string> - </property> - <property name="field"> - <string>forename</string> - </property> - </column> - <property name="name"> - <cstring>AuthorDataTable</cstring> - </property> - <property name="confirmDelete"> - <bool>true</bool> - </property> - <property name="sort"> - <stringlist> - <string>surname ASC</string> - <string>forename ASC</string> - </stringlist> - </property> - <property name="database" stdset="0"> - <stringlist> - <string>(default)</string> - <string>author</string> - </stringlist> - </property> - </widget> - <widget class="TQDataTable"> - <column> - <property name="text"> - <string>Title</string> - </property> - <property name="field"> - <string>title</string> - </property> - </column> - <column> - <property name="text"> - <string>Price</string> - </property> - <property name="field"> - <string>price</string> - </property> - </column> - <column> - <property name="text"> - <string>Notes</string> - </property> - <property name="field"> - <string>notes</string> - </property> - </column> - <property name="name"> - <cstring>BookDataTable</cstring> - </property> - <property name="readOnly"> - <bool>true</bool> - </property> - <property name="sort"> - <stringlist> - <string>title ASC</string> - </stringlist> - </property> - <property name="database" stdset="0"> - <stringlist> - <string>(default)</string> - <string>book</string> - </stringlist> - </property> - </widget> - </widget> - <widget class="TQLayoutWidget"> - <property name="name"> - <cstring>Layout5</cstring> - </property> - <hbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>0</number> - </property> - <property name="spacing"> - <number>6</number> - </property> - <widget class="TQPushButton"> - <property name="name"> - <cstring>EditPushButton</cstring> - </property> - <property name="text"> - <string>&Edit Books</string> - </property> - </widget> - <widget class="TQPushButton"> - <property name="name"> - <cstring>QuitPushButton</cstring> - </property> - <property name="text"> - <string>&Quit</string> - </property> - </widget> - </hbox> - </widget> - </vbox> -</widget> -<connections> - <connection language="C++"> - <sender>QuitPushButton</sender> - <signal>clicked()</signal> - <receiver>BookForm</receiver> - <slot>accept()</slot> - </connection> - <connection language="C++"> - <sender>EditPushButton</sender> - <signal>clicked()</signal> - <receiver>BookForm</receiver> - <slot>editClicked()</slot> - </connection> - <connection language="C++"> - <sender>AuthorDataTable</sender> - <signal>primeInsert(QSqlRecord*)</signal> - <receiver>BookForm</receiver> - <slot>primeInsertAuthor(QSqlRecord*)</slot> - </connection> - <connection language="C++"> - <sender>AuthorDataTable</sender> - <signal>currentChanged(QSqlRecord*)</signal> - <receiver>BookForm</receiver> - <slot>newCurrentAuthor(QSqlRecord*)</slot> - </connection> - <slot access="public" specifier="virtual" language="C++" returnType="void">editClicked()</slot> - <slot access="public" specifier="virtual" language="C++" returnType="void">newCurrentAuthor( QSqlRecord * author )</slot> - <slot access="public" specifier="virtual" language="C++" returnType="void">primeInsertAuthor( QSqlRecord * buffer )</slot> -</connections> -</UI> diff --git a/tqtinterface/qt4/tools/designer/examples/book/book5/book.ui.h b/tqtinterface/qt4/tools/designer/examples/book/book5/book.ui.h deleted file mode 100644 index c41fa17..0000000 --- a/tqtinterface/qt4/tools/designer/examples/book/book5/book.ui.h +++ /dev/null @@ -1,23 +0,0 @@ -void BookForm::editClicked() -{ - EditBookForm *dialog = new EditBookForm( this, "Edit Book Form", TRUE ); - dialog->exec(); - delete dialog; -} - -void BookForm::newCurrentAuthor( TQSqlRecord *author ) -{ - BookDataTable->setFilter( "authorid=" + author->value( "id" ).toString() ); - BookDataTable->refresh(); -} - -void BookForm::primeInsertAuthor( TQSqlRecord *buffer ) -{ - TQSqlQuery query; - query.exec( "UPDATE sequence SET sequence = sequence + 1 WHERE tablename='author';" ); - query.exec( "SELECT sequence FROM sequence WHERE tablename='author';" ); - if ( query.next() ) { - buffer->setValue( "id", query.value( 0 ) ); - } -} - diff --git a/tqtinterface/qt4/tools/designer/examples/book/book5/book5.pro b/tqtinterface/qt4/tools/designer/examples/book/book5/book5.pro deleted file mode 100644 index 030db5f..0000000 --- a/tqtinterface/qt4/tools/designer/examples/book/book5/book5.pro +++ /dev/null @@ -1,8 +0,0 @@ -TEMPLATE = app -LANGUAGE = C++ - -CONFIG += qt warn_on release - -SOURCES += main.cpp ../connection.cpp -FORMS = book.ui editbook.ui -DBFILE = book.db diff --git a/tqtinterface/qt4/tools/designer/examples/book/book5/editbook.ui b/tqtinterface/qt4/tools/designer/examples/book/book5/editbook.ui deleted file mode 100644 index 70a6df0..0000000 --- a/tqtinterface/qt4/tools/designer/examples/book/book5/editbook.ui +++ /dev/null @@ -1,291 +0,0 @@ -<!DOCTYPE UI><UI version="3.0" stdsetdef="1"> -<class>EditBookForm</class> -<widget class="TQDialog"> - <property name="name"> - <cstring>EditBookForm</cstring> - </property> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>568</width> - <height>301</height> - </rect> - </property> - <property name="caption"> - <string>Edit Books</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="TQDataBrowser"> - <property name="name"> - <cstring>BookDataBrowser</cstring> - </property> - <property name="sort"> - <stringlist> - <string>title ASC</string> - </stringlist> - </property> - <property name="database" stdset="0"> - <stringlist> - <string>(default)</string> - <string>book</string> - </stringlist> - </property> - <property name="frameworkCode" stdset="0"> - <bool>false</bool> - </property> - <grid> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>11</number> - </property> - <property name="spacing"> - <number>6</number> - </property> - <widget class="TQLayoutWidget" row="0" column="0"> - <property name="name"> - <cstring>Layout2</cstring> - </property> - <grid> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>0</number> - </property> - <property name="spacing"> - <number>6</number> - </property> - <widget class="TQLabel" row="1" column="0"> - <property name="name"> - <cstring>labelPrice</cstring> - </property> - <property name="text"> - <string>Price</string> - </property> - </widget> - <widget class="TQLabel" row="0" column="0"> - <property name="name"> - <cstring>labelTitle</cstring> - </property> - <property name="text"> - <string>Title</string> - </property> - </widget> - <widget class="TQLineEdit" row="0" column="1"> - <property name="name"> - <cstring>QLineEditTitle</cstring> - </property> - <property name="text"> - <string></string> - </property> - <property name="database" stdset="0"> - <stringlist> - <string>(default)</string> - <string>book</string> - <string>title</string> - </stringlist> - </property> - </widget> - <widget class="TQLineEdit" row="1" column="1"> - <property name="name"> - <cstring>QLineEditPrice</cstring> - </property> - <property name="database" stdset="0"> - <stringlist> - <string>(default)</string> - <string>book</string> - <string>price</string> - </stringlist> - </property> - </widget> - </grid> - </widget> - <widget class="TQLayoutWidget" row="1" column="0"> - <property name="name"> - <cstring>Layout3</cstring> - </property> - <hbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>0</number> - </property> - <property name="spacing"> - <number>6</number> - </property> - <widget class="TQPushButton"> - <property name="name"> - <cstring>PushButtonFirst</cstring> - </property> - <property name="text"> - <string>|< &First</string> - </property> - </widget> - <widget class="TQPushButton"> - <property name="name"> - <cstring>PushButtonPrev</cstring> - </property> - <property name="text"> - <string><< &Prev</string> - </property> - </widget> - <widget class="TQPushButton"> - <property name="name"> - <cstring>PushButtonNext</cstring> - </property> - <property name="text"> - <string>&Next >></string> - </property> - </widget> - <widget class="TQPushButton"> - <property name="name"> - <cstring>PushButtonLast</cstring> - </property> - <property name="text"> - <string>&Last >|</string> - </property> - </widget> - </hbox> - </widget> - <widget class="TQLayoutWidget" row="2" column="0"> - <property name="name"> - <cstring>Layout6</cstring> - </property> - <hbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>0</number> - </property> - <property name="spacing"> - <number>6</number> - </property> - <widget class="TQPushButton"> - <property name="name"> - <cstring>PushButtonInsert</cstring> - </property> - <property name="text"> - <string>&Insert</string> - </property> - </widget> - <widget class="TQPushButton"> - <property name="name"> - <cstring>PushButtonUpdate</cstring> - </property> - <property name="text"> - <string>&Update</string> - </property> - </widget> - <widget class="TQPushButton"> - <property name="name"> - <cstring>PushButtonDelete</cstring> - </property> - <property name="text"> - <string>&Delete</string> - </property> - </widget> - <widget class="TQPushButton"> - <property name="name"> - <cstring>PushButtonClose</cstring> - </property> - <property name="text"> - <string>&Close</string> - </property> - </widget> - </hbox> - </widget> - </grid> - </widget> - </vbox> -</widget> -<connections> - <connection> - <sender>PushButtonFirst</sender> - <signal>clicked()</signal> - <receiver>BookDataBrowser</receiver> - <slot>first()</slot> - </connection> - <connection> - <sender>BookDataBrowser</sender> - <signal>firstRecordAvailable( bool )</signal> - <receiver>PushButtonFirst</receiver> - <slot>setEnabled(bool)</slot> - </connection> - <connection> - <sender>PushButtonPrev</sender> - <signal>clicked()</signal> - <receiver>BookDataBrowser</receiver> - <slot>prev()</slot> - </connection> - <connection> - <sender>BookDataBrowser</sender> - <signal>prevRecordAvailable( bool )</signal> - <receiver>PushButtonPrev</receiver> - <slot>setEnabled(bool)</slot> - </connection> - <connection> - <sender>PushButtonNext</sender> - <signal>clicked()</signal> - <receiver>BookDataBrowser</receiver> - <slot>next()</slot> - </connection> - <connection> - <sender>BookDataBrowser</sender> - <signal>nextRecordAvailable( bool )</signal> - <receiver>PushButtonNext</receiver> - <slot>setEnabled(bool)</slot> - </connection> - <connection> - <sender>PushButtonLast</sender> - <signal>clicked()</signal> - <receiver>BookDataBrowser</receiver> - <slot>last()</slot> - </connection> - <connection> - <sender>BookDataBrowser</sender> - <signal>lastRecordAvailable( bool )</signal> - <receiver>PushButtonLast</receiver> - <slot>setEnabled(bool)</slot> - </connection> - <connection> - <sender>PushButtonInsert</sender> - <signal>clicked()</signal> - <receiver>BookDataBrowser</receiver> - <slot>insert()</slot> - </connection> - <connection> - <sender>PushButtonUpdate</sender> - <signal>clicked()</signal> - <receiver>BookDataBrowser</receiver> - <slot>update()</slot> - </connection> - <connection> - <sender>PushButtonDelete</sender> - <signal>clicked()</signal> - <receiver>BookDataBrowser</receiver> - <slot>del()</slot> - </connection> -</connections> -<includes> - <include location="local" impldecl="in implementation">editbook.ui.h</include> -</includes> -<Q_SLOTS> - <slot>init()</slot> - <slot>destroy()</slot> -</Q_SLOTS> -<layoutdefaults spacing="6" margin="11"/> -</UI> diff --git a/tqtinterface/qt4/tools/designer/examples/book/book5/editbook.ui.h b/tqtinterface/qt4/tools/designer/examples/book/book5/editbook.ui.h deleted file mode 100644 index 4a8a636..0000000 --- a/tqtinterface/qt4/tools/designer/examples/book/book5/editbook.ui.h +++ /dev/null @@ -1,10 +0,0 @@ -void EditBookForm::init() -{ - -} - -void EditBookForm::destroy() -{ - -} - diff --git a/tqtinterface/qt4/tools/designer/examples/book/book5/main.cpp b/tqtinterface/qt4/tools/designer/examples/book/book5/main.cpp deleted file mode 100644 index d244790..0000000 --- a/tqtinterface/qt4/tools/designer/examples/book/book5/main.cpp +++ /dev/null @@ -1,27 +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 <tqsqldatabase.h> -#include "book.h" -#include "../connection.h" - -int main( int argc, char *argv[] ) -{ - TQApplication app( argc, argv ); - - if ( ! createConnections() ) - return 1; - - BookForm bookForm; - app.setMainWidget( &bookForm ); - bookForm.show(); - - return app.exec(); -} |