File: editfielddialogbase.cpp

package info (click to toggle)
aethera 0.9.3-7
  • links: PTS
  • area: main
  • in suites: woody
  • size: 8,588 kB
  • ctags: 7,282
  • sloc: cpp: 64,544; sh: 9,913; perl: 1,756; makefile: 1,680; python: 258
file content (64 lines) | stat: -rw-r--r-- 2,120 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
/****************************************************************************
** Form implementation generated from reading ui file 'uic/editfielddialogbase.ui'
**
** Created: Sun Nov 26 00:34:27 2000
**      by:  The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "editfielddialogbase.h"

#include <qlabel.h>
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/* 
 *  Constructs a EditFieldDialogBase which is a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f' 
 *
 *  The dialog will by default be modeless, unless you set 'modal' to
 *  TRUE to construct a modal dialog.
 */
EditFieldDialogBase::EditFieldDialogBase( QWidget* parent,  const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "Form1" );
    resize( 275, 120 ); 
    setMaximumSize( QSize( 275, 120 ) );
    setMinimumSize( QSize( 275, 120 ) );
    setCaption( tr( "Form1"  ) );

    okButton = new QPushButton( this, "okButton" );
    okButton->setGeometry( QRect( 5, 80, 125, 31 ) ); 
    okButton->setText( tr( "&Ok"  ) );

    cancelButton = new QPushButton( this, "cancelButton" );
    cancelButton->setGeometry( QRect( 140, 80, 125, 31 ) ); 
    cancelButton->setText( tr( "&Cancel"  ) );
    cancelButton->setDefault( FALSE );

    lineEdit = new QLineEdit( this, "lineEdit" );
    lineEdit->setGeometry( QRect( 10, 40, 250, 25 ) ); 

    textLabel = new QLabel( this, "textLabel" );
    textLabel->setGeometry( QRect( 11, 8, 251, 26 ) ); 
    textLabel->setText( tr( "TextLabel2"  ) );

    // signals and slots connections
    connect( okButton, SIGNAL( clicked() ), this, SLOT( accept() ) );
    connect( cancelButton, SIGNAL( clicked() ), this, SLOT( reject() ) );
}

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