00001 #include <kdialog.h>
00002 #include <klocale.h>
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #include "wdgscriptsmanagerbase.h"
00013
00014 #include <qvariant.h>
00015 #include <qheader.h>
00016 #include <klistview.h>
00017 #include <kpushbutton.h>
00018 #include <qframe.h>
00019 #include <qlayout.h>
00020 #include <qtooltip.h>
00021 #include <qwhatsthis.h>
00022 #include "ktoolbar.h"
00023
00024
00025
00026
00027
00028 WdgScriptsManagerBase::WdgScriptsManagerBase( QWidget* parent, const char* name, WFlags fl )
00029 : QWidget( parent, name, fl )
00030 {
00031 if ( !name )
00032 setName( "WdgScriptsManagerBase" );
00033 setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, sizePolicy().hasHeightForWidth() ) );
00034 setMinimumSize( QSize( 0, 0 ) );
00035 WdgScriptsManagerBaseLayout = new QVBoxLayout( this, 0, 6, "WdgScriptsManagerBaseLayout");
00036
00037 scriptsList = new KListView( this, "scriptsList" );
00038 scriptsList->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)2, (QSizePolicy::SizeType)2, 0, 0, scriptsList->sizePolicy().hasHeightForWidth() ) );
00039 WdgScriptsManagerBaseLayout->addWidget( scriptsList );
00040
00041 toolBar = new KToolBar( this, "toolBar" );
00042 WdgScriptsManagerBaseLayout->addWidget( toolBar );
00043
00044 layout1 = new QHBoxLayout( 0, 0, 6, "layout1");
00045
00046 btnExec = new KPushButton( this, "btnExec" );
00047 layout1->addWidget( btnExec );
00048
00049 line2 = new QFrame( this, "line2" );
00050 line2->setFrameShape( QFrame::VLine );
00051 line2->setFrameShadow( QFrame::Sunken );
00052 line2->setFrameShape( QFrame::VLine );
00053 layout1->addWidget( line2 );
00054
00055 btnLoad = new KPushButton( this, "btnLoad" );
00056 layout1->addWidget( btnLoad );
00057
00058 btnUnload = new KPushButton( this, "btnUnload" );
00059 layout1->addWidget( btnUnload );
00060
00061 line3 = new QFrame( this, "line3" );
00062 line3->setFrameShape( QFrame::VLine );
00063 line3->setFrameShadow( QFrame::Sunken );
00064 line3->setFrameShape( QFrame::VLine );
00065 layout1->addWidget( line3 );
00066
00067 btnInstall = new KPushButton( this, "btnInstall" );
00068 layout1->addWidget( btnInstall );
00069
00070 btnUninstall = new KPushButton( this, "btnUninstall" );
00071 layout1->addWidget( btnUninstall );
00072
00073 line4 = new QFrame( this, "line4" );
00074 line4->setFrameShape( QFrame::VLine );
00075 line4->setFrameShadow( QFrame::Sunken );
00076 line4->setFrameShape( QFrame::VLine );
00077 layout1->addWidget( line4 );
00078
00079 btnNewStuff = new KPushButton( this, "btnNewStuff" );
00080 layout1->addWidget( btnNewStuff );
00081 WdgScriptsManagerBaseLayout->addLayout( layout1 );
00082 languageChange();
00083 resize( QSize(463, 476).expandedTo(minimumSizeHint()) );
00084 clearWState( WState_Polished );
00085 }
00086
00087
00088
00089
00090 WdgScriptsManagerBase::~WdgScriptsManagerBase()
00091 {
00092
00093 }
00094
00095
00096
00097
00098
00099 void WdgScriptsManagerBase::languageChange()
00100 {
00101 setCaption( tr2i18n( "Scripts Manager" ) );
00102 btnExec->setText( QString::null );
00103 QToolTip::add( btnExec, tr2i18n( "Execute" ) );
00104 btnLoad->setText( QString::null );
00105 QToolTip::add( btnLoad, tr2i18n( "Load" ) );
00106 btnUnload->setText( QString::null );
00107 QToolTip::add( btnUnload, tr2i18n( "Unload" ) );
00108 btnInstall->setText( QString::null );
00109 QToolTip::add( btnInstall, tr2i18n( "Install" ) );
00110 btnUninstall->setText( QString::null );
00111 QToolTip::add( btnUninstall, tr2i18n( "Uninstall" ) );
00112 btnNewStuff->setText( QString::null );
00113 QToolTip::add( btnNewStuff, tr2i18n( "Get More Scripts" ) );
00114 }
00115
00116 #include "wdgscriptsmanagerbase.moc"