summaryrefslogtreecommitdiffstats
path: root/src/Q_importdialog.cpp
blob: 4b5679b514531cbda299539039013c46e65447aa (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
#include <kdialog.h>
#include <tdelocale.h>
/****************************************************************************
** Form implementation generated from reading ui file '/home/mkulke/Development/kasablanca/src/Q_importdialog.ui'
**
** Created: Mo Jan 31 15:02:10 2005
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.3   edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "Q_importdialog.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

    ImportGroupBox = new TQButtonGroup( this, "ImportGroupBox" );
    ImportGroupBox->setColumnLayout(0, TQt::Vertical );
    ImportGroupBox->layout()->setSpacing( 6 );
    ImportGroupBox->layout()->setMargin( 11 );
    ImportGroupBoxLayout = new TQGridLayout( ImportGroupBox->layout() );
    ImportGroupBoxLayout->setAlignment( TQt::AlignTop );

    GftpRadioButton = new TQRadioButton( ImportGroupBox, "GftpRadioButton" );
    GftpRadioButton->setChecked( TRUE );

    ImportGroupBoxLayout->addWidget( GftpRadioButton, 0, 0 );

    KasablancaImportDialogLayout->addWidget( ImportGroupBox, 0, 0 );
    languageChange();
    resize( TQSize(231, 80).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KasablancaImportDialog::languageChange()
{
    setCaption( tr2i18n( "Import Bookmarks" ) );
    ImportGroupBox->setTitle( tr2i18n( "Import filter" ) );
    GftpRadioButton->setText( tr2i18n( "gFtp" ) );
}

#include "Q_importdialog.moc"