[go: up one dir, main page]

File: tostoragedatafileui.cpp

package info (click to toggle)
tora 1.3.21-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 14,252 kB
  • ctags: 10,397
  • sloc: cpp: 108,822; sh: 10,861; makefile: 766; xml: 69; perl: 6
file content (144 lines) | stat: -rw-r--r-- 4,786 bytes parent folder | download
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/****************************************************************************
** Form implementation generated from reading ui file 'tostoragedatafileui.ui'
**
** Created: Mon Feb 20 12:46:40 2006
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.4   edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "tostoragedatafileui.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qgroupbox.h>
#include <qcheckbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include "tofilesize.h"

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

    NameLabel = new QLabel( this, "NameLabel" );

    toStorageDatafileUILayout->addMultiCellWidget( NameLabel, 0, 0, 0, 2 );

    Name = new QLineEdit( this, "Name" );

    toStorageDatafileUILayout->addMultiCellWidget( Name, 1, 1, 0, 2 );

    TextLabel1_2 = new QLabel( this, "TextLabel1_2" );

    toStorageDatafileUILayout->addWidget( TextLabel1_2, 2, 0 );

    PushButton1 = new QPushButton( this, "PushButton1" );

    toStorageDatafileUILayout->addWidget( PushButton1, 3, 2 );

    Filename = new QLineEdit( this, "Filename" );

    toStorageDatafileUILayout->addWidget( Filename, 3, 0 );

    InitialSize = new toFilesize( this, "InitialSize" );

    toStorageDatafileUILayout->addMultiCellWidget( InitialSize, 4, 4, 0, 2 );
    Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    toStorageDatafileUILayout->addItem( Spacer1, 7, 1 );

    AutoExtendGroup = new QGroupBox( this, "AutoExtendGroup" );
    AutoExtendGroup->setColumnLayout(0, Qt::Vertical );
    AutoExtendGroup->layout()->setSpacing( 6 );
    AutoExtendGroup->layout()->setMargin( 11 );
    AutoExtendGroupLayout = new QGridLayout( AutoExtendGroup->layout() );
    AutoExtendGroupLayout->setAlignment( Qt::AlignTop );

    AutoExtend = new QCheckBox( AutoExtendGroup, "AutoExtend" );

    AutoExtendGroupLayout->addWidget( AutoExtend, 0, 0 );

    UnlimitedMax = new QCheckBox( AutoExtendGroup, "UnlimitedMax" );
    UnlimitedMax->setEnabled( FALSE );

    AutoExtendGroupLayout->addWidget( UnlimitedMax, 2, 0 );

    MaximumSize = new toFilesize( AutoExtendGroup, "MaximumSize" );
    MaximumSize->setEnabled( FALSE );

    AutoExtendGroupLayout->addWidget( MaximumSize, 3, 0 );

    NextSize = new toFilesize( AutoExtendGroup, "NextSize" );
    NextSize->setEnabled( FALSE );

    AutoExtendGroupLayout->addWidget( NextSize, 1, 0 );

    toStorageDatafileUILayout->addMultiCellWidget( AutoExtendGroup, 6, 6, 0, 2 );
    languageChange();
    resize( QSize(580, 480).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( AutoExtend, SIGNAL( toggled(bool) ), this, SLOT( autoExtend(bool) ) );
    connect( UnlimitedMax, SIGNAL( toggled(bool) ), this, SLOT( maximumSize(bool) ) );
    connect( PushButton1, SIGNAL( clicked() ), this, SLOT( browseFile() ) );
    connect( Filename, SIGNAL( textChanged(const QString&) ), this, SLOT( valueChanged(const QString &) ) );

    // buddies
    NameLabel->setBuddy( Name );
    TextLabel1_2->setBuddy( Name );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void toStorageDatafileUI::languageChange()
{
    setCaption( tr( "Form1" ) );
    NameLabel->setText( tr( "&Tablespace name" ) );
    TextLabel1_2->setText( tr( "&Filename" ) );
    PushButton1->setText( tr( "&Browse" ) );
    AutoExtendGroup->setTitle( tr( "Auto extend" ) );
    AutoExtend->setText( tr( "&Auto extend datafile" ) );
    UnlimitedMax->setText( tr( "&Unlimited max size" ) );
}

void toStorageDatafileUI::browseFile()
{
    qWarning( "toStorageDatafileUI::browseFile(): Not implemented yet" );
}

void toStorageDatafileUI::autoExtend(bool)
{
    qWarning( "toStorageDatafileUI::autoExtend(bool): Not implemented yet" );
}

void toStorageDatafileUI::maximumSize(bool)
{
    qWarning( "toStorageDatafileUI::maximumSize(bool): Not implemented yet" );
}

void toStorageDatafileUI::valueChanged(const QString&)
{
    qWarning( "toStorageDatafileUI::valueChanged(const QString&): Not implemented yet" );
}