diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /kdejava/koala/test/kioslave | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
Diffstat (limited to 'kdejava/koala/test/kioslave')
-rw-r--r-- | kdejava/koala/test/kioslave/KioslaveTest.java | 118 |
1 files changed, 59 insertions, 59 deletions
diff --git a/kdejava/koala/test/kioslave/KioslaveTest.java b/kdejava/koala/test/kioslave/KioslaveTest.java index 384c8b2f..9caec2aa 100644 --- a/kdejava/koala/test/kioslave/KioslaveTest.java +++ b/kdejava/koala/test/kioslave/KioslaveTest.java @@ -32,42 +32,42 @@ class KioslaveTest extends KMainWindow { static final int ProgressStatus = 2; // info stuff - QLabel lb_from; - QLineEdit le_source; + TQLabel lb_from; + TQLineEdit le_source; - QLabel lb_to; - QLineEdit le_dest; + TQLabel lb_to; + TQLineEdit le_dest; // operation stuff - QButtonGroup opButtons; - - QRadioButton rbList; - QRadioButton rbListRecursive; - QRadioButton rbStat; - QRadioButton rbGet; - QRadioButton rbPut; - QRadioButton rbCopy; - QRadioButton rbMove; - QRadioButton rbDelete; - QRadioButton rbShred; - QRadioButton rbMkdir; - QRadioButton rbMimetype; + TQButtonGroup opButtons; + + TQRadioButton rbList; + TQRadioButton rbListRecursive; + TQRadioButton rbStat; + TQRadioButton rbGet; + TQRadioButton rbPut; + TQRadioButton rbCopy; + TQRadioButton rbMove; + TQRadioButton rbDelete; + TQRadioButton rbShred; + TQRadioButton rbMkdir; + TQRadioButton rbMimetype; // progress stuff - QButtonGroup progressButtons; + TQButtonGroup progressButtons; - QRadioButton rbProgressNone; - QRadioButton rbProgressDefault; - QRadioButton rbProgressStatus; + TQRadioButton rbProgressNone; + TQRadioButton rbProgressDefault; + TQRadioButton rbProgressStatus; - QPushButton pbStart; - QPushButton pbStop; + TQPushButton pbStart; + TQPushButton pbStop; - QPushButton close; + TQPushButton close; private Job job; -private QWidget main_widget; +private TQWidget main_widget; private StatusbarProgress statusProgress; @@ -96,10 +96,10 @@ KioslaveTest( String src, String dest, int op, int pr ) super(null, ""); job = null; - main_widget = new QWidget( this, ""); - QBoxLayout topLayout = new QVBoxLayout( main_widget, 10, 5 ); + main_widget = new TQWidget( this, ""); + TQBoxLayout topLayout = new TQVBoxLayout( main_widget, 10, 5 ); - QGridLayout grid = new QGridLayout( 2, 2, 10 ); + TQGridLayout grid = new TQGridLayout( 2, 2, 10 ); topLayout.addLayout( grid ); grid.setRowStretch(0,1); @@ -108,68 +108,68 @@ KioslaveTest( String src, String dest, int op, int pr ) grid.setColStretch(0,1); grid.setColStretch(1,100); - lb_from = new QLabel( "From :", main_widget ); + lb_from = new TQLabel( "From :", main_widget ); grid.addWidget( lb_from, 0, 0 ); - le_source = new QLineEdit( main_widget ); + le_source = new TQLineEdit( main_widget ); grid.addWidget( le_source, 0, 1 ); le_source.setText( src ); - lb_to = new QLabel( "To :", main_widget ); + lb_to = new TQLabel( "To :", main_widget ); grid.addWidget( lb_to, 1, 0 ); - le_dest = new QLineEdit( main_widget ); + le_dest = new TQLineEdit( main_widget ); grid.addWidget( le_dest, 1, 1 ); le_dest.setText( dest ); // Operation groupbox & buttons - opButtons = new QButtonGroup( "Operation", main_widget ); + opButtons = new TQButtonGroup( "Operation", main_widget ); topLayout.addWidget( opButtons, 10 ); connect( opButtons, SIGNAL("clicked(int)"), SLOT("changeOperation(int)") ); - QBoxLayout hbLayout = new QHBoxLayout( opButtons, 15 ); + TQBoxLayout hbLayout = new TQHBoxLayout( opButtons, 15 ); - rbList = new QRadioButton( "List", opButtons ); + rbList = new TQRadioButton( "List", opButtons ); opButtons.insert( rbList, List ); hbLayout.addWidget( rbList, 5 ); - rbListRecursive = new QRadioButton( "ListRecursive", opButtons ); + rbListRecursive = new TQRadioButton( "ListRecursive", opButtons ); opButtons.insert( rbListRecursive, ListRecursive ); hbLayout.addWidget( rbListRecursive, 5 ); - rbStat = new QRadioButton( "Stat", opButtons ); + rbStat = new TQRadioButton( "Stat", opButtons ); opButtons.insert( rbStat, Stat ); hbLayout.addWidget( rbStat, 5 ); - rbGet = new QRadioButton( "Get", opButtons ); + rbGet = new TQRadioButton( "Get", opButtons ); opButtons.insert( rbGet, Get ); hbLayout.addWidget( rbGet, 5 ); - rbPut = new QRadioButton( "Put", opButtons ); + rbPut = new TQRadioButton( "Put", opButtons ); opButtons.insert( rbPut, Put ); hbLayout.addWidget( rbPut, 5 ); - rbCopy = new QRadioButton( "Copy", opButtons ); + rbCopy = new TQRadioButton( "Copy", opButtons ); opButtons.insert( rbCopy, Copy ); hbLayout.addWidget( rbCopy, 5 ); - rbMove = new QRadioButton( "Move", opButtons ); + rbMove = new TQRadioButton( "Move", opButtons ); opButtons.insert( rbMove, Move ); hbLayout.addWidget( rbMove, 5 ); - rbDelete = new QRadioButton( "Delete", opButtons ); + rbDelete = new TQRadioButton( "Delete", opButtons ); opButtons.insert( rbDelete, Delete ); hbLayout.addWidget( rbDelete, 5 ); - rbShred = new QRadioButton( "Shred", opButtons ); + rbShred = new TQRadioButton( "Shred", opButtons ); opButtons.insert( rbShred, Shred ); hbLayout.addWidget( rbShred, 5 ); - rbMkdir = new QRadioButton( "Mkdir", opButtons ); + rbMkdir = new TQRadioButton( "Mkdir", opButtons ); opButtons.insert( rbMkdir, Mkdir ); hbLayout.addWidget( rbMkdir, 5 ); - rbMimetype = new QRadioButton( "Mimetype", opButtons ); + rbMimetype = new TQRadioButton( "Mimetype", opButtons ); opButtons.insert( rbMimetype, Mimetype ); hbLayout.addWidget( rbMimetype, 5 ); @@ -177,21 +177,21 @@ KioslaveTest( String src, String dest, int op, int pr ) changeOperation( op ); // Progress groupbox & buttons - progressButtons = new QButtonGroup( "Progress dialog mode", main_widget ); + progressButtons = new TQButtonGroup( "Progress dialog mode", main_widget ); topLayout.addWidget( progressButtons, 10 ); connect( progressButtons, SIGNAL("clicked(int)"), SLOT("changeProgressMode(int)") ); - hbLayout = new QHBoxLayout( progressButtons, 15 ); + hbLayout = new TQHBoxLayout( progressButtons, 15 ); - rbProgressNone = new QRadioButton( "None", progressButtons ); + rbProgressNone = new TQRadioButton( "None", progressButtons ); progressButtons.insert( rbProgressNone, ProgressNone ); hbLayout.addWidget( rbProgressNone, 5 ); - rbProgressDefault = new QRadioButton( "Default", progressButtons ); + rbProgressDefault = new TQRadioButton( "Default", progressButtons ); progressButtons.insert( rbProgressDefault, ProgressDefault ); hbLayout.addWidget( rbProgressDefault, 5 ); - rbProgressStatus = new QRadioButton( "Status", progressButtons ); + rbProgressStatus = new TQRadioButton( "Status", progressButtons ); progressButtons.insert( rbProgressStatus, ProgressStatus ); hbLayout.addWidget( rbProgressStatus, 5 ); @@ -203,21 +203,21 @@ KioslaveTest( String src, String dest, int op, int pr ) statusBar().addWidget( statusProgress, 0, true ); // run & stop butons - hbLayout = new QHBoxLayout( topLayout, 15 ); + hbLayout = new TQHBoxLayout( topLayout, 15 ); - pbStart = new QPushButton( "&Start", main_widget ); + pbStart = new TQPushButton( "&Start", main_widget ); pbStart.setFixedSize( pbStart.sizeHint() ); connect( pbStart, SIGNAL("clicked()"), SLOT("startJob()") ); hbLayout.addWidget( pbStart, 5 ); - pbStop = new QPushButton( "Sto&p", main_widget ); + pbStop = new TQPushButton( "Sto&p", main_widget ); pbStop.setFixedSize( pbStop.sizeHint() ); pbStop.setEnabled( false ); connect( pbStop, SIGNAL("clicked()"), SLOT("stopJob()") ); hbLayout.addWidget( pbStop, 5 ); // close button - close = new QPushButton( "&Close", main_widget ); + close = new TQPushButton( "&Close", main_widget ); close.setFixedSize( close.sizeHint() ); connect(close, SIGNAL("clicked()"), this, SLOT("slotQuit()")); @@ -235,14 +235,14 @@ KioslaveTest( String src, String dest, int op, int pr ) } -protected void closeEvent( QCloseEvent e ){ +protected void closeEvent( TQCloseEvent e ){ slotQuit(); } void slotQuit(){ if ( job != null ) { - job.kill( true ); // kill the job quietly + job.kill( true ); // kill the job tquietly } if (slave != null ) Scheduler.disconnectSlave(slave); @@ -272,13 +272,13 @@ void changeProgressMode( int id ) { void startJob() { - String sCurrent = QDir.currentDirPath()+"/"; + String sCurrent = TQDir.currentDirPath()+"/"; KURL.encode_string(sCurrent); String sSrc = le_source.text(); KURL src = new KURL( new KURL(sCurrent), sSrc ); if ( !src.isValid() ) { - QMessageBox.critical(this, "Kioslave Error Message", "Source URL is malformed" ); + TQMessageBox.critical(this, "Kioslave Error Message", "Source URL is malformed" ); return; } @@ -287,7 +287,7 @@ void startJob() { if ( !dest.isValid() && ( selectedOperation == Copy || selectedOperation == Move ) ) { - QMessageBox.critical(this, "Kioslave Error Message", + TQMessageBox.critical(this, "Kioslave Error Message", "Destination URL is malformed" ); return; } |