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
|
/****************************************************************************
** Form implementation generated from reading ui file 'tohelpaddfileui.ui'
**
** Created: Mon Feb 20 12:46:38 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 "tohelpaddfileui.h"
#include <qvariant.h>
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qframe.h>
#include <qlabel.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
/*
* Constructs a toHelpAddFileUI as 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.
*/
toHelpAddFileUI::toHelpAddFileUI( QWidget* parent, const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, fl )
{
if ( !name )
setName( "toHelpAddFileUI" );
toHelpAddFileUILayout = new QGridLayout( this, 1, 1, 11, 6, "toHelpAddFileUILayout");
Filename = new QLineEdit( this, "Filename" );
toHelpAddFileUILayout->addMultiCellWidget( Filename, 3, 3, 0, 1 );
Browse = new QPushButton( this, "Browse" );
toHelpAddFileUILayout->addWidget( Browse, 3, 2 );
Root = new QLineEdit( this, "Root" );
toHelpAddFileUILayout->addMultiCellWidget( Root, 1, 1, 0, 2 );
Line1 = new QFrame( this, "Line1" );
Line1->setFrameStyle( QFrame::HLine | QFrame::Sunken );
toHelpAddFileUILayout->addMultiCellWidget( Line1, 4, 4, 0, 2 );
Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
toHelpAddFileUILayout->addItem( Spacer1, 5, 0 );
PushButton2_2 = new QPushButton( this, "PushButton2_2" );
toHelpAddFileUILayout->addWidget( PushButton2_2, 5, 2 );
OkButton = new QPushButton( this, "OkButton" );
OkButton->setDefault( TRUE );
toHelpAddFileUILayout->addWidget( OkButton, 5, 1 );
TextLabel1_2 = new QLabel( this, "TextLabel1_2" );
toHelpAddFileUILayout->addMultiCellWidget( TextLabel1_2, 2, 2, 0, 2 );
TextLabel1 = new QLabel( this, "TextLabel1" );
toHelpAddFileUILayout->addMultiCellWidget( TextLabel1, 0, 0, 0, 2 );
languageChange();
resize( QSize(434, 164).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// signals and slots connections
connect( OkButton, SIGNAL( clicked() ), this, SLOT( accept() ) );
connect( PushButton2_2, SIGNAL( clicked() ), this, SLOT( reject() ) );
connect( Browse, SIGNAL( clicked() ), this, SLOT( browse() ) );
connect( Root, SIGNAL( textChanged(const QString&) ), this, SLOT( valid() ) );
connect( Filename, SIGNAL( textChanged(const QString&) ), this, SLOT( valid() ) );
// tab order
setTabOrder( Root, Filename );
setTabOrder( Filename, Browse );
setTabOrder( Browse, OkButton );
setTabOrder( OkButton, PushButton2_2 );
// buddies
TextLabel1_2->setBuddy( Root );
TextLabel1->setBuddy( Root );
}
/*
* Destroys the object and frees any allocated resources
*/
toHelpAddFileUI::~toHelpAddFileUI()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void toHelpAddFileUI::languageChange()
{
setCaption( tr( "Add help directory" ) );
Browse->setText( tr( "&Browse" ) );
PushButton2_2->setText( tr( "Canel" ) );
OkButton->setText( tr( "&Ok" ) );
TextLabel1_2->setText( tr( "&Table of contents file" ) );
TextLabel1->setText( tr( "&Title" ) );
}
void toHelpAddFileUI::browse()
{
qWarning( "toHelpAddFileUI::browse(): Not implemented yet" );
}
void toHelpAddFileUI::valid()
{
qWarning( "toHelpAddFileUI::valid(): Not implemented yet" );
}
|