diff options
Diffstat (limited to 'tqtinterface/qt4/tools/linguist/tutorial')
15 files changed, 0 insertions, 388 deletions
diff --git a/tqtinterface/qt4/tools/linguist/tutorial/tt1/main.cpp b/tqtinterface/qt4/tools/linguist/tutorial/tt1/main.cpp deleted file mode 100644 index 27373be..0000000 --- a/tqtinterface/qt4/tools/linguist/tutorial/tt1/main.cpp +++ /dev/null @@ -1,25 +0,0 @@ -/**************************************************************** -** -** Translation tutorial 1 -** -****************************************************************/ - -#include <tqapplication.h> -#include <tqpushbutton.h> -#include <tqtranslator.h> - - -int main( int argc, char **argv ) -{ - TQApplication app( argc, argv ); - - TQTranslator translator( 0 ); - translator.load( "tt1_la", "." ); - app.installTranslator( &translator ); - - TQPushButton hello( TQPushButton::tr("Hello world!"), 0 ); - - app.setMainWidget( &hello ); - hello.show(); - return app.exec(); -} diff --git a/tqtinterface/qt4/tools/linguist/tutorial/tt1/tt1.pro b/tqtinterface/qt4/tools/linguist/tutorial/tt1/tt1.pro deleted file mode 100644 index 3b5249c..0000000 --- a/tqtinterface/qt4/tools/linguist/tutorial/tt1/tt1.pro +++ /dev/null @@ -1,4 +0,0 @@ -TEMPLATE = app -CONFIG += qt warn_on -SOURCES = main.cpp -TRANSLATIONS = tt1_la.ts diff --git a/tqtinterface/qt4/tools/linguist/tutorial/tt2/arrowpad.cpp b/tqtinterface/qt4/tools/linguist/tutorial/tt2/arrowpad.cpp deleted file mode 100644 index 8c48018..0000000 --- a/tqtinterface/qt4/tools/linguist/tutorial/tt2/arrowpad.cpp +++ /dev/null @@ -1,31 +0,0 @@ -/**************************************************************** -** -** Implementation of ArrowPad class, translation tutorial 2 -** -****************************************************************/ - -#include "arrowpad.h" - -#include <tqpushbutton.h> - -ArrowPad::ArrowPad( TQWidget *parent, const char *name ) - : TQGrid( 3, Qt::Horizontal, parent, name ) -{ - setMargin( 10 ); - setSpacing( 10 ); - - skip(); - (void) new TQPushButton( tqtr("&Up"), this ); - skip(); - (void) new TQPushButton( tqtr("&Left"), this ); - skip(); - (void) new TQPushButton( tqtr("&Right"), this ); - skip(); - (void) new TQPushButton( tqtr("&Down"), this ); - skip(); -} - -void ArrowPad::skip() -{ - (void) new TQWidget( this ); -} diff --git a/tqtinterface/qt4/tools/linguist/tutorial/tt2/arrowpad.h b/tqtinterface/qt4/tools/linguist/tutorial/tt2/arrowpad.h deleted file mode 100644 index 13c061d..0000000 --- a/tqtinterface/qt4/tools/linguist/tutorial/tt2/arrowpad.h +++ /dev/null @@ -1,22 +0,0 @@ -/**************************************************************** -** -** Definition of ArrowPad class, translation tutorial 2 -** -****************************************************************/ - -#ifndef ARROWPAD_H -#define ARROWPAD_H - -#include <tqgrid.h> - -class ArrowPad : public TQGrid -{ - TQ_OBJECT -public: - ArrowPad( TQWidget *parent = 0, const char *name = 0 ); - -private: - void skip(); -}; - -#endif diff --git a/tqtinterface/qt4/tools/linguist/tutorial/tt2/main.cpp b/tqtinterface/qt4/tools/linguist/tutorial/tt2/main.cpp deleted file mode 100644 index f4cbea9..0000000 --- a/tqtinterface/qt4/tools/linguist/tutorial/tt2/main.cpp +++ /dev/null @@ -1,26 +0,0 @@ -/**************************************************************** -** -** Translation tutorial 2 -** -****************************************************************/ - -#include "mainwindow.h" - -#include <tqapplication.h> -#include <tqstring.h> -#include <tqtextcodec.h> -#include <tqtranslator.h> - -int main( int argc, char **argv ) -{ - TQApplication app( argc, argv ); - - TQTranslator translator( 0 ); - translator.load( TQString("tt2_") + TQTextCodec::locale(), "." ); - app.installTranslator( &translator ); - - MainWindow *mw = new MainWindow; - app.setMainWidget( mw ); - mw->show(); - return app.exec(); -} diff --git a/tqtinterface/qt4/tools/linguist/tutorial/tt2/mainwindow.cpp b/tqtinterface/qt4/tools/linguist/tutorial/tt2/mainwindow.cpp deleted file mode 100644 index 41dd7d1..0000000 --- a/tqtinterface/qt4/tools/linguist/tutorial/tt2/mainwindow.cpp +++ /dev/null @@ -1,26 +0,0 @@ -/**************************************************************** -** -** Implementation of MainWindow class, translation tutorial 2 -** -****************************************************************/ - -#include "arrowpad.h" -#include "mainwindow.h" - -#include <tqaccel.h> -#include <tqapplication.h> -#include <tqmenubar.h> -#include <tqpopupmenu.h> - -MainWindow::MainWindow( TQWidget *parent, const char *name ) - : TQMainWindow( parent, name ) -{ - ArrowPad *ap = new ArrowPad( this, "arrow pad" ); - setCentralWidget( ap ); - - TQPopupMenu *file = new TQPopupMenu( this ); - file->insertItem( tqtr("E&xit"), tqApp, TQT_SLOT(quit()), - tqtr("Ctrl+Q", "Quit") ); - menuBar()->insertItem( tqtr("&File"), file ); - menuBar()->setSeparator( TQMenuBar::InWindowsStyle ); -} diff --git a/tqtinterface/qt4/tools/linguist/tutorial/tt2/mainwindow.h b/tqtinterface/qt4/tools/linguist/tutorial/tt2/mainwindow.h deleted file mode 100644 index 38209c6..0000000 --- a/tqtinterface/qt4/tools/linguist/tutorial/tt2/mainwindow.h +++ /dev/null @@ -1,19 +0,0 @@ -/**************************************************************** -** -** Definition of MainWindow class, translation tutorial 2 -** -****************************************************************/ - -#ifndef MAINWINDOW_H -#define MAINWINDOW_H - -#include <tqmainwindow.h> - -class MainWindow : public TQMainWindow -{ - TQ_OBJECT -public: - MainWindow( TQWidget *parent = 0, const char *name = 0 ); -}; - -#endif diff --git a/tqtinterface/qt4/tools/linguist/tutorial/tt2/tt2.pro b/tqtinterface/qt4/tools/linguist/tutorial/tt2/tt2.pro deleted file mode 100644 index 8c1ea6d..0000000 --- a/tqtinterface/qt4/tools/linguist/tutorial/tt2/tt2.pro +++ /dev/null @@ -1,9 +0,0 @@ -TEMPLATE = app -CONFIG += qt warn_on -HEADERS = arrowpad.h \ - mainwindow.h -SOURCES = arrowpad.cpp \ - main.cpp \ - mainwindow.cpp -TRANSLATIONS = tt2_fr.ts \ - tt2_nl.ts diff --git a/tqtinterface/qt4/tools/linguist/tutorial/tt3/main.cpp b/tqtinterface/qt4/tools/linguist/tutorial/tt3/main.cpp deleted file mode 100644 index 141b8c8..0000000 --- a/tqtinterface/qt4/tools/linguist/tutorial/tt3/main.cpp +++ /dev/null @@ -1,26 +0,0 @@ -/**************************************************************** -** -** Translation tutorial 3 -** -****************************************************************/ - -#include "mainwindow.h" - -#include <tqapplication.h> -#include <tqstring.h> -#include <tqtextcodec.h> -#include <tqtranslator.h> - -int main( int argc, char **argv ) -{ - TQApplication app( argc, argv ); - - TQTranslator translator( 0 ); - translator.load( TQString("tt3_") + TQTextCodec::locale(), "." ); - app.installTranslator( &translator ); - - MainWindow *mw = new MainWindow; - app.setMainWidget( mw ); - mw->show(); - return app.exec(); -} diff --git a/tqtinterface/qt4/tools/linguist/tutorial/tt3/mainwindow.cpp b/tqtinterface/qt4/tools/linguist/tutorial/tt3/mainwindow.cpp deleted file mode 100644 index 97adb8d..0000000 --- a/tqtinterface/qt4/tools/linguist/tutorial/tt3/mainwindow.cpp +++ /dev/null @@ -1,47 +0,0 @@ -/**************************************************************** -** -** Implementation of MainWindow class, translation tutorial 3 -** -****************************************************************/ - -#include "mainwindow.h" -#include "printpanel.h" - -#include <tqaccel.h> -#include <tqapplication.h> -#include <tqmenubar.h> -#include <tqmessagebox.h> -#include <tqpopupmenu.h> - -MainWindow::MainWindow( TQWidget *parent, const char *name ) - : TQMainWindow( parent, name ) -{ - setCaption( tqtr("Troll Print 1.0") ); - - PrintPanel *pp = new PrintPanel( this ); - setCentralWidget( pp ); - - TQPopupMenu *file = new TQPopupMenu( this ); - file->insertItem( tqtr("E&xit"), tqApp, TQT_SLOT(quit()), - tqtr("Ctrl+Q", "Quit") ); - TQPopupMenu *help = new TQPopupMenu( this ); - help->insertItem( tqtr("&About"), this, TQT_SLOT(about()), Qt::Key_F1 ); - help->insertItem( tqtr("About &TQt"), this, TQT_SLOT(aboutTQt()) ); - - menuBar()->insertItem( tqtr("&File"), file ); - menuBar()->insertSeparator(); - menuBar()->insertItem( tqtr("&Help"), help ); - menuBar()->setSeparator( TQMenuBar::InWindowsStyle ); -} - -void MainWindow::about() -{ - TQMessageBox::information( this, tqtr("About Troll Print 1.0"), - tqtr("Troll Print 1.0.\n\n" - "Copyright 1999 Macroshaft, Inc.") ); -} - -void MainWindow::aboutTQt() -{ - TQMessageBox::aboutTQt( this ); -} diff --git a/tqtinterface/qt4/tools/linguist/tutorial/tt3/mainwindow.h b/tqtinterface/qt4/tools/linguist/tutorial/tt3/mainwindow.h deleted file mode 100644 index b142566..0000000 --- a/tqtinterface/qt4/tools/linguist/tutorial/tt3/mainwindow.h +++ /dev/null @@ -1,24 +0,0 @@ -/**************************************************************** -** -** Definition of MainWindow class, translation tutorial 3 -** -****************************************************************/ - -#ifndef MAINWINDOW_H -#define MAINWINDOW_H - -#include <tqmainwindow.h> - -class MainWindow : public TQMainWindow -{ - Q_OBJECT - TQ_OBJECT -public: - MainWindow( TQWidget *parent = 0, const char *name = 0 ); - -private Q_SLOTS: - void about(); - void aboutTQt(); -}; - -#endif diff --git a/tqtinterface/qt4/tools/linguist/tutorial/tt3/printpanel.cpp b/tqtinterface/qt4/tools/linguist/tutorial/tt3/printpanel.cpp deleted file mode 100644 index 2eef0cb..0000000 --- a/tqtinterface/qt4/tools/linguist/tutorial/tt3/printpanel.cpp +++ /dev/null @@ -1,37 +0,0 @@ -/**************************************************************** -** -** Implementation of PrintPanel class, translation tutorial 3 -** -****************************************************************/ - -#include "printpanel.h" - -#include <tqlabel.h> -#include <tqradiobutton.h> -#include <tqhbuttongroup.h> - -PrintPanel::PrintPanel( TQWidget *parent, const char *name ) - : TQVBox( parent, name ) -{ - setMargin( 10 ); - setSpacing( 10 ); - -/* - TQLabel *lab = new TQLabel( tr("<b>TROLL PRINT</b>"), this ); - lab->tqsetAlignment( AlignCenter ); -*/ - - TQRadioButton *but; - - TQHButtonGroup *twoSided = new TQHButtonGroup( this ); - twoSided->setTitle( tr("2-sided") ); - but = new TQRadioButton( tr("Enabled"), twoSided ); - but = new TQRadioButton( tr("Disabled"), twoSided ); - but->toggle(); - - TQHButtonGroup *colors = new TQHButtonGroup( this ); - colors->setTitle( tr("Colors") ); - but = new TQRadioButton( tr("Enabled"), colors ); - but = new TQRadioButton( tr("Disabled"), colors ); - but->toggle(); -} diff --git a/tqtinterface/qt4/tools/linguist/tutorial/tt3/printpanel.h b/tqtinterface/qt4/tools/linguist/tutorial/tt3/printpanel.h deleted file mode 100644 index 906e899..0000000 --- a/tqtinterface/qt4/tools/linguist/tutorial/tt3/printpanel.h +++ /dev/null @@ -1,19 +0,0 @@ -/**************************************************************** -** -** Definition of PrintPanel class, translation tutorial 3 -** -****************************************************************/ - -#ifndef PRINTPANEL_H -#define PRINTPANEL_H - -#include <tqvbox.h> - -class PrintPanel : public TQVBox -{ - TQ_OBJECT -public: - PrintPanel( TQWidget *parent = 0, const char *name = 0 ); -}; - -#endif diff --git a/tqtinterface/qt4/tools/linguist/tutorial/tt3/tt3.pro b/tqtinterface/qt4/tools/linguist/tutorial/tt3/tt3.pro deleted file mode 100644 index c219d1e..0000000 --- a/tqtinterface/qt4/tools/linguist/tutorial/tt3/tt3.pro +++ /dev/null @@ -1,8 +0,0 @@ -TEMPLATE = app -CONFIG += qt warn_on -HEADERS = mainwindow.h \ - printpanel.h -SOURCES = main.cpp \ - mainwindow.cpp \ - printpanel.cpp -TRANSLATIONS = tt3_pt.ts diff --git a/tqtinterface/qt4/tools/linguist/tutorial/tt3/tt3_pt.ts b/tqtinterface/qt4/tools/linguist/tutorial/tt3/tt3_pt.ts deleted file mode 100644 index cf8ff4f..0000000 --- a/tqtinterface/qt4/tools/linguist/tutorial/tt3/tt3_pt.ts +++ /dev/null @@ -1,65 +0,0 @@ -<!DOCTYPE TS><TS> -<context> - <name>MainWindow</name> - <message> - <source>Troll Print 1.0</source> - <translation>Troll Imprimir 1.0</translation> - </message> - <message> - <source>E&xit</source> - <translation>&Sair</translation> - </message> - <message> - <source>&About</source> - <translation>&Sobre</translation> - </message> - <message> - <source>About &Qt</source> - <translation>Sobre &Qt</translation> - </message> - <message> - <source>&File</source> - <translation>&Arquivo</translation> - </message> - <message> - <source>&Help</source> - <translation>A&juda</translation> - </message> - <message> - <source>About Troll Print 1.0</source> - <translation>Sobre Troll Imprimir 1.0</translation> - </message> - <message> - <source>Troll Print 1.0. - -Copyright 1999 Macroshaft, Inc.</source> - <translation>Troll Imprimir 1.0 - -Copyright 1999 Macroshaft, Inc.</translation> - </message> - <message> - <source>Ctrl+Q</source> - <comment>Quit</comment> - <translation>Ctrl+Q</translation> - </message> -</context> -<context> - <name>PrintPanel</name> - <message> - <source>2-sided</source> - <translation>2-lados</translation> - </message> - <message> - <source>Enabled</source> - <translation>Ativado</translation> - </message> - <message> - <source>Disabled</source> - <translation>Desativado</translation> - </message> - <message> - <source>Colors</source> - <translation>Cores</translation> - </message> -</context> -</TS> |