summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/tabdialog
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/examples/tabdialog')
-rw-r--r--qtjava/javalib/examples/tabdialog/Main.java2
-rw-r--r--qtjava/javalib/examples/tabdialog/TabDialog.java70
2 files changed, 36 insertions, 36 deletions
diff --git a/qtjava/javalib/examples/tabdialog/Main.java b/qtjava/javalib/examples/tabdialog/Main.java
index 27a0ef6a..200bd0f3 100644
--- a/qtjava/javalib/examples/tabdialog/Main.java
+++ b/qtjava/javalib/examples/tabdialog/Main.java
@@ -15,7 +15,7 @@ public class Main {
public static void main(String[] args)
{
- QApplication a = new QApplication( args );
+ TQApplication a = new TQApplication( args );
TabDialog tabdialog = new TabDialog( null, "tabdialog", ( args.length < 1 ? "." : args[0] ) );
tabdialog.resize( 450, 350 );
diff --git a/qtjava/javalib/examples/tabdialog/TabDialog.java b/qtjava/javalib/examples/tabdialog/TabDialog.java
index 838bec10..bbfeb0ff 100644
--- a/qtjava/javalib/examples/tabdialog/TabDialog.java
+++ b/qtjava/javalib/examples/tabdialog/TabDialog.java
@@ -11,18 +11,18 @@
import org.kde.qt.*;
import java.text.*;
-class TabDialog extends QTabDialog
+class TabDialog extends TQTabDialog
{
protected String filename;
-protected QFileInfo fileinfo;
+protected TQFileInfo fileinfo;
-TabDialog( QWidget parent, String name, String _filename )
+TabDialog( TQWidget parent, String name, String _filename )
{
super( parent, name );
filename = _filename;
- fileinfo = new QFileInfo(filename);
+ fileinfo = new TQFileInfo(filename);
setupTab1();
setupTab2();
setupTab3();
@@ -32,82 +32,82 @@ TabDialog( QWidget parent, String name, String _filename )
void setupTab1()
{
- QVBox tab1 = new QVBox( this );
+ TQVBox tab1 = new TQVBox( this );
tab1.setMargin( 5 );
- new QLabel( "Filename:", tab1 );
- QLineEdit fname = new QLineEdit( filename, tab1 );
+ new TQLabel( "Filename:", tab1 );
+ TQLineEdit fname = new TQLineEdit( filename, tab1 );
fname.setFocus();
- new QLabel( "Path:", tab1 );
- QLabel path = new QLabel( fileinfo.dirPath( true ), tab1 );
- path.setFrameStyle( QFrame.Panel | QFrame.Sunken );
+ new TQLabel( "Path:", tab1 );
+ TQLabel path = new TQLabel( fileinfo.dirPath( true ), tab1 );
+ path.setFrameStyle( TQFrame.Panel | TQFrame.Sunken );
- new QLabel( "Size:", tab1 );
- QLabel size = new QLabel( fileinfo.size() + " KB", tab1 );
- size.setFrameStyle( QFrame.Panel | QFrame.Sunken );
+ new TQLabel( "Size:", tab1 );
+ TQLabel size = new TQLabel( fileinfo.size() + " KB", tab1 );
+ size.setFrameStyle( TQFrame.Panel | TQFrame.Sunken );
SimpleDateFormat dateFormat = new SimpleDateFormat("EE MMM d hh:mm:ss yyyy");
- new QLabel( "Last Read:", tab1 );
- QLabel lread = new QLabel( dateFormat.format(fileinfo.lastRead().getTime()), tab1 );
- lread.setFrameStyle( QFrame.Panel | QFrame.Sunken );
+ new TQLabel( "Last Read:", tab1 );
+ TQLabel lread = new TQLabel( dateFormat.format(fileinfo.lastRead().getTime()), tab1 );
+ lread.setFrameStyle( TQFrame.Panel | TQFrame.Sunken );
- new QLabel( "Last Modified:", tab1 );
- QLabel lmodif = new QLabel( dateFormat.format(fileinfo.lastModified().getTime()), tab1 );
- lmodif.setFrameStyle( QFrame.Panel | QFrame.Sunken );
+ new TQLabel( "Last Modified:", tab1 );
+ TQLabel lmodif = new TQLabel( dateFormat.format(fileinfo.lastModified().getTime()), tab1 );
+ lmodif.setFrameStyle( TQFrame.Panel | TQFrame.Sunken );
addTab( tab1, "General" );
}
void setupTab2()
{
- QVBox tab2 = new QVBox( this );
+ TQVBox tab2 = new TQVBox( this );
tab2.setMargin( 5 );
- QButtonGroup bg = new QButtonGroup( 1, QGroupBox.Horizontal, "Permissions", tab2 );
+ TQButtonGroup bg = new TQButtonGroup( 1, TQGroupBox.Horizontal, "Permissions", tab2 );
- QCheckBox readable = new QCheckBox( "Readable", bg );
+ TQCheckBox readable = new TQCheckBox( "Readable", bg );
if ( fileinfo.isReadable() )
readable.setChecked( true );
- QCheckBox writable = new QCheckBox( "Writeable", bg );
+ TQCheckBox writable = new TQCheckBox( "Writeable", bg );
if ( fileinfo.isWritable() )
writable.setChecked( true );
- QCheckBox executable = new QCheckBox( "Executable", bg );
+ TQCheckBox executable = new TQCheckBox( "Executable", bg );
if ( fileinfo.isExecutable() )
executable.setChecked( true );
- QButtonGroup bg2 = new QButtonGroup( 2, QGroupBox.Horizontal, "Owner", tab2 );
+ TQButtonGroup bg2 = new TQButtonGroup( 2, TQGroupBox.Horizontal, "Owner", tab2 );
- new QLabel( "Owner", bg2 );
- QLabel owner = new QLabel( fileinfo.owner(), bg2 );
- owner.setFrameStyle( QFrame.Panel | QFrame.Sunken );
+ new TQLabel( "Owner", bg2 );
+ TQLabel owner = new TQLabel( fileinfo.owner(), bg2 );
+ owner.setFrameStyle( TQFrame.Panel | TQFrame.Sunken );
- new QLabel( "Group", bg2 );
- QLabel group = new QLabel( fileinfo.group(), bg2 );
- group.setFrameStyle( QFrame.Panel | QFrame.Sunken );
+ new TQLabel( "Group", bg2 );
+ TQLabel group = new TQLabel( fileinfo.group(), bg2 );
+ group.setFrameStyle( TQFrame.Panel | TQFrame.Sunken );
addTab( tab2, "Permissions" );
}
void setupTab3()
{
- QVBox tab3 = new QVBox( this );
+ TQVBox tab3 = new TQVBox( this );
tab3.setMargin( 5 );
tab3.setSpacing( 5 );
- new QLabel( "Open " + filename + " with:", tab3 );
+ new TQLabel( "Open " + filename + " with:", tab3 );
- QListBox prgs = new QListBox( tab3 );
+ TQListBox prgs = new TQListBox( tab3 );
for ( int i = 0; i < 30; i++ ) {
String prg = "Application " + i;
prgs.insertItem( prg );
}
prgs.setCurrentItem( 3 );
- new QCheckBox( "Open files with the extension '" + fileinfo.extension() + "' always with this application", tab3 );
+ new TQCheckBox( "Open files with the extension '" + fileinfo.extension() + "' always with this application", tab3 );
addTab( tab3, "Applications" );
}