~ubuntu-branches/ubuntu/hardy/xxdiff/hardy

« back to all changes in this revision

Viewing changes to src/qt2/markersWidgetBase.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Tomas Pospisek
  • Date: 2005-03-29 08:43:56 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050329084356-nkwv8jf18nc7u5qf
Tags: 1:3.1-3
re-upload

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
** Form implementation generated from reading ui file 'markersWidgetBase.ui'
 
3
**
 
4
** Created: Fri Jan 9 17:31:24 2004
 
5
**      by: The User Interface Compiler ($Id: markersWidgetBase.cpp,v 1.1 2004/01/12 06:16:16 blais Exp $)
 
6
**
 
7
** WARNING! All changes made in this file will be lost!
 
8
****************************************************************************/
 
9
 
 
10
#include "markersWidgetBase.h"
 
11
 
 
12
#include <qvariant.h>
 
13
#include <qpushbutton.h>
 
14
#include <qlabel.h>
 
15
#include <qbuttongroup.h>
 
16
#include <qradiobutton.h>
 
17
#include <qcheckbox.h>
 
18
#include <qlineedit.h>
 
19
#include <qlayout.h>
 
20
#include <qtooltip.h>
 
21
#include <qwhatsthis.h>
 
22
 
 
23
/*
 
24
 *  Constructs a XxMarkersWidgetBase as a child of 'parent', with the
 
25
 *  name 'name' and widget flags set to 'f'.
 
26
 */
 
27
XxMarkersWidgetBase::XxMarkersWidgetBase( QWidget* parent, const char* name, WFlags fl )
 
28
    : QWidget( parent, name, fl )
 
29
{
 
30
    if ( !name )
 
31
        setName( "XxMarkersWidgetBase" );
 
32
    XxMarkersWidgetBaseLayout = new QVBoxLayout( this, 11, 6, "XxMarkersWidgetBaseLayout"); 
 
33
 
 
34
    TextLabel1_2 = new QLabel( this, "TextLabel1_2" );
 
35
    QFont TextLabel1_2_font(  TextLabel1_2->font() );
 
36
    TextLabel1_2_font.setFamily( "helvetica" );
 
37
    TextLabel1_2_font.setPointSize( 14 );
 
38
    TextLabel1_2->setFont( TextLabel1_2_font ); 
 
39
    TextLabel1_2->setAlignment( int( QLabel::AlignCenter ) );
 
40
    XxMarkersWidgetBaseLayout->addWidget( TextLabel1_2 );
 
41
 
 
42
    _buttongroup = new QButtonGroup( this, "_buttongroup" );
 
43
    _buttongroup->setColumnLayout(0, Qt::Vertical );
 
44
    _buttongroup->layout()->setSpacing( 6 );
 
45
    _buttongroup->layout()->setMargin( 11 );
 
46
    _buttongroupLayout = new QVBoxLayout( _buttongroup->layout() );
 
47
    _buttongroupLayout->setAlignment( Qt::AlignTop );
 
48
 
 
49
    _checkboxConflicts = new QRadioButton( _buttongroup, "_checkboxConflicts" );
 
50
    _buttongroupLayout->addWidget( _checkboxConflicts );
 
51
 
 
52
    Layout3 = new QHBoxLayout( 0, 0, 6, "Layout3"); 
 
53
 
 
54
    _checkboxConditionals = new QRadioButton( _buttongroup, "_checkboxConditionals" );
 
55
    Layout3->addWidget( _checkboxConditionals );
 
56
 
 
57
    _removeEmptyConditionals = new QCheckBox( _buttongroup, "_removeEmptyConditionals" );
 
58
    Layout3->addWidget( _removeEmptyConditionals );
 
59
    _buttongroupLayout->addLayout( Layout3 );
 
60
 
 
61
    Layout13 = new QHBoxLayout( 0, 0, 6, "Layout13"); 
 
62
 
 
63
    _labelConditional1 = new QLabel( _buttongroup, "_labelConditional1" );
 
64
    Layout13->addWidget( _labelConditional1 );
 
65
 
 
66
    _lineeditConditional1 = new QLineEdit( _buttongroup, "_lineeditConditional1" );
 
67
    Layout13->addWidget( _lineeditConditional1 );
 
68
    _buttongroupLayout->addLayout( Layout13 );
 
69
 
 
70
    Layout13_2 = new QHBoxLayout( 0, 0, 6, "Layout13_2"); 
 
71
 
 
72
    _labelConditional2 = new QLabel( _buttongroup, "_labelConditional2" );
 
73
    Layout13_2->addWidget( _labelConditional2 );
 
74
 
 
75
    _lineeditConditional2 = new QLineEdit( _buttongroup, "_lineeditConditional2" );
 
76
    Layout13_2->addWidget( _lineeditConditional2 );
 
77
    _buttongroupLayout->addLayout( Layout13_2 );
 
78
 
 
79
    Layout13_2_2 = new QHBoxLayout( 0, 0, 6, "Layout13_2_2"); 
 
80
 
 
81
    _labelConditional3 = new QLabel( _buttongroup, "_labelConditional3" );
 
82
    Layout13_2_2->addWidget( _labelConditional3 );
 
83
 
 
84
    _lineeditConditional3 = new QLineEdit( _buttongroup, "_lineeditConditional3" );
 
85
    Layout13_2_2->addWidget( _lineeditConditional3 );
 
86
    _buttongroupLayout->addLayout( Layout13_2_2 );
 
87
    XxMarkersWidgetBaseLayout->addWidget( _buttongroup );
 
88
    languageChange();
 
89
    resize( QSize(537, 253).expandedTo(minimumSizeHint()) );
 
90
    clearWState( WState_Polished );
 
91
}
 
92
 
 
93
/*
 
94
 *  Destroys the object and frees any allocated resources
 
95
 */
 
96
XxMarkersWidgetBase::~XxMarkersWidgetBase()
 
97
{
 
98
    // no need to delete child widgets, Qt does it all for us
 
99
}
 
100
 
 
101
/*
 
102
 *  Sets the strings of the subwidgets using the current
 
103
 *  language.
 
104
 */
 
105
void XxMarkersWidgetBase::languageChange()
 
106
{
 
107
    setCaption( tr( "Form3" ) );
 
108
    TextLabel1_2->setText( tr( "Some regions were found that are still UNSELECTED." ) );
 
109
    _buttongroup->setTitle( tr( "Unselected lines" ) );
 
110
    _checkboxConflicts->setText( tr( "Save as merge conflicts" ) );
 
111
    _checkboxConditionals->setText( tr( "Save with conditionals" ) );
 
112
    _removeEmptyConditionals->setText( tr( "Remove empty conditionals" ) );
 
113
    _labelConditional1->setText( tr( "Conditional variable:" ) );
 
114
    _lineeditConditional1->setText( tr( "FILE1" ) );
 
115
    _labelConditional2->setText( tr( "Conditional variable:" ) );
 
116
    _lineeditConditional2->setText( tr( "FILE2" ) );
 
117
    _labelConditional3->setText( tr( "Conditional variable:" ) );
 
118
    _lineeditConditional3->setText( tr( "FILE3" ) );
 
119
}
 
120