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

urlsettingsbase.cpp

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** Form implementation generated from reading ui file 'urlsettingsbase.ui'
00003 **
00004 ** Created: Sat May 10 11:57:59 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 "urlsettingsbase.h"
00011 
00012 #include <qvariant.h>
00013 #include <qlineedit.h>
00014 #include <qlabel.h>
00015 #include <qlistbox.h>
00016 #include <qtoolbutton.h>
00017 #include <qlayout.h>
00018 #include <qtooltip.h>
00019 #include <qwhatsthis.h>
00020 
00021 /* 
00022  *  Constructs a UrlSettingsBase as a child of 'parent', with the 
00023  *  name 'name' and widget flags set to 'f'.
00024  */
00025 UrlSettingsBase::UrlSettingsBase( QWidget* parent, const char* name, WFlags fl )
00026     : QWidget( parent, name, fl )
00027 {
00028     if ( !name )
00029   setName( "UrlSettingsBase" );
00030     UrlSettingsBaseLayout = new QGridLayout( this, 1, 1, 11, 6, "UrlSettingsBaseLayout"); 
00031 
00032     prefix_edit = new QLineEdit( this, "prefix_edit" );
00033 
00034     UrlSettingsBaseLayout->addWidget( prefix_edit, 2, 4 );
00035 
00036     command_edit = new QLineEdit( this, "command_edit" );
00037 
00038     UrlSettingsBaseLayout->addWidget( command_edit, 4, 4 );
00039     QSpacerItem* spacer = new QSpacerItem( 37, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
00040     UrlSettingsBaseLayout->addItem( spacer, 4, 2 );
00041 
00042     TextLabel1 = new QLabel( this, "TextLabel1" );
00043 
00044     UrlSettingsBaseLayout->addWidget( TextLabel1, 1, 3 );
00045 
00046     TextLabel2 = new QLabel( this, "TextLabel2" );
00047 
00048     UrlSettingsBaseLayout->addWidget( TextLabel2, 2, 3 );
00049 
00050     urls_box = new QListBox( this, "urls_box" );
00051     urls_box->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)7, 0, 0, urls_box->sizePolicy().hasHeightForWidth() ) );
00052 
00053     UrlSettingsBaseLayout->addMultiCellWidget( urls_box, 1, 4, 0, 0 );
00054 
00055     name_edit = new QLineEdit( this, "name_edit" );
00056 
00057     UrlSettingsBaseLayout->addWidget( name_edit, 1, 4 );
00058 
00059     TextLabel3 = new QLabel( this, "TextLabel3" );
00060 
00061     UrlSettingsBaseLayout->addWidget( TextLabel3, 4, 3 );
00062 
00063     Layout8 = new QVBoxLayout( 0, 0, 6, "Layout8"); 
00064 
00065     add_button = new QToolButton( this, "add_button" );
00066     Layout8->addWidget( add_button );
00067 
00068     del_button = new QToolButton( this, "del_button" );
00069     Layout8->addWidget( del_button );
00070 
00071     UrlSettingsBaseLayout->addLayout( Layout8, 4, 1 );
00072     QSpacerItem* spacer_2 = new QSpacerItem( 72, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
00073     UrlSettingsBaseLayout->addMultiCell( spacer_2, 3, 3, 1, 2 );
00074     QSpacerItem* spacer_3 = new QSpacerItem( 72, 0, QSizePolicy::Expanding, QSizePolicy::Minimum );
00075     UrlSettingsBaseLayout->addMultiCell( spacer_3, 1, 1, 1, 2 );
00076 
00077     TextLabel2_2 = new QLabel( this, "TextLabel2_2" );
00078 
00079     UrlSettingsBaseLayout->addMultiCellWidget( TextLabel2_2, 0, 0, 0, 4 );
00080     languageChange();
00081     resize( QSize(395, 275).expandedTo(minimumSizeHint()) );
00082     clearWState( WState_Polished );
00083 
00084     // signals and slots connections
00085     connect( urls_box, SIGNAL( highlighted(const QString&) ), this, SLOT( slotUpdateInfo(const QString&) ) );
00086     connect( add_button, SIGNAL( pressed() ), this, SLOT( slotAdd() ) );
00087     connect( del_button, SIGNAL( pressed() ), this, SLOT( slotDel() ) );
00088 
00089     // tab order
00090     setTabOrder( name_edit, prefix_edit );
00091     setTabOrder( prefix_edit, command_edit );
00092     setTabOrder( command_edit, urls_box );
00093 }
00094 
00095 /*
00096  *  Destroys the object and frees any allocated resources
00097  */
00098 UrlSettingsBase::~UrlSettingsBase()
00099 {
00100     // no need to delete child widgets, Qt does it all for us
00101 }
00102 
00103 /*
00104  *  Sets the strings of the subwidgets using the current
00105  *  language.
00106  */
00107 void UrlSettingsBase::languageChange()
00108 {
00109     setCaption( tr( "Form2" ) );
00110     TextLabel1->setText( tr( "Name" ) );
00111     TextLabel2->setText( tr( "Prefix" ) );
00112     TextLabel3->setText( tr( "Command" ) );
00113     add_button->setText( tr( "Add" ) );
00114     del_button->setText( tr( "Del" ) );
00115     TextLabel2_2->setText( tr( "Here you can define your own url's, with associated action,\n"
00116 "executed from a shell.\n"
00117 "(%l is a joker for the url)" ) );
00118 }
00119 
00120 void UrlSettingsBase::slotDel()
00121 {
00122     qWarning( "UrlSettingsBase::slotDel(): Not implemented yet" );
00123 }
00124 
00125 void UrlSettingsBase::slotAdd()
00126 {
00127     qWarning( "UrlSettingsBase::slotAdd(): Not implemented yet" );
00128 }
00129 
00130 void UrlSettingsBase::slotUpdateInfo(const QString&)
00131 {
00132     qWarning( "UrlSettingsBase::slotUpdateInfo(const QString&): Not implemented yet" );
00133 }
00134 

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