summaryrefslogtreecommitdiffstats
path: root/tools/linguist/tutorial/tt3/printpanel.cpp
blob: 3f8f6eda4026a341185264bd3840fe14cabdf581 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/****************************************************************
**
** Implementation of PrintPanel class, translation tutorial 3
**
****************************************************************/

#include "printpanel.h"

#include <tqlabel.h>
#include <ntqradiobutton.h>
#include <ntqhbuttongroup.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();
}