summaryrefslogtreecommitdiffstats
path: root/kftpgrabber/src/widgets/kftpfiltereditorlayout.cpp
blob: 72f576fe5be4c8b758adf4f9d2c70fa5726c6655 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#include <tdelocale.h>
/****************************************************************************
** Form implementation generated from reading ui file '/home/kostko/development/kftpgrabber/src/widgets/kftpfiltereditorlayout.ui'
**
** Created: Mon Oct 20 16:14:00 2003
**      by: The User Interface Compiler ($Id: kftpfiltereditorlayout.cpp,v 1.1.1.1 2004/02/13 13:33:43 kostko Exp $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "kftpfiltereditorlayout.h"

#include <tqvariant.h>
#include <tqpushbutton.h>
#include <tqtabwidget.h>
#include <kpushbutton.h>
#include <tqheader.h>
#include <tdelistview.h>
#include <tqcheckbox.h>
#include <tqlabel.h>
#include <tqlayout.h>
#include <tqtooltip.h>
#include <tqwhatsthis.h>

/* 
 *  Constructs a KFTPFilterEditorLayout as a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f'.
 */
KFTPFilterEditorLayout::KFTPFilterEditorLayout( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "KFTPFilterEditorLayout" );
    KFTPFilterEditorLayoutLayout = new TQGridLayout( this, 1, 1, 11, 6, "KFTPFilterEditorLayoutLayout"); 

    tabWidget2 = new TQTabWidget( this, "tabWidget2" );

    tab = new TQWidget( tabWidget2, "tab" );
    tabLayout = new TQGridLayout( tab, 1, 1, 11, 6, "tabLayout"); 

    layout1 = new TQVBoxLayout( 0, 0, 6, "layout1"); 

    addPatternButton = new KPushButton( tab, "addPatternButton" );
    layout1->addWidget( addPatternButton );

    editPatternButton = new KPushButton( tab, "editPatternButton" );
    layout1->addWidget( editPatternButton );

    removePatternButton = new KPushButton( tab, "removePatternButton" );
    layout1->addWidget( removePatternButton );

    tabLayout->addLayout( layout1, 0, 1 );
    TQSpacerItem* spacer = new TQSpacerItem( 31, 111, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout->addItem( spacer, 1, 1 );

    layout2 = new TQVBoxLayout( 0, 0, 6, "layout2"); 

    patternList = new TDEListView( tab, "patternList" );
    patternList->addColumn( tr2i18n( "Pattern" ) );
    patternList->addColumn( tr2i18n( "Color" ) );
    layout2->addWidget( patternList );

    enabledCheck = new TQCheckBox( tab, "enabledCheck" );
    layout2->addWidget( enabledCheck );

    tabLayout->addMultiCellLayout( layout2, 0, 1, 0, 0 );
    tabWidget2->insertTab( tab, TQString("") );

    tab_2 = new TQWidget( tabWidget2, "tab_2" );

    textLabel1 = new TQLabel( tab_2, "textLabel1" );
    textLabel1->setGeometry( TQRect( 10, 10, 130, 20 ) );
    tabWidget2->insertTab( tab_2, TQString("") );

    tab_3 = new TQWidget( tabWidget2, "tab_3" );

    textLabel1_2 = new TQLabel( tab_3, "textLabel1_2" );
    textLabel1_2->setGeometry( TQRect( 10, 10, 130, 20 ) );
    tabWidget2->insertTab( tab_3, TQString("") );

    KFTPFilterEditorLayoutLayout->addWidget( tabWidget2, 0, 0 );
    languageChange();
    resize( TQSize(456, 299).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

/*
 *  Destroys the object and frees any allocated resources
 */
KFTPFilterEditorLayout::~KFTPFilterEditorLayout()
{
    // no need to delete child widgets, TQt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KFTPFilterEditorLayout::languageChange()
{
    setCaption( tr2i18n( "Form1" ) );
    addPatternButton->setText( tr2i18n( "Add pattern" ) );
    editPatternButton->setText( tr2i18n( "Edit" ) );
    removePatternButton->setText( tr2i18n( "Remove" ) );
    patternList->header()->setLabel( 0, tr2i18n( "Pattern" ) );
    patternList->header()->setLabel( 1, tr2i18n( "Color" ) );
    enabledCheck->setText( tr2i18n( "Enabled" ) );
    tabWidget2->changeTab( tab, tr2i18n( "Highlighting" ) );
    textLabel1->setText( tr2i18n( "<b>Not yet implemented.</b>" ) );
    tabWidget2->changeTab( tab_2, tr2i18n( "Skip List" ) );
    textLabel1_2->setText( tr2i18n( "<b>Not yet implemented.</b>" ) );
    tabWidget2->changeTab( tab_3, tr2i18n( "ASCII xtensions" ) );
}

#include "kftpfiltereditorlayout.moc"