From kde-commits Mon Mar 31 22:45:43 2008 From: Pino Toscano Date: Mon, 31 Mar 2008 22:45:43 +0000 To: kde-commits Subject: KDE/kdebase/apps/konqueror/settings/konqhtml Message-Id: <1207003543.184146.8982.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=120700356725416 SVN commit 792382 by pino: Restructure a bit the layout of the Netscape plugins module: use two tabs for the whole module, General Settings and Plugins. The former holds all the general configurations, while the latter the plugin search folders and the list of found plugins. M +134 -164 nsconfigwidget.ui M +12 -13 pluginopts.cpp --- trunk/KDE/kdebase/apps/konqueror/settings/konqhtml/nsconfigwidget.ui #792381:792382 @@ -11,181 +11,151 @@ - Netscape Plugin Config + Plugins - + - - - true + + + + 300 + 0 + - - 1 + + Folders - - - Scan - - - - - - 3 + + + + + false + + + + + + + &New + + + + + + + + 0 + 0 + + + + + + + + false + + + &Remove + + + + + + + false + + + &Up + + + + + + + false + + + Do&wn + + + + + + + Qt::Vertical + + + QSizePolicy::Minimum + + + + 20 + 0 + + + + + + + + Click here to scan for newly installed Netscape plugins now. + + + &Scan for Plugins + + + + + dirRemove + dirNew + dirEdit + dirDown + dirUp + dirList + scanButton + scanButton + + + + + + Plugins + + + + + + Here you can see a list of the Netscape plugins KDE has found. + + + true + + + + Information - - 0 + + true - - 0 + + true - - 0 + + + + Value - - 0 + + true - - - - Click here to scan for newly installed Netscape plugins now. - - - &Scan for New Plugins - - - - - - - Qt::Horizontal - - - QSizePolicy::Expanding - - - - 20 - 20 - - - - - - - - - - - 300 - 0 - - - - Scan Folders - - - - - - false - - - &Remove - - - - - - - &New - - - - - - - false - - - - - - - false - - - Do&wn - - - - - - - false - - - &Up - - - - - - - - 0 - 0 - - - - - - - - Qt::Vertical - - - QSizePolicy::Expanding - - - - 20 - 20 - - - - - - - - - - - - Plugins - - - - - - Here you can see a list of the Netscape plugins KDE has found. - - + true - - - Information - - - - - Value - - - - - - + + + + --- trunk/KDE/kdebase/apps/konqueror/settings/konqhtml/pluginopts.cpp #792381:792382 @@ -69,11 +69,15 @@ { QVBoxLayout* toplevel = new QVBoxLayout( this ); + QTabWidget* topleveltab = new QTabWidget( this ); + toplevel->addWidget( topleveltab ); + + QWidget* globalGB = new QWidget( topleveltab ); + topleveltab->addTab( globalGB, i18n( "Global Settings" ) ); + /************************************************************************** ******************** Global Settings ************************************* *************************************************************************/ - QGroupBox* globalGB = new QGroupBox( i18n( "Global Settings" ), this ); - toplevel->addWidget( globalGB ); enablePluginsGloballyCB = new QCheckBox( i18n( "&Enable plugins globally" ), globalGB ); enableHTTPOnly = new QCheckBox( i18n( "Only allow &HTTP and HTTPS URLs for plugins" ), globalGB ); enableUserDemand = new QCheckBox( i18n( "&Load plugins on demand only" ), globalGB ); @@ -115,6 +119,8 @@ globalGB->setLayout(vbox); + vbox->addItem(new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::MinimumExpanding)); + domainSpecificDlg = new KDialog( this ); domainSpecificDlg->setCaption( i18n("Domain-Specific Policies") ); domainSpecificDlg->setButtons( KDialog::Close ); @@ -162,22 +168,15 @@ /*****************************************************************************/ - QGroupBox* netscapeGB = new QGroupBox( i18n( "Netscape Plugins" ), this ); - toplevel->addWidget( netscapeGB ); + QWidget* pluginsSettingsContainer = new QWidget( topleveltab ); + topleveltab->addTab( pluginsSettingsContainer, i18n( "Plugins" ) ); // create Designer made widget - QWidget *dummy = new QWidget(netscapeGB); m_widget = new Ui::NSConfigWidget(); - m_widget->setupUi( dummy ); - dummy->layout()->setMargin( 0 ); - dummy->setObjectName( "configwidget" ); + m_widget->setupUi( pluginsSettingsContainer ); + pluginsSettingsContainer->setObjectName( "configwidget" ); m_widget->dirEdit->setMode(KFile::ExistingOnly | KFile::LocalOnly | KFile::Directory); - vbox = new QVBoxLayout(); - vbox->addWidget(dummy); - vbox->setMargin( KDialog::marginHint()); - netscapeGB->setLayout(vbox); - #ifndef Q_WS_WIN // setup widgets connect( m_widget->scanButton, SIGNAL(clicked()), SLOT(scan()) );