summaryrefslogtreecommitdiffstats
path: root/tools/linguist/tutorial/tt3/printpanel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/linguist/tutorial/tt3/printpanel.cpp')
-rw-r--r--tools/linguist/tutorial/tt3/printpanel.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/tools/linguist/tutorial/tt3/printpanel.cpp b/tools/linguist/tutorial/tt3/printpanel.cpp
new file mode 100644
index 000000000..c377efc26
--- /dev/null
+++ b/tools/linguist/tutorial/tt3/printpanel.cpp
@@ -0,0 +1,37 @@
+/****************************************************************
+**
+** Implementation of PrintPanel class, translation tutorial 3
+**
+****************************************************************/
+
+#include "printpanel.h"
+
+#include <qlabel.h>
+#include <qradiobutton.h>
+#include <qhbuttongroup.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->setAlignment( 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();
+}