Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

prefixsettingsbase.cpp

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** Form implementation generated from reading ui file 'prefixsettingsbase.ui'
00003 **
00004 ** Created: Sat May 10 11:58:03 2003
00005 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.1.2   edited Dec 19 11:45 $)
00006 **
00007 ** WARNING! All changes made in this file will be lost!
00008 ****************************************************************************/
00009 
00010 #include "prefixsettingsbase.h"
00011 
00012 #include <qvariant.h>
00013 #include <qlistbox.h>
00014 #include <qtoolbutton.h>
00015 #include <qlabel.h>
00016 #include <qlineedit.h>
00017 #include <qlayout.h>
00018 #include <qtooltip.h>
00019 #include <qwhatsthis.h>
00020 
00021 /* 
00022  *  Constructs a PrefixSettingsBase as a child of 'parent', with the 
00023  *  name 'name' and widget flags set to 'f'.
00024  */
00025 PrefixSettingsBase::PrefixSettingsBase( QWidget* parent, const char* name, WFlags fl )
00026     : QWidget( parent, name, fl )
00027 {
00028     if ( !name )
00029   setName( "PrefixSettingsBase" );
00030     PrefixSettingsBaseLayout = new QGridLayout( this, 1, 1, 11, 6, "PrefixSettingsBaseLayout"); 
00031 
00032     prefix_box = new QListBox( this, "prefix_box" );
00033 
00034     PrefixSettingsBaseLayout->addMultiCellWidget( prefix_box, 0, 2, 0, 0 );
00035     QSpacerItem* spacer = new QSpacerItem( 0, 134, QSizePolicy::Minimum, QSizePolicy::Expanding );
00036     PrefixSettingsBaseLayout->addItem( spacer, 1, 1 );
00037 
00038     Layout4 = new QVBoxLayout( 0, 0, 6, "Layout4"); 
00039 
00040     add_button = new QToolButton( this, "add_button" );
00041     Layout4->addWidget( add_button );
00042 
00043     del_button = new QToolButton( this, "del_button" );
00044     Layout4->addWidget( del_button );
00045 
00046     PrefixSettingsBaseLayout->addLayout( Layout4, 2, 1 );
00047     QSpacerItem* spacer_2 = new QSpacerItem( 32, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
00048     PrefixSettingsBaseLayout->addItem( spacer_2, 0, 1 );
00049     QSpacerItem* spacer_3 = new QSpacerItem( 189, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
00050     PrefixSettingsBaseLayout->addMultiCell( spacer_3, 2, 2, 2, 3 );
00051 
00052     TextLabel1 = new QLabel( this, "TextLabel1" );
00053 
00054     PrefixSettingsBaseLayout->addWidget( TextLabel1, 0, 2 );
00055 
00056     name_edit = new QLineEdit( this, "name_edit" );
00057 
00058     PrefixSettingsBaseLayout->addWidget( name_edit, 0, 3 );
00059 
00060     TextLabel1_2 = new QLabel( this, "TextLabel1_2" );
00061 
00062     PrefixSettingsBaseLayout->addWidget( TextLabel1_2, 1, 3 );
00063     languageChange();
00064     resize( QSize(485, 276).expandedTo(minimumSizeHint()) );
00065     clearWState( WState_Polished );
00066 
00067     // signals and slots connections
00068     connect( add_button, SIGNAL( pressed() ), this, SLOT( slotAdd() ) );
00069     connect( del_button, SIGNAL( pressed() ), this, SLOT( slotDel() ) );
00070 
00071     // tab order
00072     setTabOrder( name_edit, prefix_box );
00073 }
00074 
00075 /*
00076  *  Destroys the object and frees any allocated resources
00077  */
00078 PrefixSettingsBase::~PrefixSettingsBase()
00079 {
00080     // no need to delete child widgets, Qt does it all for us
00081 }
00082 
00083 /*
00084  *  Sets the strings of the subwidgets using the current
00085  *  language.
00086  */
00087 void PrefixSettingsBase::languageChange()
00088 {
00089     setCaption( tr( "Form1" ) );
00090     add_button->setText( tr( "Add" ) );
00091     del_button->setText( tr( "Del" ) );
00092     TextLabel1->setText( tr( "Prefix" ) );
00093     TextLabel1_2->setText( tr( "This is for commands you would like\n"
00094 "to be automatically re-executed when \n"
00095 "your line is too long or your post\n"
00096 "contains several lines\n"
00097 "(%l is a joker for a following login)" ) );
00098 }
00099 
00100 void PrefixSettingsBase::slotDel()
00101 {
00102     qWarning( "PrefixSettingsBase::slotDel(): Not implemented yet" );
00103 }
00104 
00105 void PrefixSettingsBase::slotAdd()
00106 {
00107     qWarning( "PrefixSettingsBase::slotAdd(): Not implemented yet" );
00108 }
00109 

Generated on Sat May 10 15:09:27 2003 for qnet by doxygen1.3