summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/test
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
commit9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch)
treec81c34dae2b3b1ea73801bf18a960265dc4207f7 /kdejava/koala/test
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'kdejava/koala/test')
-rw-r--r--kdejava/koala/test/dcop/JavaDCOPObject.java4
-rw-r--r--kdejava/koala/test/kbase/KBase.java10
-rw-r--r--kdejava/koala/test/kbase/KBaseDoc.java4
-rw-r--r--kdejava/koala/test/kbase/KBaseView.java10
-rw-r--r--kdejava/koala/test/kblend/KBlendTest.java28
-rw-r--r--kdejava/koala/test/kblend/testimage.pngbin35951 -> 35962 bytes
-rw-r--r--kdejava/koala/test/kcombobox/KComboBoxTest.java16
-rw-r--r--kdejava/koala/test/kfontdialog/KFontDialogTest.java38
-rw-r--r--kdejava/koala/test/khelpers/KHelpers.java16
-rw-r--r--kdejava/koala/test/kioslave/KioslaveTest.java118
-rw-r--r--kdejava/koala/test/kmenu/KdeMenuSample.java22
-rw-r--r--kdejava/koala/test/kprogress/KProgressTest.java4
12 files changed, 135 insertions, 135 deletions
diff --git a/kdejava/koala/test/dcop/JavaDCOPObject.java b/kdejava/koala/test/dcop/JavaDCOPObject.java
index 8b97efaa..babb1056 100644
--- a/kdejava/koala/test/dcop/JavaDCOPObject.java
+++ b/kdejava/koala/test/dcop/JavaDCOPObject.java
@@ -9,7 +9,7 @@ public class JavaDCOPObject extends DCOPObject{
}
public ArrayList functions(){
ArrayList operations = new ArrayList();
- operations.add("QString myOperation()");
+ operations.add("TQString myOperation()");
return operations;
}
public ArrayList interfaces(){
@@ -21,7 +21,7 @@ public class JavaDCOPObject extends DCOPObject{
DCOPAnswer answer = new DCOPAnswer();
try{
if("myOperation()".equals(fun)){
- answer.setReplyType("QString");
+ answer.setReplyType("TQString");
answer.setSucces(true);
ByteArrayOutputStream stream = new ByteArrayOutputStream();
diff --git a/kdejava/koala/test/kbase/KBase.java b/kdejava/koala/test/kbase/KBase.java
index abbf784c..ed584dcd 100644
--- a/kdejava/koala/test/kbase/KBase.java
+++ b/kdejava/koala/test/kbase/KBase.java
@@ -52,7 +52,7 @@ public class KBase extends KMainWindow
/** construtor of KBase, calls all init functions to create the application.
*/
-public KBase(QWidget parent, String name)
+public KBase(TQWidget parent, String name)
{
super(parent, name, 0);
KApplication kapp = KApplication.kApplication();
@@ -222,7 +222,7 @@ protected void readOptions()
// initialize the recent file list
fileOpenRecent.loadEntries(config,"Recent Files");
- QSize size=config.readSizeEntry("Geometry", null);
+ TQSize size=config.readSizeEntry("Geometry", null);
if(!size.isEmpty())
{
resize(size);
@@ -273,7 +273,7 @@ protected void readProperties(KConfig _cfg)
doc.openDocument(_url);
doc.setModified();
setCaption(_url.fileName(),true);
- QFile.remove(tempname);
+ TQFile.remove(tempname);
}
}
else
@@ -401,7 +401,7 @@ public void slotFileSaveAs()
{
slotStatusMsg(tr("Saving file with a new filename..."));
- KURL url=KFileDialog.getSaveURL(QDir.currentDirPath(),
+ KURL url=KFileDialog.getSaveURL(TQDir.currentDirPath(),
tr("*|All files"), this, tr("Save as..."));
if(!url.isEmpty())
{
@@ -428,7 +428,7 @@ public void slotFilePrint()
{
slotStatusMsg(tr("Printing..."));
- QPrinter printer = new QPrinter();
+ TQPrinter printer = new TQPrinter();
if (printer.setup(this))
{
view.print(printer);
diff --git a/kdejava/koala/test/kbase/KBaseDoc.java b/kdejava/koala/test/kbase/KBaseDoc.java
index 0ee4f8f3..3683c0b2 100644
--- a/kdejava/koala/test/kbase/KBaseDoc.java
+++ b/kdejava/koala/test/kbase/KBaseDoc.java
@@ -13,7 +13,7 @@ import org.kde.koala.*;
* @author Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team.
* @version KDevelop version 1.2 code generation
*/
-public class KBaseDoc extends QObject {
+public class KBaseDoc extends TQObject {
/** the list of the views currently connected to the document */
public ArrayList pViewList;
@@ -23,7 +23,7 @@ public class KBaseDoc extends QObject {
private KURL doc_url;
/** Constructor for the fileclass of the application */
-public KBaseDoc(QWidget parent, String name)
+public KBaseDoc(TQWidget parent, String name)
{
super(parent, name);
setURL(new KURL());
diff --git a/kdejava/koala/test/kbase/KBaseView.java b/kdejava/koala/test/kbase/KBaseView.java
index 2b745b11..59554607 100644
--- a/kdejava/koala/test/kbase/KBaseView.java
+++ b/kdejava/koala/test/kbase/KBaseView.java
@@ -1,16 +1,16 @@
import org.kde.qt.*;
/** The KBaseView class provides the view widget for the KBase instance.
- * The View instance inherits QWidget as a base class and represents the view object of a KTMainWindow. As KBaseView is part of the
+ * The View instance inherits TQWidget as a base class and represents the view object of a KTMainWindow. As KBaseView is part of the
* docuement-view model, it needs a reference to the document object connected with it by the KBase class to manipulate and display
* the document structure provided by the KBaseDoc class.
*
* @author Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team.
* @version KDevelop version 0.4 code generation
*/
-public class KBaseView extends QWidget {
+public class KBaseView extends TQWidget {
-public KBaseView(QWidget parent, String name)
+public KBaseView(TQWidget parent, String name)
{
super(parent, name);
setBackgroundMode(PaletteBase);
@@ -23,9 +23,9 @@ public KBaseDoc getDocument()
return theApp.getDocument();
}
-public void print(QPrinter pPrinter)
+public void print(TQPrinter pPrinter)
{
- QPainter printpainter = new QPainter();
+ TQPainter printpainter = new TQPainter();
printpainter.begin(pPrinter);
// TODO: add your printing code here
diff --git a/kdejava/koala/test/kblend/KBlendTest.java b/kdejava/koala/test/kblend/KBlendTest.java
index 67080049..2c5dd7be 100644
--- a/kdejava/koala/test/kblend/KBlendTest.java
+++ b/kdejava/koala/test/kblend/KBlendTest.java
@@ -34,34 +34,34 @@ public class KBlendTest {
}
- public static class KBlendWidget extends QWidget {
+ public static class KBlendWidget extends TQWidget {
- QImage image;
- QColor bgnd;
+ TQImage image;
+ TQColor bgnd;
String testImage = "testimage.png";
- public KBlendWidget (QWidget parent, String name) {
+ public KBlendWidget (TQWidget parent, String name) {
// change the colors to see the effects.
-// bgnd = new QColor(QColor.qRgb(255, 255, 255));
+// bgnd = new TQColor(TQColor.qRgb(255, 255, 255));
bgnd = Qt.blue();
// bgnd = Qt.red();
- image = new QImage(testImage);
+ image = new TQImage(testImage);
resize(image.width()*2+60, image.height()*3+80);
setBackgroundColor(bgnd);
}
- protected void paintEvent(QPaintEvent pe ) {
+ protected void paintEvent(TQPaintEvent pe ) {
long it, ft;
String say = "";
- image = new QImage(testImage);
+ image = new TQImage(testImage);
- QPainter p = new QPainter(this);
+ TQPainter p = new TQPainter(this);
p.setPen(Qt.black());
@@ -73,7 +73,7 @@ public class KBlendTest {
p.drawImage(20, 20, image);
p.drawText(5 , 15, say);
- image = new QImage(testImage);
+ image = new TQImage(testImage);
// here a negative initial intensity is used (1/2 of image is unaffected)
it = System.currentTimeMillis();
@@ -83,7 +83,7 @@ public class KBlendTest {
p.drawImage(40+image.width(), 20, image);
p.drawText(15+image.width() , 15, say);
- image = new QImage(testImage);
+ image = new TQImage(testImage);
it = System.currentTimeMillis();
KImageEffect.blend(image, 0.0f, bgnd, KImageEffect.DiagonalGradient,true);
@@ -92,7 +92,7 @@ public class KBlendTest {
p.drawImage(20, 40+image.height(), image);
p.drawText(5 , 35+image.height(), say);
- image = new QImage(testImage);
+ image = new TQImage(testImage);
it = System.currentTimeMillis();
KImageEffect.blend(image, 0.1f, bgnd, KImageEffect.CrossDiagonalGradient);
@@ -101,7 +101,7 @@ public class KBlendTest {
p.drawImage(40+image.width(), 40+image.height(), image);
p.drawText(25+image.width() , 35 + image.height(), say);
- image = new QImage(testImage);
+ image = new TQImage(testImage);
it = System.currentTimeMillis();
KImageEffect.blend(image, -0.6f, bgnd, KImageEffect.RectangleGradient);
@@ -110,7 +110,7 @@ public class KBlendTest {
p.drawImage(20, 60+2*image.height(), image);
p.drawText(5 , 55+2*image.height(), say);
- image = new QImage(testImage);
+ image = new TQImage(testImage);
it = System.currentTimeMillis();
KImageEffect.blend(image, 0.2f, bgnd, KImageEffect.EllipticGradient);
diff --git a/kdejava/koala/test/kblend/testimage.png b/kdejava/koala/test/kblend/testimage.png
index 2f591d8e..dda94700 100644
--- a/kdejava/koala/test/kblend/testimage.png
+++ b/kdejava/koala/test/kblend/testimage.png
Binary files differ
diff --git a/kdejava/koala/test/kcombobox/KComboBoxTest.java b/kdejava/koala/test/kcombobox/KComboBoxTest.java
index c0b8d5fd..0f914a2e 100644
--- a/kdejava/koala/test/kcombobox/KComboBoxTest.java
+++ b/kdejava/koala/test/kcombobox/KComboBoxTest.java
@@ -41,10 +41,10 @@ import java.util.*;
KCmdLineArgs args = KCmdLineArgs.parsedArgs();
// Make a central widget to contain the other widgets
- QWidget w = new QWidget();
+ TQWidget w = new TQWidget();
// Insert the widget container (parent widget) into
// a layout manager (VERTICAL).
- QVBoxLayout vbox = new QVBoxLayout( w, KDialog.marginHint(),
+ TQVBoxLayout vbox = new TQVBoxLayout( w, KDialog.marginHint(),
KDialog.spacingHint() );
// Resize the widget
w.resize( 500, 100 );
@@ -54,11 +54,11 @@ import java.util.*;
// Create and modify read-write widget
KComboBox rwc = new KComboBox( true, w, "rwcombobox" );
- QLabel lblrw = new QLabel( rwc, "&Editable ComboBox", w, "rwcombolabel",0
+ TQLabel lblrw = new TQLabel( rwc, "&Editable ComboBox", w, "rwcombolabel",0
);
rwc.setDuplicatesEnabled( true );
rwc.completionObject().setItems( list );
- rwc.setInsertionPolicy( QComboBox.NoInsertion );
+ rwc.setInsertionPolicy( TQComboBox.NoInsertion );
rwc.insertStringList( list );
rwc.setEditText( "KDE Java Bindings" );
@@ -76,7 +76,7 @@ import java.util.*;
s_pCompletion.setCompletionMode( KGlobalSettings.completionMode() );
konqc.setCompletionObject( s_pCompletion );
- QLabel lblkonq = new QLabel( konqc, "&Konqueror's ComboBox", w );
+ TQLabel lblkonq = new TQLabel( konqc, "&Konqueror's ComboBox", w );
// konqc.insertItem( KIconLoader.SmallIcon("www"),
// "http://www.kde.org" );
konqc.insertItem( app.iconLoader().loadIcon("www",0 ),
@@ -85,15 +85,15 @@ import java.util.*;
// Create a read-only widget
KComboBox soc = new KComboBox( w, "socombobox" );
- QLabel lblso = new QLabel( soc, "&Select-Only ComboBox", w, "socombolabel",0 );
+ TQLabel lblso = new TQLabel( soc, "&Select-Only ComboBox", w, "socombolabel",0 );
soc.setCompletionMode( KGlobalSettings.CompletionAuto );
soc.completionObject().setItems( list );
soc.insertStringList( list );
// Create an exit button
- QPushButton push = new QPushButton( "E&xit", w );
+ TQPushButton push = new TQPushButton( "E&xit", w );
- QObject.connect( push, Qt.SIGNAL("clicked()"), app, Qt.SLOT("closeAllWindows()" ) );
+ TQObject.connect( push, Qt.SIGNAL("clicked()"), app, Qt.SLOT("closeAllWindows()" ) );
// Insert the widgets into the layout manager.
vbox.addWidget( lblrw );
diff --git a/kdejava/koala/test/kfontdialog/KFontDialogTest.java b/kdejava/koala/test/kfontdialog/KFontDialogTest.java
index e1d4a19f..704c2553 100644
--- a/kdejava/koala/test/kfontdialog/KFontDialogTest.java
+++ b/kdejava/koala/test/kfontdialog/KFontDialogTest.java
@@ -5,7 +5,7 @@ import org.kde.koala.*;
/*
$Id$
- Requires the Qt widget libraries, available at no cost at
+ Retquires the Qt widget libraries, available at no cost at
http://www.troll.no
Copyright (C) 1996 Bernd Johannes Wuebben
@@ -64,10 +64,10 @@ public class KFontDialogTest {
aConfig.setGroup( "KFontDialog-test" );
// parameters are Font name, Font Point Size, Font Style, Font Italic
- app.setFont(new QFont("Helvetica",12,QFont.Normal,false));
-// app.setFont(new QFont("Times",18,QFont.Bold,true));
+ app.setFont(new TQFont("Helvetica",12,TQFont.Normal,false));
+// app.setFont(new TQFont("Times",18,TQFont.Bold,true));
- QFont font = aConfig.readFontEntry( "Chosen" );
+ TQFont font = aConfig.readFontEntry( "Chosen" );
int nRet = KFontDialog.getFont(font);
@@ -119,35 +119,35 @@ public class KFontDialogTest {
switch (cs) {
- case QFont.ISO_8859_1 :
+ case TQFont.ISO_8859_1 :
return "ISO_8859_1";
- case QFont.ISO_8859_2 :
+ case TQFont.ISO_8859_2 :
return "ISO_8859_2";
- case QFont.ISO_8859_3 :
+ case TQFont.ISO_8859_3 :
return "ISO_8859_3";
- case QFont.ISO_8859_4 :
+ case TQFont.ISO_8859_4 :
return "ISO_8859_4";
- case QFont.ISO_8859_5 :
+ case TQFont.ISO_8859_5 :
return "ISO_8859_5";
- case QFont.ISO_8859_6 :
+ case TQFont.ISO_8859_6 :
return "ISO_8859_6";
- case QFont.ISO_8859_7 :
+ case TQFont.ISO_8859_7 :
return "ISO_8859_7";
- case QFont.ISO_8859_8 :
+ case TQFont.ISO_8859_8 :
return "ISO_8859_8";
- case QFont.ISO_8859_9 :
+ case TQFont.ISO_8859_9 :
return "ISO_8859_9";
- case QFont.ISO_8859_10 :
+ case TQFont.ISO_8859_10 :
return "ISO_8859_10";
- case QFont.ISO_8859_11 :
+ case TQFont.ISO_8859_11 :
return "ISO_8859_11";
- case QFont.ISO_8859_12 :
+ case TQFont.ISO_8859_12 :
return "ISO_8859_12";
- case QFont.ISO_8859_13 :
+ case TQFont.ISO_8859_13 :
return "ISO_8859_13";
- case QFont.ISO_8859_14 :
+ case TQFont.ISO_8859_14 :
return "ISO_8859_14";
- case QFont.ISO_8859_15 :
+ case TQFont.ISO_8859_15 :
return "ISO_8859_15";
// more should be added
diff --git a/kdejava/koala/test/khelpers/KHelpers.java b/kdejava/koala/test/khelpers/KHelpers.java
index 3ab345c0..fbc3fb54 100644
--- a/kdejava/koala/test/khelpers/KHelpers.java
+++ b/kdejava/koala/test/khelpers/KHelpers.java
@@ -23,7 +23,7 @@ public class KHelpers extends KMainWindow {
protected int idfilenew;
protected int idfileopen;
protected int idfilesave;
- protected int idfilequit;
+ protected int idfiletquit;
// reference to the application
KApplication kapp;
@@ -36,18 +36,18 @@ public class KHelpers extends KMainWindow {
// get a reference to the application
kapp = KApplication.kApplication();
- QPopupMenu file = new QPopupMenu(this);
+ TQPopupMenu file = new TQPopupMenu(this);
idfilenew = file.insertItem("&New");
idfileopen = file.insertItem("&Open...");
idfilesave = file.insertItem("&Save");
- idfilequit = file.insertItem("&Quit", kapp, SLOT("closeAllWindows()"));
+ idfiletquit = file.insertItem("&Quit", kapp, SLOT("closeAllWindows()"));
connect ( file, SIGNAL( "highlighted(int)"), this, SLOT( "slotMenuEntryHelp (int)"));
menuBar().insertItem("&File",file);
- QPopupMenu help = helpMenu("KHelpers\n" +
+ TQPopupMenu help = helpMenu("KHelpers\n" +
"Copyright (C) 2000 By Joe Developer\n\n" +
"KHelpers demonstates a few of the ways " +
"that your application can provide help to a user");
@@ -60,11 +60,11 @@ public class KHelpers extends KMainWindow {
// Create the statusbar
statusBar();
- QLabel clientarea = new QLabel(this);
+ TQLabel clientarea = new TQLabel(this);
clientarea.setBackgroundColor(Qt.white());
- QToolTip.add(clientarea, "Functionless client area");
- QWhatsThis.add(clientarea,"This client area doesn't do anything.");
+ TQToolTip.add(clientarea, "Functionless client area");
+ TQWhatsThis.add(clientarea,"This client area doesn't do anything.");
setCentralWidget(clientarea);
@@ -86,7 +86,7 @@ public class KHelpers extends KMainWindow {
statusBar().message("Save the current document.",HelpMessageTime);
}
- else if (id == idfilequit) {
+ else if (id == idfiletquit) {
statusBar().message("Quit the application.",HelpMessageTime);
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;
}
diff --git a/kdejava/koala/test/kmenu/KdeMenuSample.java b/kdejava/koala/test/kmenu/KdeMenuSample.java
index b7832118..150def70 100644
--- a/kdejava/koala/test/kmenu/KdeMenuSample.java
+++ b/kdejava/koala/test/kmenu/KdeMenuSample.java
@@ -12,15 +12,15 @@ import org.kde.qt.qtjava;
import org.kde.koala.KMainWindow;
import org.kde.koala.KCmdLineArgs;
-import org.kde.qt.QPopupMenu;
-import org.kde.qt.QTextView;
+import org.kde.qt.TQPopupMenu;
+import org.kde.qt.TQTextView;
import org.kde.koala.KMenuBar;
import org.kde.koala.KApplication;
import org.kde.koala.KURL;
import org.kde.koala.KFileDialog;
import org.kde.koala.KMessageBox;
-import org.kde.qt.QColor;
-import org.kde.qt.QButton;
+import org.kde.qt.TQColor;
+import org.kde.qt.TQButton;
import org.kde.koala.KPushButton;
@@ -46,7 +46,7 @@ public class KdeMenuSample extends KMainWindow {
this.kApp = kApp;
setCaption("KDE3 Tutorial");
createMenu();
- QTextView centralWidget = createTextView();
+ TQTextView centralWidget = createTextView();
this.setCentralWidget(centralWidget);
}
@@ -55,8 +55,8 @@ public class KdeMenuSample extends KMainWindow {
/**
* creates the file menu
*/
- private QPopupMenu createFileMenu() {
- QPopupMenu fileMenu = new QPopupMenu(this);
+ private TQPopupMenu createFileMenu() {
+ TQPopupMenu fileMenu = new TQPopupMenu(this);
fileMenu.insertItem("&Open",this,this.SLOT("fileOpen()"));
fileMenu.insertItem("&Save",this,this.SLOT("fileSave()"));
fileMenu.insertItem("&Quit",kApp,kApp.SLOT("quit()"));
@@ -66,7 +66,7 @@ public class KdeMenuSample extends KMainWindow {
/**
* creates the about menu
*/
- private QPopupMenu createAboutMenu() {
+ private TQPopupMenu createAboutMenu() {
StringBuffer aboutText = new StringBuffer();
aboutText.append("Menu Example: \n ");
@@ -77,7 +77,7 @@ public class KdeMenuSample extends KMainWindow {
aboutText.append("This is free software, and you are welcome to redistribute it\n");
aboutText.append("under certain conditions\n");
- QPopupMenu aboutMenu = helpMenu(aboutText.toString(),true);
+ TQPopupMenu aboutMenu = helpMenu(aboutText.toString(),true);
return aboutMenu;
}
@@ -95,7 +95,7 @@ public class KdeMenuSample extends KMainWindow {
/**
* creates the textview of the window
*/
- private QTextView createTextView() {
+ private TQTextView createTextView() {
StringBuffer textBuf = new StringBuffer();
textBuf.append("<H2>Hello World !</H2><BR>This is a simple");
textBuf.append(" window with <I><font size=5><B>R<font color=red");
@@ -103,7 +103,7 @@ public class KdeMenuSample extends KMainWindow {
textBuf.append("</font></B></I> capabilities<BR>Try to resize");
textBuf.append(" this window, all this is automatic !</H2>");
- QTextView mainTextView = new QTextView(this,"");
+ TQTextView mainTextView = new TQTextView(this,"");
mainTextView.setText(textBuf.toString());
diff --git a/kdejava/koala/test/kprogress/KProgressTest.java b/kdejava/koala/test/kprogress/KProgressTest.java
index d2d13e40..b42f348a 100644
--- a/kdejava/koala/test/kprogress/KProgressTest.java
+++ b/kdejava/koala/test/kprogress/KProgressTest.java
@@ -46,7 +46,7 @@ public class KProgressTest {
return;
}
- private static class MyWidget extends QWidget {
+ private static class MyWidget extends TQWidget {
private KProgress Progress;
static int fwd = 0;
@@ -62,7 +62,7 @@ public class KProgressTest {
startTimer(50);
}
- public void timerEvent(QTimerEvent timer) {
+ public void timerEvent(TQTimerEvent timer) {
if (direction == fwd) {
if (Progress.progress() == Progress.totalSteps())