summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/demo
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/examples/demo')
-rw-r--r--qtjava/javalib/examples/demo/sql/BookForm.java84
-rw-r--r--qtjava/javalib/examples/demo/sql/ConnectDialog.java64
-rw-r--r--qtjava/javalib/examples/demo/sql/EditBookForm.java136
-rw-r--r--qtjava/javalib/examples/demo/sql/Main.java2
-rw-r--r--qtjava/javalib/examples/demo/widgets/Main.java2
-rw-r--r--qtjava/javalib/examples/demo/widgets/WidgetsBase.java416
6 files changed, 352 insertions, 352 deletions
diff --git a/qtjava/javalib/examples/demo/sql/BookForm.java b/qtjava/javalib/examples/demo/sql/BookForm.java
index 67670357..0c51bd09 100644
--- a/qtjava/javalib/examples/demo/sql/BookForm.java
+++ b/qtjava/javalib/examples/demo/sql/BookForm.java
@@ -8,37 +8,37 @@
****************************************************************************/
import org.kde.qt.*;
-public class BookForm extends QWidget {
- QDataTable AuthorDataTable;
- QDataTable BookDataTable;
- QPushButton connectButton;
- QPushButton editButton;
+public class BookForm extends TQWidget {
+ TQDataTable AuthorDataTable;
+ TQDataTable BookDataTable;
+ TQPushButton connectButton;
+ TQPushButton editButton;
- QGridLayout BookFormLayout;
- QSizePolicy policy_1;
- QSizePolicy policy_2;
- QSpacerItem spacer;
- QSpacerItem spacer_2;
+ TQGridLayout BookFormLayout;
+ TQSizePolicy policy_1;
+ TQSizePolicy policy_2;
+ TQSpacerItem spacer;
+ TQSpacerItem spacer_2;
- QSqlCursor authorCursor;
- QSqlCursor bookCursor;
+ TQSqlCursor authorCursor;
+ TQSqlCursor bookCursor;
/*
* Constructs a BookForm which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
-BookForm( QWidget parent, String name, int fl )
+BookForm( TQWidget parent, String name, int fl )
{
super( parent, name, fl );
if ( name == null )
setName( "BookForm" );
resize( 478, 498 );
setCaption( trUtf8( "Book" ) );
- BookFormLayout = new QGridLayout( this );
+ BookFormLayout = new TQGridLayout( this );
BookFormLayout.setSpacing( 6 );
BookFormLayout.setMargin( 11 );
- AuthorDataTable = new QDataTable( this, "AuthorDataTable" );
+ AuthorDataTable = new TQDataTable( this, "AuthorDataTable" );
AuthorDataTable.addColumn( "surname", trUtf8( "Surname", "" ) );
AuthorDataTable.addColumn( "forename", trUtf8( "Forename", "" ) );
AuthorDataTable.setSorting( true );
@@ -46,10 +46,10 @@ BookForm( QWidget parent, String name, int fl )
AuthorDataTable.setSort( new String[] { "surname ASC", "forename ASC" } );
BookFormLayout.addMultiCellWidget( AuthorDataTable, 1, 1, 0, 2 );
- spacer = new QSpacerItem( 20, 20, QSizePolicy.Expanding, QSizePolicy.Minimum );
+ spacer = new TQSpacerItem( 20, 20, TQSizePolicy.Expanding, TQSizePolicy.Minimum );
BookFormLayout.addMultiCell( spacer, 0, 0, 1, 2 );
- BookDataTable = new QDataTable( this, "BookDataTable" );
+ BookDataTable = new TQDataTable( this, "BookDataTable" );
BookDataTable.addColumn( "title", trUtf8( "Title", "" ) );
BookDataTable.addColumn( "price", trUtf8( "Price", "" ) );
BookDataTable.addColumn( "notes", trUtf8( "Notes", "" ) );
@@ -58,19 +58,19 @@ BookForm( QWidget parent, String name, int fl )
BookDataTable.setSort( new String[] { "title ASC" } );
BookFormLayout.addMultiCellWidget( BookDataTable, 2, 2, 0, 2 );
- spacer_2 = new QSpacerItem( 20, 20, QSizePolicy.Expanding, QSizePolicy.Minimum );
+ spacer_2 = new TQSpacerItem( 20, 20, TQSizePolicy.Expanding, TQSizePolicy.Minimum );
BookFormLayout.addMultiCell( spacer_2, 3, 3, 0, 1 );
- connectButton = new QPushButton( this, "connectButton" );
- policy_1 = new QSizePolicy( (int)0, (int)0, connectButton.sizePolicy().hasHeightForWidth() );
+ connectButton = new TQPushButton( this, "connectButton" );
+ policy_1 = new TQSizePolicy( (int)0, (int)0, connectButton.sizePolicy().hasHeightForWidth() );
connectButton.setSizePolicy( policy_1 );
connectButton.setText( trUtf8( "&Connect..." ) );
BookFormLayout.addWidget( connectButton, 0, 0 );
- editButton = new QPushButton( this, "editButton" );
+ editButton = new TQPushButton( this, "editButton" );
editButton.setEnabled( false );
- policy_2 = new QSizePolicy( (int)0, (int)0, editButton.sizePolicy().hasHeightForWidth() );
+ policy_2 = new TQSizePolicy( (int)0, (int)0, editButton.sizePolicy().hasHeightForWidth() );
editButton.setSizePolicy( policy_2 );
editButton.setText( trUtf8( "&Edit Books" ) );
@@ -84,8 +84,8 @@ BookForm( QWidget parent, String name, int fl )
// signals and slots connections
connect( editButton, SIGNAL( "clicked()" ), this, SLOT( "editClicked()" ) );
- connect( AuthorDataTable, SIGNAL( "primeInsert(QSqlRecord)" ), this, SLOT( "primeInsertAuthor(QSqlRecord)" ) );
- connect( AuthorDataTable, SIGNAL( "currentChanged(QSqlRecord)" ), this, SLOT( "newCurrentAuthor(QSqlRecord)" ) );
+ connect( AuthorDataTable, SIGNAL( "primeInsert(TQSqlRecord)" ), this, SLOT( "primeInsertAuthor(TQSqlRecord)" ) );
+ connect( AuthorDataTable, SIGNAL( "currentChanged(TQSqlRecord)" ), this, SLOT( "newCurrentAuthor(TQSqlRecord)" ) );
connect( connectButton, SIGNAL( "clicked()" ), this, SLOT( "connectClicked()" ) );
// tab order
@@ -93,12 +93,12 @@ BookForm( QWidget parent, String name, int fl )
init();
}
-BookForm( QWidget parent, String name )
+BookForm( TQWidget parent, String name )
{
this(parent, name, 0);
}
-BookForm( QWidget parent )
+BookForm( TQWidget parent )
{
this(parent, null, 0);
}
@@ -119,12 +119,12 @@ public void destroy()
void editClicked()
{
EditBookForm dialog = new EditBookForm( this, "Edit Book Form", true, 0 );
- QSqlCursor cur = new QSqlCursor( "book" );
+ TQSqlCursor cur = new TQSqlCursor( "book" );
dialog.BookDataBrowser.setSqlCursor( cur );
dialog.BookDataBrowser.setFilter( BookDataTable.filter() );
String[] sort = new String[BookDataTable.sort().size()];
sort = (String[]) BookDataTable.sort().toArray(sort);
- dialog.BookDataBrowser.setSort(QSqlIndex.fromStringList(
+ dialog.BookDataBrowser.setSort(TQSqlIndex.fromStringList(
sort, cur ) );
dialog.BookDataBrowser.refresh();
int i = BookDataTable.currentRow();
@@ -139,13 +139,13 @@ void connectClicked()
{
boolean ok = false;
ConnectDialog dialog = new ConnectDialog( this, "Connect", true, 0 );
- String[] drivers = new String[QSqlDatabase.drivers().size()];;
- drivers = (String[]) QSqlDatabase.drivers().toArray(drivers);
+ String[] drivers = new String[TQSqlDatabase.drivers().size()];;
+ drivers = (String[]) TQSqlDatabase.drivers().toArray(drivers);
dialog.comboDriver.insertStringList( drivers );
dialog.editDatabase.setText( "book" );
- if ( dialog.exec() == QDialog.Accepted ) {
- // QSqlDatabase.removeDatabase( QSqlDatabase.defaultConnection() );
- QSqlDatabase db = QSqlDatabase.addDatabase( dialog.comboDriver.currentText() );
+ if ( dialog.exec() == TQDialog.Accepted ) {
+ // TQSqlDatabase.removeDatabase( TQSqlDatabase.defaultConnection() );
+ TQSqlDatabase db = TQSqlDatabase.addDatabase( dialog.comboDriver.currentText() );
db.setDatabaseName( dialog.editDatabase.text() );
db.setUserName( dialog.editUsername.text() );
db.setPassword( dialog.editPassword.text() );
@@ -158,29 +158,29 @@ void connectClicked()
}
if ( !ok ) {
editButton.setEnabled( false );
- BookDataTable.setSqlCursor( (QSqlCursor) null );
- AuthorDataTable.setSqlCursor( (QSqlCursor) null );
+ BookDataTable.setSqlCursor( (TQSqlCursor) null );
+ AuthorDataTable.setSqlCursor( (TQSqlCursor) null );
} else {
editButton.setEnabled( true );
- authorCursor = new QSqlCursor( "author" );
+ authorCursor = new TQSqlCursor( "author" );
AuthorDataTable.setSqlCursor( authorCursor, false, true );
- bookCursor = new QSqlCursor( "book" );
+ bookCursor = new TQSqlCursor( "book" );
BookDataTable.setSqlCursor( bookCursor, false, true );
- AuthorDataTable.refresh( QDataTable.RefreshAll );
- BookDataTable.refresh( QDataTable.RefreshAll );
+ AuthorDataTable.refresh( TQDataTable.RefreshAll );
+ BookDataTable.refresh( TQDataTable.RefreshAll );
}
dialog = null;
}
-void newCurrentAuthor(QSqlRecord author)
+void newCurrentAuthor(TQSqlRecord author)
{
BookDataTable.setFilter( "authorid=" + author.value( "id" ).toString() );
BookDataTable.refresh();
}
-void primeInsertAuthor(QSqlRecord buffer)
+void primeInsertAuthor(TQSqlRecord buffer)
{
- QSqlQuery q = new QSqlQuery();
+ TQSqlQuery q = new TQSqlQuery();
q.exec( "UPDATE sequence SET sequence = sequence + 1 WHERE tablename='author';" );
q.exec( "SELECT sequence FROM sequence WHERE tablename='author';" );
if ( q.next() ) {
diff --git a/qtjava/javalib/examples/demo/sql/ConnectDialog.java b/qtjava/javalib/examples/demo/sql/ConnectDialog.java
index bbd17391..ad7c331b 100644
--- a/qtjava/javalib/examples/demo/sql/ConnectDialog.java
+++ b/qtjava/javalib/examples/demo/sql/ConnectDialog.java
@@ -8,22 +8,22 @@
****************************************************************************/
import org.kde.qt.*;
-public class ConnectDialog extends QDialog {
- QLineEdit editDatabase;
- QLabel TextLabel3;
- QLineEdit editPassword;
- QLabel TextLabel4;
- QLabel TextLabel4_2;
- QLabel TextLabel2;
- QLabel TextLabel5;
- QComboBox comboDriver;
- QLineEdit editHostname;
- QLineEdit editUsername;
- QPushButton PushButton1;
- QPushButton PushButton2;
-
- QGridLayout ConnectDialogLayout;
- QSpacerItem spacer;
+public class ConnectDialog extends TQDialog {
+ TQLineEdit editDatabase;
+ TQLabel TextLabel3;
+ TQLineEdit editPassword;
+ TQLabel TextLabel4;
+ TQLabel TextLabel4_2;
+ TQLabel TextLabel2;
+ TQLabel TextLabel5;
+ TQComboBox comboDriver;
+ TQLineEdit editHostname;
+ TQLineEdit editUsername;
+ TQPushButton PushButton1;
+ TQPushButton PushButton2;
+
+ TQGridLayout ConnectDialogLayout;
+ TQSpacerItem spacer;
/*
* Constructs a ConnectDialog which is a child of 'parent', with the
@@ -32,75 +32,75 @@ public class ConnectDialog extends QDialog {
* The dialog will by default be modeless, unless you set 'modal' to
* true to construct a modal dialog.
*/
-ConnectDialog( QWidget parent, String name, boolean modal, int fl )
+ConnectDialog( TQWidget parent, String name, boolean modal, int fl )
{
super( parent, name, modal, fl );
if ( name == null )
setName( "ConnectDialog" );
resize( 294, 207 );
setCaption( trUtf8( "Connect..." ) );
- ConnectDialogLayout = new QGridLayout( this );
+ ConnectDialogLayout = new TQGridLayout( this );
ConnectDialogLayout.setSpacing( 6 );
ConnectDialogLayout.setMargin( 11 );
- editDatabase = new QLineEdit( this, "editDatabase" );
+ editDatabase = new TQLineEdit( this, "editDatabase" );
ConnectDialogLayout.addMultiCellWidget( editDatabase, 1, 1, 2, 3 );
- TextLabel3 = new QLabel( this, "TextLabel3" );
+ TextLabel3 = new TQLabel( this, "TextLabel3" );
TextLabel3.setText( trUtf8( "Database Name:" ) );
ConnectDialogLayout.addMultiCellWidget( TextLabel3, 1, 1, 0, 1 );
- editPassword = new QLineEdit( this, "editPassword" );
- editPassword.setEchoMode( QLineEdit.Password );
+ editPassword = new TQLineEdit( this, "editPassword" );
+ editPassword.setEchoMode( TQLineEdit.Password );
ConnectDialogLayout.addMultiCellWidget( editPassword, 3, 3, 2, 3 );
- TextLabel4 = new QLabel( this, "TextLabel4" );
+ TextLabel4 = new TQLabel( this, "TextLabel4" );
TextLabel4.setText( trUtf8( "&Username:" ) );
ConnectDialogLayout.addMultiCellWidget( TextLabel4, 2, 2, 0, 1 );
- TextLabel4_2 = new QLabel( this, "TextLabel4_2" );
+ TextLabel4_2 = new TQLabel( this, "TextLabel4_2" );
TextLabel4_2.setText( trUtf8( "&Password:" ) );
ConnectDialogLayout.addMultiCellWidget( TextLabel4_2, 3, 3, 0, 1 );
- TextLabel2 = new QLabel( this, "TextLabel2" );
+ TextLabel2 = new TQLabel( this, "TextLabel2" );
TextLabel2.setText( trUtf8( "D&river" ) );
ConnectDialogLayout.addMultiCellWidget( TextLabel2, 0, 0, 0, 1 );
- TextLabel5 = new QLabel( this, "TextLabel5" );
+ TextLabel5 = new TQLabel( this, "TextLabel5" );
TextLabel5.setText( trUtf8( "&Hostname:" ) );
ConnectDialogLayout.addMultiCellWidget( TextLabel5, 4, 4, 0, 1 );
- comboDriver = new QComboBox( false, this, "comboDriver" );
+ comboDriver = new TQComboBox( false, this, "comboDriver" );
comboDriver.setEditable( true );
ConnectDialogLayout.addMultiCellWidget( comboDriver, 0, 0, 2, 3 );
- editHostname = new QLineEdit( this, "editHostname" );
+ editHostname = new TQLineEdit( this, "editHostname" );
ConnectDialogLayout.addMultiCellWidget( editHostname, 4, 4, 2, 3 );
- editUsername = new QLineEdit( this, "editUsername" );
+ editUsername = new TQLineEdit( this, "editUsername" );
ConnectDialogLayout.addMultiCellWidget( editUsername, 2, 2, 2, 3 );
- PushButton1 = new QPushButton( this, "PushButton1" );
+ PushButton1 = new TQPushButton( this, "PushButton1" );
PushButton1.setText( trUtf8( "&OK" ) );
PushButton1.setDefault( true );
ConnectDialogLayout.addMultiCellWidget( PushButton1, 5, 5, 1, 2 );
- PushButton2 = new QPushButton( this, "PushButton2" );
+ PushButton2 = new TQPushButton( this, "PushButton2" );
PushButton2.setText( trUtf8( "&Cancel" ) );
ConnectDialogLayout.addWidget( PushButton2, 5, 3 );
- spacer = new QSpacerItem( 20, 20, QSizePolicy.Expanding, QSizePolicy.Minimum );
+ spacer = new TQSpacerItem( 20, 20, TQSizePolicy.Expanding, TQSizePolicy.Minimum );
ConnectDialogLayout.addItem( spacer, 5, 0 );
diff --git a/qtjava/javalib/examples/demo/sql/EditBookForm.java b/qtjava/javalib/examples/demo/sql/EditBookForm.java
index 6c07176f..4def1743 100644
--- a/qtjava/javalib/examples/demo/sql/EditBookForm.java
+++ b/qtjava/javalib/examples/demo/sql/EditBookForm.java
@@ -9,33 +9,33 @@
import org.kde.qt.*;
import java.util.HashMap;
-public class EditBookForm extends QDialog {
- QDataBrowser BookDataBrowser;
- QLabel labelPrice;
- QLabel labelTitle;
- QLineEdit QLineEditTitle;
- QLineEdit QLineEditPrice;
- QPushButton PushButtonInsert;
- QPushButton PushButtonUpdate;
- QPushButton PushButtonDelete;
- QPushButton PushButtonClose;
- QPushButton PushButtonFirst;
- QPushButton PushButtonPrev;
- QPushButton PushButtonNext;
- QPushButton PushButtonLast;
- QLabel TextLabel1;
- QComboBox ComboBoxAuthor;
-
- QVBoxLayout EditBookFormLayout;
- QGridLayout BookDataBrowserLayout;
- QGridLayout Layout2;
- QHBoxLayout Layout6;
- QHBoxLayout Layout3;
- QHBoxLayout Layout6_2;
+public class EditBookForm extends TQDialog {
+ TQDataBrowser BookDataBrowser;
+ TQLabel labelPrice;
+ TQLabel labelTitle;
+ TQLineEdit TQLineEditTitle;
+ TQLineEdit TQLineEditPrice;
+ TQPushButton PushButtonInsert;
+ TQPushButton PushButtonUpdate;
+ TQPushButton PushButtonDelete;
+ TQPushButton PushButtonClose;
+ TQPushButton PushButtonFirst;
+ TQPushButton PushButtonPrev;
+ TQPushButton PushButtonNext;
+ TQPushButton PushButtonLast;
+ TQLabel TextLabel1;
+ TQComboBox ComboBoxAuthor;
+
+ TQVBoxLayout EditBookFormLayout;
+ TQGridLayout BookDataBrowserLayout;
+ TQGridLayout Layout2;
+ TQHBoxLayout Layout6;
+ TQHBoxLayout Layout3;
+ TQHBoxLayout Layout6_2;
HashMap authorMap;
- QSizePolicy policy_1;
- QSqlForm BookDataBrowserForm;
+ TQSizePolicy policy_1;
+ TQSqlForm BookDataBrowserForm;
/*
* Constructs a EditBookForm which is a child of 'parent', with the
@@ -44,102 +44,102 @@ public class EditBookForm extends QDialog {
* The dialog will by default be modeless, unless you set 'modal' to
* true to construct a modal dialog.
*/
-EditBookForm( QWidget parent, String name, boolean modal, int fl )
+EditBookForm( TQWidget parent, String name, boolean modal, int fl )
{
super( parent, name, modal, fl );
if ( name == null )
setName( "EditBookForm" );
resize( 524, 371 );
setCaption( trUtf8( "Edit Books" ) );
- EditBookFormLayout = new QVBoxLayout( this );
+ EditBookFormLayout = new TQVBoxLayout( this );
EditBookFormLayout.setSpacing( 6 );
EditBookFormLayout.setMargin( 11 );
- BookDataBrowser = new QDataBrowser( this, "BookDataBrowser" );
- BookDataBrowserLayout = new QGridLayout( BookDataBrowser );
+ BookDataBrowser = new TQDataBrowser( this, "BookDataBrowser" );
+ BookDataBrowserLayout = new TQGridLayout( BookDataBrowser );
BookDataBrowser.setSort( new String[] { "title ASC" } );
BookDataBrowserLayout.setSpacing( 6 );
BookDataBrowserLayout.setMargin( 11 );
- Layout2 = new QGridLayout();
+ Layout2 = new TQGridLayout();
Layout2.setSpacing( 6 );
Layout2.setMargin( 0 );
- labelPrice = new QLabel( BookDataBrowser, "labelPrice" );
+ labelPrice = new TQLabel( BookDataBrowser, "labelPrice" );
labelPrice.setText( trUtf8( "Price" ) );
Layout2.addWidget( labelPrice, 1, 0 );
- labelTitle = new QLabel( BookDataBrowser, "labelTitle" );
+ labelTitle = new TQLabel( BookDataBrowser, "labelTitle" );
labelTitle.setText( trUtf8( "Title" ) );
Layout2.addWidget( labelTitle, 0, 0 );
- QLineEditTitle = new QLineEdit( BookDataBrowser, "QLineEditTitle" );
+ TQLineEditTitle = new TQLineEdit( BookDataBrowser, "TQLineEditTitle" );
- Layout2.addWidget( QLineEditTitle, 0, 1 );
+ Layout2.addWidget( TQLineEditTitle, 0, 1 );
- QLineEditPrice = new QLineEdit( BookDataBrowser, "QLineEditPrice" );
+ TQLineEditPrice = new TQLineEdit( BookDataBrowser, "TQLineEditPrice" );
- Layout2.addWidget( QLineEditPrice, 1, 1 );
+ Layout2.addWidget( TQLineEditPrice, 1, 1 );
BookDataBrowserLayout.addLayout( Layout2, 0, 0 );
- Layout6 = new QHBoxLayout();
+ Layout6 = new TQHBoxLayout();
Layout6.setSpacing( 6 );
Layout6.setMargin( 0 );
- PushButtonInsert = new QPushButton( BookDataBrowser, "PushButtonInsert" );
+ PushButtonInsert = new TQPushButton( BookDataBrowser, "PushButtonInsert" );
PushButtonInsert.setText( trUtf8( "&Insert" ) );
Layout6.addWidget( PushButtonInsert );
- PushButtonUpdate = new QPushButton( BookDataBrowser, "PushButtonUpdate" );
+ PushButtonUpdate = new TQPushButton( BookDataBrowser, "PushButtonUpdate" );
PushButtonUpdate.setText( trUtf8( "&Update" ) );
PushButtonUpdate.setDefault( true );
Layout6.addWidget( PushButtonUpdate );
- PushButtonDelete = new QPushButton( BookDataBrowser, "PushButtonDelete" );
+ PushButtonDelete = new TQPushButton( BookDataBrowser, "PushButtonDelete" );
PushButtonDelete.setText( trUtf8( "&Delete" ) );
Layout6.addWidget( PushButtonDelete );
- PushButtonClose = new QPushButton( BookDataBrowser, "PushButtonClose" );
+ PushButtonClose = new TQPushButton( BookDataBrowser, "PushButtonClose" );
PushButtonClose.setText( trUtf8( "&Close" ) );
Layout6.addWidget( PushButtonClose );
BookDataBrowserLayout.addLayout( Layout6, 3, 0 );
- Layout3 = new QHBoxLayout();
+ Layout3 = new TQHBoxLayout();
Layout3.setSpacing( 6 );
Layout3.setMargin( 0 );
- PushButtonFirst = new QPushButton( BookDataBrowser, "PushButtonFirst" );
+ PushButtonFirst = new TQPushButton( BookDataBrowser, "PushButtonFirst" );
PushButtonFirst.setText( trUtf8( "|< &First" ) );
Layout3.addWidget( PushButtonFirst );
- PushButtonPrev = new QPushButton( BookDataBrowser, "PushButtonPrev" );
+ PushButtonPrev = new TQPushButton( BookDataBrowser, "PushButtonPrev" );
PushButtonPrev.setText( trUtf8( "<< &Prev" ) );
Layout3.addWidget( PushButtonPrev );
- PushButtonNext = new QPushButton( BookDataBrowser, "PushButtonNext" );
+ PushButtonNext = new TQPushButton( BookDataBrowser, "PushButtonNext" );
PushButtonNext.setText( trUtf8( "&Next >>" ) );
Layout3.addWidget( PushButtonNext );
- PushButtonLast = new QPushButton( BookDataBrowser, "PushButtonLast" );
+ PushButtonLast = new TQPushButton( BookDataBrowser, "PushButtonLast" );
PushButtonLast.setText( trUtf8( "&Last >|" ) );
Layout3.addWidget( PushButtonLast );
BookDataBrowserLayout.addLayout( Layout3, 2, 0 );
- Layout6_2 = new QHBoxLayout();
+ Layout6_2 = new TQHBoxLayout();
Layout6_2.setSpacing( 6 );
Layout6_2.setMargin( 0 );
- TextLabel1 = new QLabel( BookDataBrowser, "TextLabel1" );
+ TextLabel1 = new TQLabel( BookDataBrowser, "TextLabel1" );
TextLabel1.setText( trUtf8( "Author" ) );
Layout6_2.addWidget( TextLabel1 );
- ComboBoxAuthor = new QComboBox( false, BookDataBrowser, "ComboBoxAuthor" );
- policy_1 = new QSizePolicy( (int)7, (int)0, ComboBoxAuthor.sizePolicy().hasHeightForWidth() );
+ ComboBoxAuthor = new TQComboBox( false, BookDataBrowser, "ComboBoxAuthor" );
+ policy_1 = new TQSizePolicy( (int)7, (int)0, ComboBoxAuthor.sizePolicy().hasHeightForWidth() );
ComboBoxAuthor.setSizePolicy( policy_1 );
Layout6_2.addWidget( ComboBoxAuthor );
@@ -147,9 +147,9 @@ EditBookForm( QWidget parent, String name, boolean modal, int fl )
EditBookFormLayout.addWidget( BookDataBrowser );
// database support
- BookDataBrowserForm = new QSqlForm( this, "BookDataBrowserForm" );
- BookDataBrowserForm.insert( QLineEditTitle, "title" );
- BookDataBrowserForm.insert( QLineEditPrice, "price" );
+ BookDataBrowserForm = new TQSqlForm( this, "BookDataBrowserForm" );
+ BookDataBrowserForm.insert( TQLineEditTitle, "title" );
+ BookDataBrowserForm.insert( TQLineEditPrice, "price" );
BookDataBrowser.setForm( BookDataBrowserForm );
@@ -169,15 +169,15 @@ EditBookForm( QWidget parent, String name, boolean modal, int fl )
connect( PushButtonUpdate, SIGNAL( "clicked()" ), BookDataBrowser, SLOT( "update()" ) );
connect( PushButtonDelete, SIGNAL( "clicked()" ), BookDataBrowser, SLOT( "del()" ) );
connect( PushButtonClose, SIGNAL( "clicked()" ), this, SLOT( "accept()" ) );
- connect( BookDataBrowser, SIGNAL( "primeUpdate(QSqlRecord)" ), this, SLOT( "primeUpdateBook(QSqlRecord)" ) );
- connect( BookDataBrowser, SIGNAL( "beforeUpdate(QSqlRecord)" ), this, SLOT( "beforeUpdateBook(QSqlRecord)" ) );
- connect( BookDataBrowser, SIGNAL( "beforeInsert(QSqlRecord)" ), this, SLOT( "beforeUpdateBook(QSqlRecord)" ) );
- connect( BookDataBrowser, SIGNAL( "primeInsert(QSqlRecord)" ), this, SLOT( "primeInsertBook(QSqlRecord)" ) );
- connect( BookDataBrowser, SIGNAL( "primeInsert(QSqlRecord)" ), this, SLOT( "primeInsertBook(QSqlRecord)" ) );
+ connect( BookDataBrowser, SIGNAL( "primeUpdate(TQSqlRecord)" ), this, SLOT( "primeUpdateBook(TQSqlRecord)" ) );
+ connect( BookDataBrowser, SIGNAL( "beforeUpdate(TQSqlRecord)" ), this, SLOT( "beforeUpdateBook(TQSqlRecord)" ) );
+ connect( BookDataBrowser, SIGNAL( "beforeInsert(TQSqlRecord)" ), this, SLOT( "beforeUpdateBook(TQSqlRecord)" ) );
+ connect( BookDataBrowser, SIGNAL( "primeInsert(TQSqlRecord)" ), this, SLOT( "primeInsertBook(TQSqlRecord)" ) );
+ connect( BookDataBrowser, SIGNAL( "primeInsert(TQSqlRecord)" ), this, SLOT( "primeInsertBook(TQSqlRecord)" ) );
// tab order
- setTabOrder( QLineEditTitle, QLineEditPrice );
- setTabOrder( QLineEditPrice, ComboBoxAuthor );
+ setTabOrder( TQLineEditTitle, TQLineEditPrice );
+ setTabOrder( TQLineEditPrice, ComboBoxAuthor );
setTabOrder( ComboBoxAuthor, PushButtonFirst );
setTabOrder( PushButtonFirst, PushButtonPrev );
setTabOrder( PushButtonPrev, PushButtonNext );
@@ -197,7 +197,7 @@ public void polish()
{
if ( BookDataBrowser != null ) {
if ( BookDataBrowser.sqlCursor() == null ) {
- QSqlCursor cursor = new QSqlCursor( "book" );
+ TQSqlCursor cursor = new TQSqlCursor( "book" );
BookDataBrowser.setSqlCursor( cursor, true );
BookDataBrowser.refresh();
BookDataBrowser.first();
@@ -206,11 +206,11 @@ public void polish()
super.polish();
}
-void beforeUpdateBook(QSqlRecord buffer)
+void beforeUpdateBook(TQSqlRecord buffer)
{
int[] id = { 0 };
mapAuthor( ComboBoxAuthor.currentText(), id, false );
- buffer.setValue( "authorid", new QVariant(id[0]) );
+ buffer.setValue( "authorid", new TQVariant(id[0]) );
}
void mapAuthor(String name, int[] id, boolean populate)
@@ -221,9 +221,9 @@ void mapAuthor(String name, int[] id, boolean populate)
// id[0] = authorMap[ name ];
}
-void primeInsertBook(QSqlRecord buffer)
+void primeInsertBook(TQSqlRecord buffer)
{
- QSqlQuery q = new QSqlQuery();
+ TQSqlQuery q = new TQSqlQuery();
q.exec( "UPDATE sequence SET sequence = sequence + 1 WHERE tablename='book';" );
q.exec( "SELECT sequence FROM sequence WHERE tablename='book';" );
if ( q.next() ) {
@@ -231,10 +231,10 @@ void primeInsertBook(QSqlRecord buffer)
}
}
-void primeUpdateBook(QSqlRecord buffer)
+void primeUpdateBook(TQSqlRecord buffer)
{
// Who is this book's author?
- QSqlQuery query = new QSqlQuery( "SELECT surname FROM author WHERE id=" +
+ TQSqlQuery query = new TQSqlQuery( "SELECT surname FROM author WHERE id=" +
buffer.value( "authorid" ).toString() + ";" );
String author = "";
if ( query.next() )
@@ -251,7 +251,7 @@ void primeUpdateBook(QSqlRecord buffer)
void init()
{
authorMap = new HashMap();
- QSqlQuery query = new QSqlQuery( "SELECT surname, id FROM author ORDER BY surname;" );
+ TQSqlQuery query = new TQSqlQuery( "SELECT surname, id FROM author ORDER BY surname;" );
while ( query.next() ) {
ComboBoxAuthor.insertItem( query.value( 0 ).toString() );
int[] id = new int[1];
diff --git a/qtjava/javalib/examples/demo/sql/Main.java b/qtjava/javalib/examples/demo/sql/Main.java
index 1bf81c88..b1697dd8 100644
--- a/qtjava/javalib/examples/demo/sql/Main.java
+++ b/qtjava/javalib/examples/demo/sql/Main.java
@@ -4,7 +4,7 @@ public class Main {
public static void main(String[] args)
{
- QApplication a = new QApplication(args);
+ TQApplication a = new TQApplication(args);
BookForm form = new BookForm();
a.setMainWidget( form );
diff --git a/qtjava/javalib/examples/demo/widgets/Main.java b/qtjava/javalib/examples/demo/widgets/Main.java
index f78ca26d..0caf97ec 100644
--- a/qtjava/javalib/examples/demo/widgets/Main.java
+++ b/qtjava/javalib/examples/demo/widgets/Main.java
@@ -4,7 +4,7 @@ public class Main {
public static void main(String[] args)
{
- QApplication a = new QApplication(args);
+ TQApplication a = new TQApplication(args);
WidgetsBase widgets = new WidgetsBase();
a.setMainWidget( widgets );
diff --git a/qtjava/javalib/examples/demo/widgets/WidgetsBase.java b/qtjava/javalib/examples/demo/widgets/WidgetsBase.java
index 74382cee..857a8fb3 100644
--- a/qtjava/javalib/examples/demo/widgets/WidgetsBase.java
+++ b/qtjava/javalib/examples/demo/widgets/WidgetsBase.java
@@ -12,80 +12,80 @@ import java.util.Calendar;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
-public class WidgetsBase extends QWidget {
- QListBox ListBox3;
- QTextEdit TextEdit1;
- QTabWidget TabWidget2;
- QWidget tab;
- QIconView IconView1;
- QWidget tab_2;
- QTable Table1;
- QWidget tab_3;
- QListView ListView3;
- QGroupBox groupBox;
- QLCDNumber lcdDisplay;
- QSlider slider;
- QLabel TextLabel1_2;
- QPushButton pushButton;
- QComboBox buttonColorBox;
- QLineEdit lineEdit;
- QLabel TextLabel1_2_2;
- QSpinBox spinBox;
- QProgressBar progressBar;
- QLabel colorTest;
- QLabel PixmapLabel1;
- QButtonGroup ButtonGroup1;
- QCheckBox CheckBox1;
- QCheckBox CheckBox2;
- QCheckBox CheckBox3;
- QButtonGroup ButtonGroup2;
- QRadioButton RadioButton3;
- QRadioButton RadioButton4;
- QRadioButton RadioButton2;
- QGroupBox GroupBox1;
+public class WidgetsBase extends TQWidget {
+ TQListBox ListBox3;
+ TQTextEdit TextEdit1;
+ TQTabWidget TabWidget2;
+ TQWidget tab;
+ TQIconView IconView1;
+ TQWidget tab_2;
+ TQTable Table1;
+ TQWidget tab_3;
+ TQListView ListView3;
+ TQGroupBox groupBox;
+ TQLCDNumber lcdDisplay;
+ TQSlider slider;
+ TQLabel TextLabel1_2;
+ TQPushButton pushButton;
+ TQComboBox buttonColorBox;
+ TQLineEdit lineEdit;
+ TQLabel TextLabel1_2_2;
+ TQSpinBox spinBox;
+ TQProgressBar progressBar;
+ TQLabel colorTest;
+ TQLabel PixmapLabel1;
+ TQButtonGroup ButtonGroup1;
+ TQCheckBox CheckBox1;
+ TQCheckBox CheckBox2;
+ TQCheckBox CheckBox3;
+ TQButtonGroup ButtonGroup2;
+ TQRadioButton RadioButton3;
+ TQRadioButton RadioButton4;
+ TQRadioButton RadioButton2;
+ TQGroupBox GroupBox1;
AnalogClock clock;
- QDateEdit dateEdit;
- QTimeEdit timeEdit;
- QLabel dateTimeLabel;
-
- QGridLayout WidgetsBaseLayout;
- QGridLayout tabLayout;
- QGridLayout tabLayout_2;
- QGridLayout tabLayout_3;
- QGridLayout groupBoxLayout;
- QHBoxLayout Layout9;
- QGridLayout ButtonGroup1Layout;
- QGridLayout ButtonGroup2Layout;
- QGridLayout GroupBox1Layout;
- QHBoxLayout Layout5;
- QSizePolicy sizePolicy1;
- QSizePolicy sizePolicy2;
- QSizePolicy sizePolicy3;
-
- QIconViewItem item1;
- QIconViewItem item2;
- QIconViewItem item3;
- QIconViewItem item4;
- QIconViewItem item5;
- QIconViewItem item6;
- QIconViewItem item7;
- QIconViewItem item8;
- QIconViewItem item9;
- QIconViewItem item10;
- QIconViewItem item11;
- QIconViewItem item12;
- QIconViewItem item13;
- QIconViewItem item14;
- QIconViewItem item15;
- QIconViewItem item16;
- QIconViewItem item17;
-
- QListViewItem item_1;
- QListViewItem item_2;
- QListViewItem item_3;
- QListViewItem item_4;
- QListViewItem item_5;
- QListViewItem item_6;
+ TQDateEdit dateEdit;
+ TQTimeEdit timeEdit;
+ TQLabel dateTimeLabel;
+
+ TQGridLayout WidgetsBaseLayout;
+ TQGridLayout tabLayout;
+ TQGridLayout tabLayout_2;
+ TQGridLayout tabLayout_3;
+ TQGridLayout groupBoxLayout;
+ TQHBoxLayout Layout9;
+ TQGridLayout ButtonGroup1Layout;
+ TQGridLayout ButtonGroup2Layout;
+ TQGridLayout GroupBox1Layout;
+ TQHBoxLayout Layout5;
+ TQSizePolicy sizePolicy1;
+ TQSizePolicy sizePolicy2;
+ TQSizePolicy sizePolicy3;
+
+ TQIconViewItem item1;
+ TQIconViewItem item2;
+ TQIconViewItem item3;
+ TQIconViewItem item4;
+ TQIconViewItem item5;
+ TQIconViewItem item6;
+ TQIconViewItem item7;
+ TQIconViewItem item8;
+ TQIconViewItem item9;
+ TQIconViewItem item10;
+ TQIconViewItem item11;
+ TQIconViewItem item12;
+ TQIconViewItem item13;
+ TQIconViewItem item14;
+ TQIconViewItem item15;
+ TQIconViewItem item16;
+ TQIconViewItem item17;
+
+ TQListViewItem item_1;
+ TQListViewItem item_2;
+ TQListViewItem item_3;
+ TQListViewItem item_4;
+ TQListViewItem item_5;
+ TQListViewItem item_6;
static String[] image0_data = {
"16 16 92 2",
@@ -267,7 +267,7 @@ static String[] image1_data = {
"....#awjxjIEiJKl",
"....#eLxjIEjjjMl",
"....#axNIEJJOPQl",
-"....#RSTUVDWXQYl",
+"....#RSTUVDWXTQYl",
"....#lllllllllll"};
static String[] image2_data = {
@@ -1645,7 +1645,7 @@ static String[] image11_data = {
"..a#......jjvlEhhFGvwHIc........",
".cdh#b......jjJwKLGBlfMN........",
".cdGqzcc......jjhOvlBwEhc.......",
-".jdyvCKPcc.....bkEGlwQKRS.......",
+".jdyvCKPcc.....bkEGlwTQKRS.......",
".jkdeAlKEPcc...TxGBlwwtRc.......",
".jhkdyAJGEEhcccxlGGwUwgVWj......",
".jEhkdeyBlwftqtUwGwwlsXYZWjj....",
@@ -2719,7 +2719,7 @@ static String[] image16_data = {
"..........#gpgpgponmR#..........",
"...........#fpfgQqGS#...........",
"............#gffovA#............",
-".............rQQqz#.............",
+".............rTQQqz#.............",
".............TNqek#.............",
".............OeqvU#.............",
".............#Nqvc#.............",
@@ -5651,60 +5651,60 @@ static String[] image41_data = {
* Constructs a WidgetsBase which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
-WidgetsBase( QWidget parent, String name, int fl )
+WidgetsBase( TQWidget parent, String name, int fl )
{
super( parent, name, fl );
- QPixmap image0 = new QPixmap( ( String[] ) image0_data );
- QPixmap image1 = new QPixmap( ( String[] ) image1_data );
- QPixmap image2 = new QPixmap( ( String[] ) image2_data );
- QPixmap image3 = new QPixmap( ( String[] ) image3_data );
- QPixmap image4 = new QPixmap( ( String[] ) image4_data );
- QPixmap image5 = new QPixmap( ( String[] ) image5_data );
- QPixmap image6 = new QPixmap( ( String[] ) image6_data );
- QPixmap image7 = new QPixmap( ( String[] ) image7_data );
- QPixmap image8 = new QPixmap( ( String[] ) image8_data );
- QPixmap image9 = new QPixmap( ( String[] ) image9_data );
- QPixmap image10 = new QPixmap( ( String[] ) image10_data );
- QPixmap image11 = new QPixmap( ( String[] ) image11_data );
- QPixmap image12 = new QPixmap( ( String[] ) image12_data );
- QPixmap image13 = new QPixmap( ( String[] ) image13_data );
- QPixmap image14 = new QPixmap( ( String[] ) image14_data );
- QPixmap image15 = new QPixmap( ( String[] ) image15_data );
- QPixmap image16 = new QPixmap( ( String[] ) image16_data );
- QPixmap image17 = new QPixmap( ( String[] ) image17_data );
- QPixmap image18 = new QPixmap( ( String[] ) image18_data );
- QPixmap image19 = new QPixmap( ( String[] ) image19_data );
- QPixmap image20 = new QPixmap( ( String[] ) image20_data );
- QPixmap image21 = new QPixmap( ( String[] ) image21_data );
- QPixmap image22 = new QPixmap( ( String[] ) image22_data );
- QPixmap image23 = new QPixmap( ( String[] ) image23_data );
- QPixmap image24 = new QPixmap( ( String[] ) image24_data );
- QPixmap image25 = new QPixmap( ( String[] ) image25_data );
- QPixmap image26 = new QPixmap( ( String[] ) image26_data );
- QPixmap image27 = new QPixmap( ( String[] ) image27_data );
- QPixmap image28 = new QPixmap( ( String[] ) image28_data );
- QPixmap image29 = new QPixmap( ( String[] ) image29_data );
- QPixmap image30 = new QPixmap( ( String[] ) image30_data );
- QPixmap image31 = new QPixmap( ( String[] ) image31_data );
- QPixmap image32 = new QPixmap( ( String[] ) image32_data );
- QPixmap image33 = new QPixmap( ( String[] ) image33_data );
- QPixmap image34 = new QPixmap( ( String[] ) image34_data );
- QPixmap image35 = new QPixmap( ( String[] ) image35_data );
- QPixmap image36 = new QPixmap( ( String[] ) image36_data );
- QPixmap image37 = new QPixmap( ( String[] ) image37_data );
- QPixmap image38 = new QPixmap( ( String[] ) image38_data );
- QPixmap image39 = new QPixmap( ( String[] ) image39_data );
- QPixmap image40 = new QPixmap( ( String[] ) image40_data );
- QPixmap image41 = new QPixmap( ( String[] ) image41_data );
+ TQPixmap image0 = new TQPixmap( ( String[] ) image0_data );
+ TQPixmap image1 = new TQPixmap( ( String[] ) image1_data );
+ TQPixmap image2 = new TQPixmap( ( String[] ) image2_data );
+ TQPixmap image3 = new TQPixmap( ( String[] ) image3_data );
+ TQPixmap image4 = new TQPixmap( ( String[] ) image4_data );
+ TQPixmap image5 = new TQPixmap( ( String[] ) image5_data );
+ TQPixmap image6 = new TQPixmap( ( String[] ) image6_data );
+ TQPixmap image7 = new TQPixmap( ( String[] ) image7_data );
+ TQPixmap image8 = new TQPixmap( ( String[] ) image8_data );
+ TQPixmap image9 = new TQPixmap( ( String[] ) image9_data );
+ TQPixmap image10 = new TQPixmap( ( String[] ) image10_data );
+ TQPixmap image11 = new TQPixmap( ( String[] ) image11_data );
+ TQPixmap image12 = new TQPixmap( ( String[] ) image12_data );
+ TQPixmap image13 = new TQPixmap( ( String[] ) image13_data );
+ TQPixmap image14 = new TQPixmap( ( String[] ) image14_data );
+ TQPixmap image15 = new TQPixmap( ( String[] ) image15_data );
+ TQPixmap image16 = new TQPixmap( ( String[] ) image16_data );
+ TQPixmap image17 = new TQPixmap( ( String[] ) image17_data );
+ TQPixmap image18 = new TQPixmap( ( String[] ) image18_data );
+ TQPixmap image19 = new TQPixmap( ( String[] ) image19_data );
+ TQPixmap image20 = new TQPixmap( ( String[] ) image20_data );
+ TQPixmap image21 = new TQPixmap( ( String[] ) image21_data );
+ TQPixmap image22 = new TQPixmap( ( String[] ) image22_data );
+ TQPixmap image23 = new TQPixmap( ( String[] ) image23_data );
+ TQPixmap image24 = new TQPixmap( ( String[] ) image24_data );
+ TQPixmap image25 = new TQPixmap( ( String[] ) image25_data );
+ TQPixmap image26 = new TQPixmap( ( String[] ) image26_data );
+ TQPixmap image27 = new TQPixmap( ( String[] ) image27_data );
+ TQPixmap image28 = new TQPixmap( ( String[] ) image28_data );
+ TQPixmap image29 = new TQPixmap( ( String[] ) image29_data );
+ TQPixmap image30 = new TQPixmap( ( String[] ) image30_data );
+ TQPixmap image31 = new TQPixmap( ( String[] ) image31_data );
+ TQPixmap image32 = new TQPixmap( ( String[] ) image32_data );
+ TQPixmap image33 = new TQPixmap( ( String[] ) image33_data );
+ TQPixmap image34 = new TQPixmap( ( String[] ) image34_data );
+ TQPixmap image35 = new TQPixmap( ( String[] ) image35_data );
+ TQPixmap image36 = new TQPixmap( ( String[] ) image36_data );
+ TQPixmap image37 = new TQPixmap( ( String[] ) image37_data );
+ TQPixmap image38 = new TQPixmap( ( String[] ) image38_data );
+ TQPixmap image39 = new TQPixmap( ( String[] ) image39_data );
+ TQPixmap image40 = new TQPixmap( ( String[] ) image40_data );
+ TQPixmap image41 = new TQPixmap( ( String[] ) image41_data );
if ( name == null )
setName( "WidgetsBase" );
resize( 718, 565 );
setCaption( trUtf8( "Widgets" ) );
- WidgetsBaseLayout = new QGridLayout( this );
+ WidgetsBaseLayout = new TQGridLayout( this );
WidgetsBaseLayout.setSpacing( 6 );
WidgetsBaseLayout.setMargin( 11 );
- ListBox3 = new QListBox( this, "ListBox3" );
+ ListBox3 = new TQListBox( this, "ListBox3" );
ListBox3.insertItem( image0, trUtf8( "Applix", "" ) );
ListBox3.insertItem( image1, trUtf8( "Binary", "" ) );
ListBox3.insertItem( image2, trUtf8( "Core", "" ) );
@@ -5718,7 +5718,7 @@ WidgetsBase( QWidget parent, String name, int fl )
WidgetsBaseLayout.addWidget( ListBox3, 2, 0 );
- TextEdit1 = new QTextEdit( this, "TextEdit1" );
+ TextEdit1 = new TQTextEdit( this, "TextEdit1" );
TextEdit1.setText( trUtf8( "<p><h1><b><font size=\"5\" >Richtext </h1>\n"
+ "</p><p>Qt supports formatted rich text, such as the heading above, <i><font >emphasized</font></i>, <b><font >bold </font></b>and <u><font >underlined </font></u>text, as well as colored text. This is <font color=\"#ff0000\" >red</font>, while this is <font color=\"#00bb00\" >green</font>, and this is <font color=\"#0000ff\" >blue</font>. </p>\n"
+ "<> </>\n"
@@ -5726,43 +5726,43 @@ WidgetsBase( QWidget parent, String name, int fl )
WidgetsBaseLayout.addWidget( TextEdit1, 2, 1 );
- TabWidget2 = new QTabWidget( this, "TabWidget2" );
+ TabWidget2 = new TQTabWidget( this, "TabWidget2" );
- tab = new QWidget( TabWidget2, "tab" );
- tabLayout = new QGridLayout( tab );
+ tab = new TQWidget( TabWidget2, "tab" );
+ tabLayout = new TQGridLayout( tab );
tabLayout.setSpacing( 6 );
tabLayout.setMargin( 11 );
- IconView1 = new QIconView( tab, "IconView1" );
- item1 = new QIconViewItem( IconView1, trUtf8( "Item 1", "" ), image10 );
- item2 = new QIconViewItem( IconView1, trUtf8( "Item 2", "" ), image11 );
- item3 = new QIconViewItem( IconView1, trUtf8( "Item 3", "" ), image12 );
- item4 = new QIconViewItem( IconView1, trUtf8( "Item 4", "" ), image13 );
- item5 = new QIconViewItem( IconView1, trUtf8( "Item 5", "" ), image14 );
- item6 = new QIconViewItem( IconView1, trUtf8( "Item 6", "" ), image15 );
- item7 = new QIconViewItem( IconView1, trUtf8( "Item 7", "" ), image16 );
- item8 = new QIconViewItem( IconView1, trUtf8( "Item 8", "" ), image17 );
- item9 = new QIconViewItem( IconView1, trUtf8( "Item 9", "" ), image18 );
- item10 = new QIconViewItem( IconView1, trUtf8( "Item 10", "" ), image19 );
- item11 = new QIconViewItem( IconView1, trUtf8( "Item 11", "" ), image20 );
- item12 = new QIconViewItem( IconView1, trUtf8( "Item 12", "" ), image21 );
- item13 = new QIconViewItem( IconView1, trUtf8( "Item 13", "" ), image22 );
- item14 = new QIconViewItem( IconView1, trUtf8( "Item 14", "" ), image23 );
- item15 = new QIconViewItem( IconView1, trUtf8( "Item 15", "" ), image24 );
- item16 = new QIconViewItem( IconView1, trUtf8( "Item 16", "" ), image25 );
- item17 = new QIconViewItem( IconView1, trUtf8( "Item 17", "" ), image26 );
- IconView1.setArrangement( QIconView.LeftToRight );
- IconView1.setResizeMode( QIconView.Adjust );
+ IconView1 = new TQIconView( tab, "IconView1" );
+ item1 = new TQIconViewItem( IconView1, trUtf8( "Item 1", "" ), image10 );
+ item2 = new TQIconViewItem( IconView1, trUtf8( "Item 2", "" ), image11 );
+ item3 = new TQIconViewItem( IconView1, trUtf8( "Item 3", "" ), image12 );
+ item4 = new TQIconViewItem( IconView1, trUtf8( "Item 4", "" ), image13 );
+ item5 = new TQIconViewItem( IconView1, trUtf8( "Item 5", "" ), image14 );
+ item6 = new TQIconViewItem( IconView1, trUtf8( "Item 6", "" ), image15 );
+ item7 = new TQIconViewItem( IconView1, trUtf8( "Item 7", "" ), image16 );
+ item8 = new TQIconViewItem( IconView1, trUtf8( "Item 8", "" ), image17 );
+ item9 = new TQIconViewItem( IconView1, trUtf8( "Item 9", "" ), image18 );
+ item10 = new TQIconViewItem( IconView1, trUtf8( "Item 10", "" ), image19 );
+ item11 = new TQIconViewItem( IconView1, trUtf8( "Item 11", "" ), image20 );
+ item12 = new TQIconViewItem( IconView1, trUtf8( "Item 12", "" ), image21 );
+ item13 = new TQIconViewItem( IconView1, trUtf8( "Item 13", "" ), image22 );
+ item14 = new TQIconViewItem( IconView1, trUtf8( "Item 14", "" ), image23 );
+ item15 = new TQIconViewItem( IconView1, trUtf8( "Item 15", "" ), image24 );
+ item16 = new TQIconViewItem( IconView1, trUtf8( "Item 16", "" ), image25 );
+ item17 = new TQIconViewItem( IconView1, trUtf8( "Item 17", "" ), image26 );
+ IconView1.setArrangement( TQIconView.LeftToRight );
+ IconView1.setResizeMode( TQIconView.Adjust );
tabLayout.addWidget( IconView1, 0, 0 );
TabWidget2.insertTab( tab, trUtf8( "Iconview", "" ) );
- tab_2 = new QWidget( TabWidget2, "tab_2" );
- tabLayout_2 = new QGridLayout( tab_2 );
+ tab_2 = new TQWidget( TabWidget2, "tab_2" );
+ tabLayout_2 = new TQGridLayout( tab_2 );
tabLayout_2.setSpacing( 6 );
tabLayout_2.setMargin( 11 );
- Table1 = new QTable( tab_2, "Table1" );
+ Table1 = new TQTable( tab_2, "Table1" );
Table1.setNumCols( Table1.numCols() + 1 ); Table1.horizontalHeader().setLabel( Table1.numCols() - 1, trUtf8( "Tables", "" ) );
Table1.setNumCols( Table1.numCols() + 1 ); Table1.horizontalHeader().setLabel( Table1.numCols() - 1, trUtf8( "are", "" ) );
Table1.setNumCols( Table1.numCols() + 1 ); Table1.horizontalHeader().setLabel( Table1.numCols() - 1, trUtf8( "easy", "" ) );
@@ -5775,9 +5775,9 @@ WidgetsBase( QWidget parent, String name, int fl )
Table1.setNumCols( Table1.numCols() + 1 ); Table1.horizontalHeader().setLabel( Table1.numCols() - 1, trUtf8( "10", "" ) );
Table1.setNumCols( Table1.numCols() + 1 ); Table1.horizontalHeader().setLabel( Table1.numCols() - 1, trUtf8( "11", "" ) );
Table1.setNumCols( Table1.numCols() + 1 ); Table1.horizontalHeader().setLabel( Table1.numCols() - 1, trUtf8( "12", "" ) );
- Table1.setNumRows( Table1.numRows() + 1 ); Table1.verticalHeader().setLabel( Table1.numRows() - 1, new QIconSet(image27), trUtf8( "", "" ) );
- Table1.setNumRows( Table1.numRows() + 1 ); Table1.verticalHeader().setLabel( Table1.numRows() - 1, new QIconSet(image28), trUtf8( "", "" ) );
- Table1.setNumRows( Table1.numRows() + 1 ); Table1.verticalHeader().setLabel( Table1.numRows() - 1, new QIconSet(image29), trUtf8( "", "" ) );
+ Table1.setNumRows( Table1.numRows() + 1 ); Table1.verticalHeader().setLabel( Table1.numRows() - 1, new TQIconSet(image27), trUtf8( "", "" ) );
+ Table1.setNumRows( Table1.numRows() + 1 ); Table1.verticalHeader().setLabel( Table1.numRows() - 1, new TQIconSet(image28), trUtf8( "", "" ) );
+ Table1.setNumRows( Table1.numRows() + 1 ); Table1.verticalHeader().setLabel( Table1.numRows() - 1, new TQIconSet(image29), trUtf8( "", "" ) );
Table1.setNumRows( Table1.numRows() + 1 ); Table1.verticalHeader().setLabel( Table1.numRows() - 1, trUtf8( "4", "" ) );
Table1.setNumRows( Table1.numRows() + 1 ); Table1.verticalHeader().setLabel( Table1.numRows() - 1, trUtf8( "5", "" ) );
Table1.setNumRows( Table1.numRows() + 1 ); Table1.verticalHeader().setLabel( Table1.numRows() - 1, trUtf8( "6", "" ) );
@@ -5794,37 +5794,37 @@ WidgetsBase( QWidget parent, String name, int fl )
tabLayout_2.addWidget( Table1, 0, 0 );
TabWidget2.insertTab( tab_2, trUtf8( "Table", "" ) );
- tab_3 = new QWidget( TabWidget2, "tab_3" );
- tabLayout_3 = new QGridLayout( tab_3 );
+ tab_3 = new TQWidget( TabWidget2, "tab_3" );
+ tabLayout_3 = new TQGridLayout( tab_3 );
tabLayout_3.setSpacing( 6 );
tabLayout_3.setMargin( 11 );
- ListView3 = new QListView( tab_3, "ListView3" );
+ ListView3 = new TQListView( tab_3, "ListView3" );
ListView3.addColumn( trUtf8( "Things", "" ) );
ListView3.addColumn( trUtf8( "Text", "" ) );
ListView3.addColumn( trUtf8( "Stuff", "" ) );
- item_1 = new QListViewItem( ListView3, "" );
+ item_1 = new TQListViewItem( ListView3, "" );
item_1.setPixmap( 0, image30 );
item_1.setText( 1, trUtf8( "Airbrush", "" ) );
item_1.setPixmap( 1, image31 );
item_1.setText( 2, trUtf8( "What stuff?", "" ) );
- item_4 = new QListViewItem( ListView3, item_1 );
+ item_4 = new TQListViewItem( ListView3, item_1 );
item_4.setPixmap( 0, image32 );
item_4.setText( 1, trUtf8( "Eraser", "" ) );
item_4.setPixmap( 1, image31 );
item_4.setText( 2, trUtf8( "Here?", "" ) );
- item_2 = new QListViewItem( ListView3, item_4 );
+ item_2 = new TQListViewItem( ListView3, item_4 );
item_2.setOpen( true );
- item_3 = new QListViewItem( item_2, item_4 );
+ item_3 = new TQListViewItem( item_2, item_4 );
item_3.setOpen( true );
- item_5 = new QListViewItem( item_3, item_4 );
+ item_5 = new TQListViewItem( item_3, item_4 );
item_5.setText( 0, trUtf8( "Subitem", "" ) );
item_5.setPixmap( 0, image28 );
item_3.setText( 0, trUtf8( "Pixmap subitem 1", "" ) );
item_2.setOpen( true );
- item_6 = new QListViewItem( item_2, item_3 );
+ item_6 = new TQListViewItem( item_2, item_3 );
item_6.setText( 0, trUtf8( "Pixmap subitem 2 ", "" ) );
item_2.setText( 0, trUtf8( "Pixmap item", "" ) );
item_2.setPixmap( 0, image33 );
@@ -5832,53 +5832,53 @@ WidgetsBase( QWidget parent, String name, int fl )
item_2.setText( 2, trUtf8( "Nothing Again", "" ) );
ListView3.setAllColumnsShowFocus( true );
- ListView3.setResizeMode( QListView.AllColumns );
+ ListView3.setResizeMode( TQListView.AllColumns );
tabLayout_3.addWidget( ListView3, 0, 0 );
TabWidget2.insertTab( tab_3, trUtf8( "Listview", "" ) );
WidgetsBaseLayout.addMultiCellWidget( TabWidget2, 3, 3, 0, 1 );
- groupBox = new QGroupBox( this, "groupBox" );
+ groupBox = new TQGroupBox( this, "groupBox" );
groupBox.setTitle( trUtf8( "Group box" ) );
groupBox.setColumnLayout(0, Qt.Vertical );
groupBox.layout().setSpacing( 0 );
groupBox.layout().setMargin( 0 );
- groupBoxLayout = new QGridLayout( groupBox.layout() );
+ groupBoxLayout = new TQGridLayout( groupBox.layout() );
groupBoxLayout.setAlignment( Qt.AlignTop );
groupBoxLayout.setSpacing( 6 );
groupBoxLayout.setMargin( 11 );
- lcdDisplay = new QLCDNumber( groupBox, "lcdDisplay" );
- sizePolicy1 = new QSizePolicy();
+ lcdDisplay = new TQLCDNumber( groupBox, "lcdDisplay" );
+ sizePolicy1 = new TQSizePolicy();
sizePolicy1.setHorData(7);
sizePolicy1.setVerData(7);
sizePolicy1.setHeightForWidth(lcdDisplay.sizePolicy().hasHeightForWidth());
lcdDisplay.setSizePolicy( sizePolicy1 );
lcdDisplay.setNumDigits( 2 );
- lcdDisplay.setSegmentStyle( QLCDNumber.Filled );
+ lcdDisplay.setSegmentStyle( TQLCDNumber.Filled );
groupBoxLayout.addMultiCellWidget( lcdDisplay, 0, 2, 3, 3 );
- slider = new QSlider( groupBox, "slider" );
- slider.setOrientation( QSlider.Horizontal );
- slider.setTickmarks( QSlider.Left );
+ slider = new TQSlider( groupBox, "slider" );
+ slider.setOrientation( TQSlider.Horizontal );
+ slider.setTickmarks( TQSlider.Left );
slider.setTickInterval( 5 );
groupBoxLayout.addWidget( slider, 2, 2 );
- TextLabel1_2 = new QLabel( groupBox, "TextLabel1_2" );
+ TextLabel1_2 = new TQLabel( groupBox, "TextLabel1_2" );
TextLabel1_2.setText( trUtf8( "Pick a base color:" ) );
groupBoxLayout.addWidget( TextLabel1_2, 0, 0 );
- pushButton = new QPushButton( groupBox, "pushButton" );
- pushButton.setCursor( new QCursor( 0 ) );
+ pushButton = new TQPushButton( groupBox, "pushButton" );
+ pushButton.setCursor( new TQCursor( 0 ) );
pushButton.setText( trUtf8( "&Reset colors" ) );
groupBoxLayout.addWidget( pushButton, 2, 0 );
- buttonColorBox = new QComboBox( false, groupBox, "buttonColorBox" );
+ buttonColorBox = new TQComboBox( false, groupBox, "buttonColorBox" );
buttonColorBox.insertItem( image34, trUtf8( "pale green", "" ) );
buttonColorBox.insertItem( image35, trUtf8( "deep sky blue", "" ) );
buttonColorBox.insertItem( image36, trUtf8( "steel blue", "" ) );
@@ -5889,101 +5889,101 @@ WidgetsBase( QWidget parent, String name, int fl )
groupBoxLayout.addWidget( buttonColorBox, 1, 0 );
- lineEdit = new QLineEdit( groupBox, "lineEdit" );
+ lineEdit = new TQLineEdit( groupBox, "lineEdit" );
lineEdit.setText( trUtf8( "hot pink" ) );
groupBoxLayout.addWidget( lineEdit, 1, 1 );
- TextLabel1_2_2 = new QLabel( groupBox, "TextLabel1_2_2" );
+ TextLabel1_2_2 = new TQLabel( groupBox, "TextLabel1_2_2" );
TextLabel1_2_2.setText( trUtf8( "Enter a color name and hit return:" ) );
groupBoxLayout.addWidget( TextLabel1_2_2, 0, 1 );
- spinBox = new QSpinBox( groupBox, "spinBox" );
+ spinBox = new TQSpinBox( groupBox, "spinBox" );
groupBoxLayout.addWidget( spinBox, 1, 2 );
- progressBar = new QProgressBar( groupBox, "progressBar" );
+ progressBar = new TQProgressBar( groupBox, "progressBar" );
groupBoxLayout.addWidget( progressBar, 0, 2 );
- colorTest = new QLabel( groupBox, "colorTest" );
- colorTest.setFrameShape( QLabel.Box );
- colorTest.setFrameShadow( QLabel.Sunken );
+ colorTest = new TQLabel( groupBox, "colorTest" );
+ colorTest.setFrameShape( TQLabel.Box );
+ colorTest.setFrameShadow( TQLabel.Sunken );
colorTest.setText( trUtf8( "Color test area" ) );
- colorTest.setAlignment( QLabel.AlignAuto | QLabel.AlignCenter );
+ colorTest.setAlignment( TQLabel.AlignAuto | TQLabel.AlignCenter );
groupBoxLayout.addWidget( colorTest, 2, 1 );
WidgetsBaseLayout.addMultiCellWidget( groupBox, 1, 1, 0, 1 );
- Layout9 = new QHBoxLayout();
+ Layout9 = new TQHBoxLayout();
Layout9.setSpacing( 6 );
Layout9.setMargin( 0 );
- PixmapLabel1 = new QLabel( this, "PixmapLabel1" );
- PixmapLabel1.setFrameShape( QLabel.Panel );
+ PixmapLabel1 = new TQLabel( this, "PixmapLabel1" );
+ PixmapLabel1.setFrameShape( TQLabel.Panel );
PixmapLabel1.setMargin( 1 );
PixmapLabel1.setPixmap( image41 );
PixmapLabel1.setScaledContents( true );
Layout9.addWidget( PixmapLabel1 );
- ButtonGroup1 = new QButtonGroup( this, "ButtonGroup1" );
+ ButtonGroup1 = new TQButtonGroup( this, "ButtonGroup1" );
ButtonGroup1.setTitle( trUtf8( "Check boxes" ) );
ButtonGroup1.setColumnLayout(0, Qt.Vertical );
ButtonGroup1.layout().setSpacing( 0 );
ButtonGroup1.layout().setMargin( 0 );
- ButtonGroup1Layout = new QGridLayout( ButtonGroup1.layout() );
+ ButtonGroup1Layout = new TQGridLayout( ButtonGroup1.layout() );
ButtonGroup1Layout.setAlignment( Qt.AlignTop );
ButtonGroup1Layout.setSpacing( 6 );
ButtonGroup1Layout.setMargin( 11 );
- CheckBox1 = new QCheckBox( ButtonGroup1, "CheckBox1" );
+ CheckBox1 = new TQCheckBox( ButtonGroup1, "CheckBox1" );
CheckBox1.setText( trUtf8( "Apples" ) );
ButtonGroup1Layout.addWidget( CheckBox1, 0, 0 );
- CheckBox2 = new QCheckBox( ButtonGroup1, "CheckBox2" );
+ CheckBox2 = new TQCheckBox( ButtonGroup1, "CheckBox2" );
CheckBox2.setText( trUtf8( "Banana" ) );
ButtonGroup1Layout.addWidget( CheckBox2, 1, 0 );
- CheckBox3 = new QCheckBox( ButtonGroup1, "CheckBox3" );
+ CheckBox3 = new TQCheckBox( ButtonGroup1, "CheckBox3" );
CheckBox3.setText( trUtf8( "Orange" ) );
CheckBox3.setChecked( true );
ButtonGroup1Layout.addWidget( CheckBox3, 2, 0 );
Layout9.addWidget( ButtonGroup1 );
- ButtonGroup2 = new QButtonGroup( this, "ButtonGroup2" );
+ ButtonGroup2 = new TQButtonGroup( this, "ButtonGroup2" );
ButtonGroup2.setTitle( trUtf8( "Radio buttons" ) );
ButtonGroup2.setColumnLayout(0, Qt.Vertical );
ButtonGroup2.layout().setSpacing( 0 );
ButtonGroup2.layout().setMargin( 0 );
- ButtonGroup2Layout = new QGridLayout( ButtonGroup2.layout() );
+ ButtonGroup2Layout = new TQGridLayout( ButtonGroup2.layout() );
ButtonGroup2Layout.setAlignment( Qt.AlignTop );
ButtonGroup2Layout.setSpacing( 6 );
ButtonGroup2Layout.setMargin( 11 );
- RadioButton3 = new QRadioButton( ButtonGroup2, "RadioButton3" );
+ RadioButton3 = new TQRadioButton( ButtonGroup2, "RadioButton3" );
RadioButton3.setText( trUtf8( "Sprite" ) );
ButtonGroup2Layout.addWidget( RadioButton3, 1, 0 );
- RadioButton4 = new QRadioButton( ButtonGroup2, "RadioButton4" );
+ RadioButton4 = new TQRadioButton( ButtonGroup2, "RadioButton4" );
RadioButton4.setText( trUtf8( "Farris" ) );
ButtonGroup2Layout.addWidget( RadioButton4, 2, 0 );
- RadioButton2 = new QRadioButton( ButtonGroup2, "RadioButton2" );
+ RadioButton2 = new TQRadioButton( ButtonGroup2, "RadioButton2" );
RadioButton2.setText( trUtf8( "Solo" ) );
RadioButton2.setChecked( true );
ButtonGroup2Layout.addWidget( RadioButton2, 0, 0 );
Layout9.addWidget( ButtonGroup2 );
- GroupBox1 = new QGroupBox( this, "GroupBox1" );
- sizePolicy2 = new QSizePolicy();
+ GroupBox1 = new TQGroupBox( this, "GroupBox1" );
+ sizePolicy2 = new TQSizePolicy();
sizePolicy2.setHorData(7);
sizePolicy2.setVerData(7);
sizePolicy2.setHeightForWidth(GroupBox1.sizePolicy().hasHeightForWidth());
@@ -5992,38 +5992,38 @@ WidgetsBase( QWidget parent, String name, int fl )
GroupBox1.setColumnLayout(0, Qt.Vertical );
GroupBox1.layout().setSpacing( 0 );
GroupBox1.layout().setMargin( 0 );
- GroupBox1Layout = new QGridLayout( GroupBox1.layout() );
+ GroupBox1Layout = new TQGridLayout( GroupBox1.layout() );
GroupBox1Layout.setAlignment( Qt.AlignTop );
GroupBox1Layout.setSpacing( 6 );
GroupBox1Layout.setMargin( 11 );
clock = new AnalogClock( GroupBox1, "clock" );
- sizePolicy3 = new QSizePolicy();
+ sizePolicy3 = new TQSizePolicy();
sizePolicy3.setHorData(0);
sizePolicy3.setVerData(0);
sizePolicy3.setHeightForWidth(clock.sizePolicy().hasHeightForWidth());
clock.setSizePolicy( sizePolicy3 );
- clock.setMinimumSize( new QSize( 100, 100 ) );
+ clock.setMinimumSize( new TQSize( 100, 100 ) );
GroupBox1Layout.addMultiCellWidget( clock, 0, 2, 0, 0 );
- dateEdit = new QDateEdit( GroupBox1, "dateEdit" );
+ dateEdit = new TQDateEdit( GroupBox1, "dateEdit" );
GroupBox1Layout.addWidget( dateEdit, 1, 1 );
- timeEdit = new QTimeEdit( GroupBox1, "timeEdit" );
+ timeEdit = new TQTimeEdit( GroupBox1, "timeEdit" );
timeEdit.setAutoAdvance( true );
GroupBox1Layout.addWidget( timeEdit, 2, 1 );
- Layout5 = new QHBoxLayout();
+ Layout5 = new TQHBoxLayout();
Layout5.setSpacing( 6 );
Layout5.setMargin( 0 );
- dateTimeLabel = new QLabel( GroupBox1, "dateTimeLabel" );
+ dateTimeLabel = new TQLabel( GroupBox1, "dateTimeLabel" );
dateTimeLabel.setText( trUtf8( "DateTime string goes here!" ) );
Layout5.addWidget( dateTimeLabel );
- QSpacerItem spacer = new QSpacerItem( 20, 20, QSizePolicy.Expanding, QSizePolicy.Minimum );
+ TQSpacerItem spacer = new TQSpacerItem( 20, 20, TQSizePolicy.Expanding, TQSizePolicy.Minimum );
Layout5.addItem( spacer );
GroupBox1Layout.addLayout( Layout5, 0, 1 );
@@ -6053,12 +6053,12 @@ WidgetsBase( QWidget parent, String name, int fl )
init();
}
-WidgetsBase( QWidget parent, String name)
+WidgetsBase( TQWidget parent, String name)
{
this(parent, name, 0);
}
-WidgetsBase( QWidget parent)
+WidgetsBase( TQWidget parent)
{
this(parent, null, 0);
}
@@ -6095,12 +6095,12 @@ public void destroy()
public void setColor(String color)
{
- groupBox.setPalette( new QPalette(new QColor( color )) );
+ groupBox.setPalette( new TQPalette(new TQColor( color )) );
}
public void updateColorTest(String color)
{
- colorTest.setPalette( new QPalette(new QColor( color )) );
+ colorTest.setPalette( new TQPalette(new TQColor( color )) );
}
public void updateDateTimeString()