mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
removed classics systemsettings view
This commit is contained in:
parent
852b54ed48
commit
9886abc654
10 changed files with 1 additions and 868 deletions
|
@ -3,7 +3,7 @@ PROJECT(systemsettings)
|
|||
IF(CMAKE_SOURCE_DIR STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
|
||||
FIND_PACKAGE(KDE4 REQUIRED)
|
||||
INCLUDE(KDE4Defaults)
|
||||
INCLUDE(KDE4Defaults)
|
||||
ADD_DEFINITIONS(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
||||
|
||||
ENDIF(CMAKE_SOURCE_DIR STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
|
@ -13,5 +13,4 @@ INCLUDE_DIRECTORIES (${CMAKE_CURRENT_SOURCE_DIR}/core ${CMAKE_BINARY_DIR} ${KDE4
|
|||
ADD_SUBDIRECTORY(core)
|
||||
ADD_SUBDIRECTORY(app)
|
||||
ADD_SUBDIRECTORY(categories)
|
||||
ADD_SUBDIRECTORY(classic)
|
||||
ADD_SUBDIRECTORY(icons)
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
SET(classic_mode_srcs
|
||||
ClassicMode.cpp
|
||||
CategoryList.cpp
|
||||
)
|
||||
|
||||
KDE4_ADD_UI_FILES( classic_mode_srcs configClassic.ui )
|
||||
KDE4_ADD_PLUGIN(classic_mode ${classic_mode_srcs})
|
||||
|
||||
TARGET_LINK_LIBRARIES(classic_mode ${KDE4_KCMUTILS_LIBS} ${KDE4_KHTML_LIBS} systemsettingsview )
|
||||
|
||||
INSTALL( TARGETS classic_mode DESTINATION ${PLUGIN_INSTALL_DIR} )
|
||||
INSTALL( FILES settings-classic-view.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
||||
INSTALL( FILES main.html systemsettings-classic.css DESTINATION ${DATA_INSTALL_DIR}/systemsettings/classic/ )
|
||||
|
|
@ -1,136 +0,0 @@
|
|||
/*
|
||||
Copyright (c) 2000,2001 Matthias Elter <elter@kde.org>
|
||||
Copyright (c) 2009 Ben Cooksley <bcooksley@kde.org>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "CategoryList.h"
|
||||
|
||||
#include "MenuItem.h"
|
||||
|
||||
#include <QFile>
|
||||
#include <QModelIndex>
|
||||
#include <QTextStream>
|
||||
|
||||
#include <KDebug>
|
||||
#include <KLocale>
|
||||
#include <KCursor>
|
||||
#include <KHTMLPart>
|
||||
#include <KHTMLView>
|
||||
#include <KApplication>
|
||||
#include <KCModuleInfo>
|
||||
#include <KStandardDirs>
|
||||
#include <KGlobalSettings>
|
||||
|
||||
static const char kcc_infotext[]= I18N_NOOP("System Settings");
|
||||
static const char title_infotext[]= I18N_NOOP("Configure your system");
|
||||
static const char intro_infotext[]= I18N_NOOP("Welcome to \"System Settings\", "
|
||||
"a central place to configure your computer system.");
|
||||
|
||||
class CategoryList::Private {
|
||||
public:
|
||||
Private() {}
|
||||
|
||||
KHTMLPart * categoryView;
|
||||
QModelIndex categoryMenu;
|
||||
QAbstractItemModel * itemModel;
|
||||
QMap<QString, QModelIndex> itemMap;
|
||||
};
|
||||
|
||||
CategoryList::CategoryList( QWidget *parent, QAbstractItemModel *model )
|
||||
: KHBox(parent), d( new Private() )
|
||||
{
|
||||
setMinimumSize( 400, 400 );
|
||||
d->itemModel = model;
|
||||
|
||||
// set what's this help
|
||||
this->setWhatsThis( i18n( intro_infotext ) );
|
||||
d->categoryView = new KHTMLPart( this );
|
||||
d->categoryView->view()->setFrameStyle( QFrame::StyledPanel | QFrame::Sunken );
|
||||
d->categoryView->widget()->setSizePolicy( QSizePolicy::Ignored, QSizePolicy::Ignored );
|
||||
connect( d->categoryView->browserExtension(),
|
||||
SIGNAL( openUrlRequest( const KUrl&,
|
||||
const KParts::OpenUrlArguments&,
|
||||
const KParts::BrowserArguments& ) ),
|
||||
this, SLOT(slotModuleLinkClicked(KUrl)) );
|
||||
}
|
||||
|
||||
CategoryList::~CategoryList()
|
||||
{
|
||||
delete d;
|
||||
}
|
||||
|
||||
void CategoryList::updatePixmap()
|
||||
{
|
||||
QString content;
|
||||
QString moduleName;
|
||||
KIconLoader * iconL = KIconLoader::global();
|
||||
d->itemMap.clear();
|
||||
|
||||
const QString templatePath = KStandardDirs::locate( "data", "systemsettings/classic/main.html" );
|
||||
QFile templateFile( templatePath );
|
||||
templateFile.open( QIODevice::ReadOnly );
|
||||
QTextStream templateText( &templateFile );
|
||||
QString templateString = templateText.readAll();
|
||||
templateString = templateString.arg( KStandardDirs::locate( "data", "kdeui/about/kde_infopage.css" ) );
|
||||
if ( kapp->layoutDirection() == Qt::RightToLeft ) {
|
||||
templateString = templateString.arg( "@import \"%1\";" ).arg( KStandardDirs::locate( "data", "kdeui/about/kde_infopage_rtl.css" ) );
|
||||
} else {
|
||||
templateString = templateString.arg( QString() );
|
||||
}
|
||||
templateString = templateString.arg( i18n( kcc_infotext ) );
|
||||
templateString = templateString.arg( i18n( title_infotext ) );
|
||||
templateString = templateString.arg( i18n( intro_infotext ) );
|
||||
if ( d->categoryMenu.isValid() ) {
|
||||
moduleName = d->itemModel->data( d->categoryMenu, Qt::DisplayRole ).toString();
|
||||
}
|
||||
content += "<div id=\"tableTitle\">" + moduleName + "</div>";
|
||||
content += "<table class=\"kc_table\">\n";
|
||||
for( int done = 0; d->itemModel->rowCount( d->categoryMenu ) > done; ++done ) {
|
||||
QModelIndex childIndex = d->itemModel->index( done, 0, d->categoryMenu );
|
||||
MenuItem *childItem = d->itemModel->data( childIndex, Qt::UserRole ).value<MenuItem*>();
|
||||
KUrl link( "kcm://" );
|
||||
link.setFileName( childItem->item().fileName() );
|
||||
kDebug() << childItem->name() << childItem->item().fileName() << link.url();
|
||||
const QString szLink = "<a href=\"" + link.url() + "\" >";
|
||||
content += "<tr><td class=\"kc_leftcol\">" + szLink + "<img src=\"%1\" width=\"24\" height=\"24\"></a></td><td class=\"kc_middlecol\">";
|
||||
const QString szName = childItem->name();
|
||||
const QString szComment = childItem->service()->comment();
|
||||
content += szLink + szName + "</a></td><td class=\"kc_rightcol\">" + szLink + szComment + "</a>";
|
||||
content = content.arg( iconL->iconPath(childItem->service()->icon(), - KIconLoader::SizeSmallMedium ) );
|
||||
d->itemMap.insert( link.url(), childIndex );
|
||||
content += "</td></tr>\n";
|
||||
}
|
||||
content += "</table>";
|
||||
d->categoryView->begin( KUrl( templatePath ) );
|
||||
d->categoryView->write( templateString.arg( content ) );
|
||||
d->categoryView->end();
|
||||
}
|
||||
|
||||
void CategoryList::changeModule( QModelIndex newItem )
|
||||
{
|
||||
d->categoryMenu = newItem;
|
||||
updatePixmap();
|
||||
}
|
||||
|
||||
void CategoryList::slotModuleLinkClicked( const KUrl& moduleName )
|
||||
{
|
||||
QModelIndex module = d->itemMap.value( moduleName.url() );
|
||||
kDebug() << "Link name: " + moduleName.url();
|
||||
emit moduleSelected( module );
|
||||
}
|
||||
|
||||
#include "CategoryList.moc"
|
|
@ -1,53 +0,0 @@
|
|||
/*
|
||||
Copyright (c) 2000,2001 Matthias Elter <elter@kde.org>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef CATEGORYLIST_H
|
||||
#define CATEGORYLIST_H
|
||||
|
||||
#include <KHBox>
|
||||
|
||||
class QModelIndex;
|
||||
class QAbstractItemModel;
|
||||
|
||||
class KUrl;
|
||||
|
||||
class CategoryList : public KHBox
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit CategoryList( QWidget *parent, QAbstractItemModel *model );
|
||||
virtual ~CategoryList();
|
||||
|
||||
void changeModule( QModelIndex newItem);
|
||||
|
||||
Q_SIGNALS:
|
||||
void moduleSelected( QModelIndex itemSelected );
|
||||
|
||||
private Q_SLOTS:
|
||||
void slotModuleLinkClicked( const KUrl& );
|
||||
|
||||
private:
|
||||
void updatePixmap();
|
||||
|
||||
private:
|
||||
class Private;
|
||||
Private *const d;
|
||||
};
|
||||
|
||||
#endif
|
|
@ -1,265 +0,0 @@
|
|||
/**************************************************************************
|
||||
* Copyright (C) 2009 Ben Cooksley <bcooksley@kde.org> *
|
||||
* Copyright (C) 2008 Mathias Soeken <msoeken@informatik.uni-bremen.de> *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or *
|
||||
* modify it under the terms of the GNU General Public License *
|
||||
* as published by the Free Software Foundation; either version 2 *
|
||||
* of the License, or (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write to the Free Software *
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
|
||||
* 02110-1301, USA. *
|
||||
***************************************************************************/
|
||||
|
||||
#include "ClassicMode.h"
|
||||
#include "ui_configClassic.h"
|
||||
|
||||
#include <QLayout>
|
||||
#include <QSplitter>
|
||||
#include <QTreeView>
|
||||
#include <QModelIndex>
|
||||
#include <QStackedWidget>
|
||||
#include <QAbstractItemModel>
|
||||
|
||||
#include <KAboutData>
|
||||
#include <KCModuleInfo>
|
||||
#include <KConfigDialog>
|
||||
#include <KGlobalSettings>
|
||||
|
||||
#include "MenuItem.h"
|
||||
#include "MenuModel.h"
|
||||
#include "ModuleView.h"
|
||||
#include "CategoryList.h"
|
||||
#include "MenuProxyModel.h"
|
||||
|
||||
K_PLUGIN_FACTORY(ClassicModeFactory, registerPlugin<ClassicMode>();)
|
||||
K_EXPORT_PLUGIN(ClassicModeFactory("classic_mode"))
|
||||
|
||||
class ClassicMode::Private {
|
||||
public:
|
||||
Private() : moduleView( 0 ) {}
|
||||
virtual ~Private() {
|
||||
delete aboutClassic;
|
||||
}
|
||||
|
||||
QSplitter * classicWidget;
|
||||
QTreeView * classicTree;
|
||||
Ui::ConfigClassic classicConfig;
|
||||
CategoryList * classicCategory;
|
||||
QStackedWidget * stackedWidget;
|
||||
ModuleView * moduleView;
|
||||
QModelIndex currentItem;
|
||||
|
||||
MenuProxyModel * proxyModel;
|
||||
MenuModel * model;
|
||||
KAboutData * aboutClassic;
|
||||
};
|
||||
|
||||
ClassicMode::ClassicMode( QObject * parent, const QVariantList& )
|
||||
: BaseMode( parent ), d( new Private() )
|
||||
{
|
||||
d->aboutClassic = new KAboutData( "TreeView", 0, ki18n("Tree View"),
|
||||
"1.0", ki18n("Provides a classic tree-based view of control modules."),
|
||||
KAboutData::License_GPL, ki18n("(c) 2009, Ben Cooksley"));
|
||||
d->aboutClassic->addAuthor(ki18n("Ben Cooksley"), ki18n("Author"), "bcooksley@kde.org");
|
||||
d->aboutClassic->addAuthor(ki18n("Mathias Soeken"), ki18n("Developer"), "msoeken@informatik.uni-bremen.de");
|
||||
d->aboutClassic->setProgramIconName("view-list-tree");
|
||||
}
|
||||
|
||||
ClassicMode::~ClassicMode()
|
||||
{
|
||||
if( !d->classicTree ) {
|
||||
delete d->classicWidget;
|
||||
}
|
||||
delete d;
|
||||
}
|
||||
|
||||
void ClassicMode::initEvent()
|
||||
{
|
||||
// Create the model
|
||||
d->model = new MenuModel( rootItem(), this );
|
||||
|
||||
// Move items that are the sole child of a category up....
|
||||
moveUp( rootItem() );
|
||||
|
||||
// Create the proxy model
|
||||
d->proxyModel = new MenuProxyModel( this );
|
||||
d->proxyModel->setSourceModel( d->model );
|
||||
d->proxyModel->sort( 0 );
|
||||
d->classicWidget = new QSplitter( Qt::Horizontal, 0 );
|
||||
d->classicWidget->setChildrenCollapsible( false );
|
||||
d->moduleView = new ModuleView( d->classicWidget );
|
||||
d->classicTree = 0;
|
||||
}
|
||||
|
||||
QWidget * ClassicMode::mainWidget()
|
||||
{
|
||||
if( !d->classicTree ) {
|
||||
initWidget();
|
||||
}
|
||||
return d->classicWidget;
|
||||
}
|
||||
|
||||
KAboutData * ClassicMode::aboutData()
|
||||
{
|
||||
return d->aboutClassic;
|
||||
}
|
||||
|
||||
ModuleView * ClassicMode::moduleView() const
|
||||
{
|
||||
return d->moduleView;
|
||||
}
|
||||
|
||||
QList<QAbstractItemView*> ClassicMode::views() const
|
||||
{
|
||||
QList<QAbstractItemView*> theViews;
|
||||
theViews << d->classicTree;
|
||||
return theViews;
|
||||
}
|
||||
|
||||
void ClassicMode::saveState()
|
||||
{
|
||||
config().writeEntry( "viewLayout", d->classicWidget->sizes() );
|
||||
config().sync();
|
||||
}
|
||||
|
||||
void ClassicMode::expandColumns()
|
||||
{
|
||||
d->classicTree->resizeColumnToContents(0);
|
||||
}
|
||||
|
||||
void ClassicMode::searchChanged( const QString& text )
|
||||
{
|
||||
d->proxyModel->setFilterRegExp(text);
|
||||
if( d->classicTree ) {
|
||||
d->classicCategory->changeModule( d->classicTree->currentIndex() );
|
||||
}
|
||||
}
|
||||
|
||||
void ClassicMode::selectModule( const QModelIndex& selectedModule )
|
||||
{
|
||||
d->classicTree->setCurrentIndex( selectedModule );
|
||||
if( d->proxyModel->rowCount(selectedModule) > 0 ) {
|
||||
d->classicTree->setExpanded(selectedModule, true);
|
||||
}
|
||||
changeModule( selectedModule );
|
||||
}
|
||||
|
||||
void ClassicMode::changeModule( const QModelIndex& activeModule )
|
||||
{
|
||||
if( activeModule == d->currentItem ) {
|
||||
return;
|
||||
}
|
||||
if( !d->moduleView->resolveChanges() ) {
|
||||
return;
|
||||
}
|
||||
d->moduleView->closeModules();
|
||||
d->currentItem = activeModule;
|
||||
if( d->proxyModel->rowCount(activeModule) > 0 ) {
|
||||
d->stackedWidget->setCurrentWidget( d->classicCategory );
|
||||
d->classicCategory->changeModule(activeModule);
|
||||
emit viewChanged( false );
|
||||
} else {
|
||||
d->moduleView->loadModule( activeModule );
|
||||
}
|
||||
}
|
||||
|
||||
void ClassicMode::moduleLoaded()
|
||||
{
|
||||
d->stackedWidget->setCurrentWidget( d->moduleView );
|
||||
}
|
||||
|
||||
void ClassicMode::initWidget()
|
||||
{
|
||||
// Create the widget
|
||||
d->classicTree = new QTreeView( d->classicWidget );
|
||||
d->classicCategory = new CategoryList( d->classicWidget, d->proxyModel );
|
||||
|
||||
d->stackedWidget = new QStackedWidget( d->classicWidget );
|
||||
d->stackedWidget->layout()->setMargin(0);
|
||||
d->stackedWidget->addWidget( d->classicCategory );
|
||||
d->stackedWidget->addWidget( d->moduleView );
|
||||
|
||||
d->classicWidget->addWidget( d->classicTree );
|
||||
d->classicWidget->addWidget( d->stackedWidget );
|
||||
|
||||
d->classicTree->setModel( d->proxyModel );
|
||||
d->classicTree->setHeaderHidden( true );
|
||||
d->classicTree->setIconSize( QSize( 24, 24 ) );
|
||||
d->classicTree->setSortingEnabled( true );
|
||||
d->classicTree->setMouseTracking( true );
|
||||
d->classicTree->setMinimumWidth( 200 );
|
||||
d->classicTree->setSelectionMode( QAbstractItemView::SingleSelection );
|
||||
d->classicTree->sortByColumn( 0, Qt::AscendingOrder );
|
||||
|
||||
d->classicCategory->changeModule( d->classicTree->rootIndex() );
|
||||
|
||||
connect( d->classicCategory, SIGNAL(moduleSelected(QModelIndex)), this, SLOT(selectModule(QModelIndex)) );
|
||||
connect( d->classicTree, SIGNAL(activated(QModelIndex)), this, SLOT(changeModule(QModelIndex)) );
|
||||
connect( d->classicTree, SIGNAL(collapsed(QModelIndex)), this, SLOT(expandColumns()) );
|
||||
connect( d->classicTree, SIGNAL(expanded(QModelIndex)), this, SLOT(expandColumns()) );
|
||||
connect( d->moduleView, SIGNAL(moduleChanged(bool)), this, SLOT(moduleLoaded()) );
|
||||
|
||||
if( !KGlobalSettings::singleClick() ) {
|
||||
// Needed because otherwise activated() is not fired with single click, which is apparently expected for tree views
|
||||
connect( d->classicTree, SIGNAL(clicked(QModelIndex)), this, SLOT(changeModule(QModelIndex)) );
|
||||
}
|
||||
|
||||
if( config().readEntry( "autoExpandOneLevel", false ) ) {
|
||||
for( int processed = 0; d->proxyModel->rowCount() > processed; processed++ ) {
|
||||
d->classicTree->setExpanded( d->proxyModel->index( processed, 0 ), true );
|
||||
}
|
||||
}
|
||||
|
||||
expandColumns();
|
||||
QList<int> defaultSizes;
|
||||
defaultSizes << 250 << 500;
|
||||
d->classicWidget->setSizes( config().readEntry( "viewLayout", defaultSizes ) );
|
||||
}
|
||||
|
||||
void ClassicMode::leaveModuleView()
|
||||
{
|
||||
d->moduleView->closeModules();
|
||||
d->stackedWidget->setCurrentWidget( d->classicCategory );
|
||||
}
|
||||
|
||||
void ClassicMode::giveFocus()
|
||||
{
|
||||
d->classicTree->setFocus();
|
||||
}
|
||||
|
||||
void ClassicMode::addConfiguration( KConfigDialog * config )
|
||||
{
|
||||
QWidget * configWidget = new QWidget( config );
|
||||
d->classicConfig.setupUi( configWidget );
|
||||
config->addPage( configWidget, i18n("Tree View"), aboutData()->programIconName() );
|
||||
}
|
||||
|
||||
void ClassicMode::loadConfiguration()
|
||||
{
|
||||
d->classicConfig.CbExpand->setChecked( config().readEntry( "autoExpandOneLevel", false ) );
|
||||
}
|
||||
|
||||
void ClassicMode::saveConfiguration()
|
||||
{
|
||||
config().writeEntry("autoExpandOneLevel", d->classicConfig.CbExpand->isChecked());
|
||||
}
|
||||
|
||||
void ClassicMode::moveUp( MenuItem * item )
|
||||
{
|
||||
foreach( MenuItem * child, item->children() ) {
|
||||
if( child->children().count() == 1 ) {
|
||||
d->model->addException( child );
|
||||
}
|
||||
moveUp( child );
|
||||
}
|
||||
}
|
||||
|
||||
#include "ClassicMode.moc"
|
|
@ -1,65 +0,0 @@
|
|||
/**************************************************************************
|
||||
* Copyright (C) 2009 Ben Cooksley <bcooksley@kde.org> *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or *
|
||||
* modify it under the terms of the GNU General Public License *
|
||||
* as published by the Free Software Foundation; either version 2 *
|
||||
* of the License, or (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write to the Free Software *
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
|
||||
* 02110-1301, USA. *
|
||||
***************************************************************************/
|
||||
#ifndef CLASSICMODE_H
|
||||
#define CLASSICMODE_H
|
||||
|
||||
#include "BaseMode.h"
|
||||
|
||||
class MenuItem;
|
||||
class ModuleView;
|
||||
class QModelIndex;
|
||||
|
||||
class ClassicMode : public BaseMode
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
ClassicMode(QObject * parent, const QVariantList& );
|
||||
~ClassicMode();
|
||||
void initEvent();
|
||||
void leaveModuleView();
|
||||
QWidget * mainWidget();
|
||||
KAboutData * aboutData();
|
||||
ModuleView * moduleView() const;
|
||||
|
||||
protected:
|
||||
QList<QAbstractItemView*> views() const;
|
||||
|
||||
public Q_SLOTS:
|
||||
void expandColumns();
|
||||
void searchChanged( const QString& text );
|
||||
void selectModule( const QModelIndex& selectedModule );
|
||||
void changeModule( const QModelIndex& activeModule );
|
||||
void saveState();
|
||||
void giveFocus();
|
||||
void addConfiguration( KConfigDialog * config );
|
||||
void loadConfiguration();
|
||||
void saveConfiguration();
|
||||
|
||||
private Q_SLOTS:
|
||||
void moduleLoaded();
|
||||
void initWidget();
|
||||
void moveUp( MenuItem * item );
|
||||
|
||||
private:
|
||||
class Private;
|
||||
Private *const d;
|
||||
};
|
||||
|
||||
#endif
|
|
@ -1,38 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>ConfigClassic</class>
|
||||
<widget class="QWidget" name="ConfigClassic">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>400</width>
|
||||
<height>66</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QCheckBox" name="CbExpand">
|
||||
<property name="text">
|
||||
<string>Expand the first level automatically</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>28</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
|
@ -1,59 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<style type="text/css">
|
||||
/*<![CDATA[*/
|
||||
@import "%1"; /* kde_infopage.css */
|
||||
%2 /* maybe @import "kde_infopage_rtl.css"; */
|
||||
@import "systemsettings-classic.css";
|
||||
/*body {font-size: px;}*/
|
||||
/*]]>*/
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="header">
|
||||
<div id="headerL"/>
|
||||
|
||||
<div id="title">
|
||||
%3 <!-- Title -->
|
||||
</div>
|
||||
|
||||
<div id="tagline">
|
||||
%4 <!-- Catchphrase -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- the bar -->
|
||||
<div id="bar">
|
||||
<div id="barT"><div id="barTL"/><div id="barTR"/><div id="barTC"/></div>
|
||||
<div id="barL">
|
||||
<div id="barR">
|
||||
<div id="barCenter" class="bar_text">
|
||||
%5<!-- Summary -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="barB"><div id="barBL"/><div id="barBR"/><div id="barBC"/></div>
|
||||
</div>
|
||||
|
||||
<!-- the main text box -->
|
||||
<div id="box">
|
||||
<div id="boxT"><div id="boxTL"/><div id="boxTR"/><div id="boxTC"/></div>
|
||||
<div id="boxL">
|
||||
<div id="boxR">
|
||||
<div id="boxCenter">
|
||||
<!--Content-->
|
||||
%6
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="boxB"><div id="boxBL"/><div id="boxBR"/><div id="boxBC"/></div>
|
||||
</div>
|
||||
|
||||
<div id="footer"><div id="footerL"/><div id="footerR"/></div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,194 +0,0 @@
|
|||
[Desktop Entry]
|
||||
Icon=view-list-tree
|
||||
Type=Service
|
||||
X-KDE-ServiceTypes=SystemSettingsView
|
||||
|
||||
X-KDE-Library=classic_mode
|
||||
X-KDE-Keywords=System Settings
|
||||
X-KDE-Keywords[ar]=إعدادات النظام
|
||||
X-KDE-Keywords[bs]=sistemske postavke
|
||||
X-KDE-Keywords[ca]=Arranjament del sistema
|
||||
X-KDE-Keywords[ca@valencia]=Arranjament del sistema
|
||||
X-KDE-Keywords[cs]=Nastavení systému
|
||||
X-KDE-Keywords[da]=Systemindstillinger
|
||||
X-KDE-Keywords[de]=Systemeinstellungen
|
||||
X-KDE-Keywords[el]=Ρυθμίσεις συστήματος
|
||||
X-KDE-Keywords[en_GB]=System Settings
|
||||
X-KDE-Keywords[es]=Preferencias del sistema
|
||||
X-KDE-Keywords[et]=Süsteemi seadistused
|
||||
X-KDE-Keywords[eu]=Sistemaren ezarpenak
|
||||
X-KDE-Keywords[fi]=järjestelmä, asetukset
|
||||
X-KDE-Keywords[fr]=Configuration du système
|
||||
X-KDE-Keywords[ga]=Socruithe an Chórais
|
||||
X-KDE-Keywords[gl]=Configuración do sistema
|
||||
X-KDE-Keywords[he]=הגדרות מערכת
|
||||
X-KDE-Keywords[hu]=Rendszerbeállítások
|
||||
X-KDE-Keywords[ia]=Preferentias de systema
|
||||
X-KDE-Keywords[is]=Kerfisstillingar
|
||||
X-KDE-Keywords[it]=Impostazioni di sistema
|
||||
X-KDE-Keywords[kk]=System Settings,Жүйе параметрлері
|
||||
X-KDE-Keywords[km]=ការកំណត់ប្រព័ន្ធ
|
||||
X-KDE-Keywords[ko]=시스템 설정
|
||||
X-KDE-Keywords[lt]=Sistemos nustatymai
|
||||
X-KDE-Keywords[lv]=Sistēmas iestatījumi
|
||||
X-KDE-Keywords[mr]=प्रणाली संयोजना
|
||||
X-KDE-Keywords[nb]=Systeminnstillinger
|
||||
X-KDE-Keywords[nds]=Systeeminstellen
|
||||
X-KDE-Keywords[nl]=Systeeminstellingen
|
||||
X-KDE-Keywords[pa]=ਸਿਸਟਮ ਸੈਟਿੰਗ
|
||||
X-KDE-Keywords[pl]=Ustawienia systemowe
|
||||
X-KDE-Keywords[pt]=Configuração do Sistema
|
||||
X-KDE-Keywords[pt_BR]=Configurações do sistema
|
||||
X-KDE-Keywords[ro]=Configurări de sistem
|
||||
X-KDE-Keywords[ru]=Параметры системы
|
||||
X-KDE-Keywords[sk]=Systémové nastavenia
|
||||
X-KDE-Keywords[sl]=Sistemske nastavitve
|
||||
X-KDE-Keywords[sr]=System Settings,Системске поставке
|
||||
X-KDE-Keywords[sr@ijekavian]=System Settings,Системске поставке
|
||||
X-KDE-Keywords[sr@ijekavianlatin]=System Settings,Sistemske postavke
|
||||
X-KDE-Keywords[sr@latin]=System Settings,Sistemske postavke
|
||||
X-KDE-Keywords[sv]=Systeminställningar
|
||||
X-KDE-Keywords[tg]=Танзимотҳои система
|
||||
X-KDE-Keywords[tr]=Sistem Ayarları
|
||||
X-KDE-Keywords[ug]=سىستېما تەڭشىكى
|
||||
X-KDE-Keywords[uk]=система,параметри,System Settings,системні параметри
|
||||
X-KDE-Keywords[vi]=Thiết lập hệ thống
|
||||
X-KDE-Keywords[x-test]=xxSystem Settingsxx
|
||||
X-KDE-Keywords[zh_CN]=System Settings,系统设置
|
||||
X-KDE-Keywords[zh_TW]=System Settings
|
||||
|
||||
Name=Classic Tree View
|
||||
Name[ar]=مشهد الشجرة التقليدي
|
||||
Name[ast]=Vista d'árbol clásica
|
||||
Name[bg]=Класически дървовиден изглед
|
||||
Name[bn]=ক্লাসিক ট্রি ভিউ
|
||||
Name[bs]=Klasični prikaz stabla
|
||||
Name[ca]=Vista en arbre clàssica
|
||||
Name[ca@valencia]=Vista en arbre clàssica
|
||||
Name[cs]=Klasický stromový pohled
|
||||
Name[csb]=Klasykòwi wëzdrzatk drzewiã
|
||||
Name[da]=Klassisk trævisning
|
||||
Name[de]=Klassische Baumansicht
|
||||
Name[el]=Κλασσική προβολή δέντρου
|
||||
Name[en_GB]=Classic Tree View
|
||||
Name[eo]=Klasika Arb-vido
|
||||
Name[es]=Vista de árbol clásica
|
||||
Name[et]=Klassikaline puuvaade
|
||||
Name[eu]=Zuhaitz-ikuspegi klasikoa
|
||||
Name[fi]=Klassinen puunäkymä
|
||||
Name[fr]=Vue en arborescence classique
|
||||
Name[fy]=Klassike beamstrucktuer
|
||||
Name[ga]=Amharc Clasaiceach Crainn
|
||||
Name[gl]=Vista en árbore clásica
|
||||
Name[gu]=પરંપરાગત વૃક્ષ દેખાવ
|
||||
Name[he]=תצוגת עץ קלאסית
|
||||
Name[hr]=Klasičan prikaz stabla
|
||||
Name[hu]=Klasszikus fastruktúra-nézet
|
||||
Name[ia]=Vista classic a arbore
|
||||
Name[id]=Tampilan Pohon Klasik
|
||||
Name[is]=Klassísk trjásýn
|
||||
Name[it]=Vista ad albero classica
|
||||
Name[ja]=古典的なツリー表示
|
||||
Name[kk]=Қлассикалық Бұтақты көрініс
|
||||
Name[km]=ទិដ្ឋភាពមែកធាងបុរាណ
|
||||
Name[kn]=ಸಾಂಪ್ರದಾಯಿಕ ವೃಕ್ಷ ನೋಟ
|
||||
Name[ko]=고전 트리 보기
|
||||
Name[lt]=Klasikinis medžio vaizdas
|
||||
Name[lv]=Klasisks koka skats
|
||||
Name[mai]=क्लासिक तरू दृश्य
|
||||
Name[mk]=Преглед со класично стебло
|
||||
Name[ml]=ക്ലാസിക് വൃക്ഷ കാഴ്ച
|
||||
Name[mr]=क्लासिक ट्री दृश्य
|
||||
Name[nb]=Klassisk trevisning
|
||||
Name[nds]=Klass'sch Boomansicht
|
||||
Name[nl]=Klassieke boomweergave
|
||||
Name[nn]=Klassisk trevising
|
||||
Name[pa]=ਟਕਸਾਲੀ ਟਰੀ ਝਲਕ
|
||||
Name[pl]=Klasyczny widok drzewa
|
||||
Name[pt]=Árvore Clássica
|
||||
Name[pt_BR]=Visão em árvore clássica
|
||||
Name[ro]=Vizualizare arborescentă clasică
|
||||
Name[ru]=Дерево
|
||||
Name[si]=සාම්ප්රධායික ගස් දසුන
|
||||
Name[sk]=Klasické stromové zobrazenie
|
||||
Name[sl]=Klasičen drevesni pogled
|
||||
Name[sr]=Класични приказ стабла
|
||||
Name[sr@ijekavian]=Класични приказ стабла
|
||||
Name[sr@ijekavianlatin]=Klasični prikaz stabla
|
||||
Name[sr@latin]=Klasični prikaz stabla
|
||||
Name[sv]=Klassisk trädvy
|
||||
Name[tg]=Намоиши дарахти классикӣ
|
||||
Name[th]=มุมมองแบบผังต้นไม้
|
||||
Name[tr]=Klasik Ağaç Görünümü
|
||||
Name[ug]=كلاسسىك شاخسىمان تىزىم كۆرۈنۈشى
|
||||
Name[uk]=Класичний перегляд деревом
|
||||
Name[vi]=Xem cây cổ điển
|
||||
Name[wa]=Vuwe classike e coxhlaedje
|
||||
Name[x-test]=xxClassic Tree Viewxx
|
||||
Name[zh_CN]=经典树形视图
|
||||
Name[zh_TW]=傳統樹狀檢視
|
||||
Comment=A Classic KDE 3 KControl style system settings view.
|
||||
Comment[ar]=عرض إعدادات النظام بأسلوب KControl الموجود في كدي 3 .
|
||||
Comment[ast]=Una vista clásica de KControl de KDE de les preferencies del sistema.
|
||||
Comment[bg]=Класически изглед (като KDE 3).
|
||||
Comment[bn]=ক্লাসিক KDE 3 কে-কন্ট্রোল-এর মত একটি সিস্টেম সেটিংস ভিউ।
|
||||
Comment[bs]=Prikaz postavki u klasičnom stilu K‑kontrole iz KDE‑a 3.
|
||||
Comment[ca]=Una vista de l'Arranjament del sistema a l'estil clàssic del KControl del KDE 3.
|
||||
Comment[ca@valencia]=Una vista de l'arranjament del sistema a l'estil clàssic del KControl del KDE 3.
|
||||
Comment[cs]=Klasický styl pohledu Ovládacího centra KDE 3.
|
||||
Comment[csb]=Systemòwi nastôw w klasykòwim sztélu KDE 3
|
||||
Comment[da]=En klassisk visning af Systemindstillinger i stil med KDE 3 KControl.
|
||||
Comment[de]=Eine klassische KDE-3-Ansicht für die Systemeinstellungen.
|
||||
Comment[el]=Ένα κλασσικό στιλ εμφάνισης ρυθμίσεων συστήματος του KDE 3 KControl.
|
||||
Comment[en_GB]=A Classic KDE 3 KControl style system settings view.
|
||||
Comment[es]=Una vista clásica de KControl de KDE de las preferencias del sistema.
|
||||
Comment[et]=KDE3 klassikalise juhtimiskeskuse laadis süsteemi seadistuste vaade.
|
||||
Comment[eu]=Sistemaren ezarpenen ikuspegi klasikoa KDE 3 KControl estiloan.
|
||||
Comment[fi]=Klassinen KDE 3 KControl -tyylinen järjestelmäasetusnäkymä.
|
||||
Comment[fr]=Une vue classique dans le style de KControl de KDE 3 pour les paramètres du système.
|
||||
Comment[fy]=In klassike KDE 3 KControl styl systeem ynstellings werjefte.
|
||||
Comment[gl]=Unha vista da configuración do sistema co estilo clásico de KControl de KDE 3.
|
||||
Comment[he]=תצוגת הגדרות מערכת בסגנון KDE 3 קלאסי.
|
||||
Comment[hr]=Klasični KDE 3 KControl stil prikaza sustavskih postavki.
|
||||
Comment[hu]=KDE 3 KControl-stílusú nézet a Rendszerbeállításokhoz.
|
||||
Comment[ia]=Un vista de preferentias de systema secundo le stilo classic de KControl KDE 3
|
||||
Comment[id]=Tampilan pengaturan sistem gaya KControl KDE 3 Klasik.
|
||||
Comment[is]=Klassískur stíll KDE 3 KControl kerfisstillingasýnar.
|
||||
Comment[it]=Una classica vista delle impostazioni di sistema sullo stile del centro di controllo di KDE 3.
|
||||
Comment[ja]=KDE 3 のコントロールセンターの表示スタイル
|
||||
Comment[kk]=Классикалық KDE 3 KControl стильдегі жүйе параметрлер көрнісі
|
||||
Comment[km]=ទិដ្ឋភាពការកំណត់ប្រព័ន្ធរចនាប័ទញមរបស់ KDE 3 KControl បុរាណ ។
|
||||
Comment[kn]=ಸಾಂಪ್ರದಾಯಿಕ KDE 3 KControl ಶೈಲಿಯ ವ್ಯವಸ್ಥೆಯ ಸಂಯೋಜನೆಗಳ ನೋಟ.
|
||||
Comment[ko]=KDE 3 제어판 스타일로 시스템 설정을 표시합니다.
|
||||
Comment[lt]=Klasikinis KDE 3 KControl stiliaus sistemos nustatymų vaizdas.
|
||||
Comment[lv]=Klaksiskais KDE 3 KControl stila sistēmas iestatījumu skats.
|
||||
Comment[ml]=കെഡിഈ 3ലെ കെ നിയന്ത്രണരീതിയിലുള്ള വ്യവസ്ഥ ഒരുക്കുന്നതിന്റെ ക്ലാസിക് കാഴ്ച
|
||||
Comment[mr]=केडीई 3 के-कंट्रोल क्लासिक शैलीचे प्रणाली संयोजना दृश्य.
|
||||
Comment[nb]=En visning av systeminnstillinger med klassisk KDE 3 KControl-stil.
|
||||
Comment[nds]=En klass'sch Ansicht för de Systeeminstellen, as bi KDE-3 sien KControl.
|
||||
Comment[nl]=Een systeeminstelling voor een klassieke KDE3 KControl weergave.
|
||||
Comment[nn]=Ei klassisk vising av systeminnstillingane som liknar KControl i KDE 3.
|
||||
Comment[pa]=ਕਲਾਸਿਕ ਕੇਡੀਈ ੩ ਕੇ-ਕੰਟਰੋਲ ਸਟਾਈਲ ਵਰਗੀ ਸਿਸਟਮ ਸੈਟਿੰਗ ਝਲਕ ਹੈ।
|
||||
Comment[pl]=Klasyczny widok ustawień systemowych z Centrum sterowania KDE 3.
|
||||
Comment[pt]=A vista para a configuração do sistema clássica do KControl do KDE 3.
|
||||
Comment[pt_BR]=Um estilo de visão clássico das configurações do sistema do KControl do KDE 3.
|
||||
Comment[ro]=Vizualizare clasică KControl KDE 3 pentru Configurări de sistem.
|
||||
Comment[ru]=Классический стиль «Параметров системы», как в KDE 3.
|
||||
Comment[si]=සාම්ප්රධායික KDE 3 KControl රටා පද්ධති සැකසුම් දසුන.
|
||||
Comment[sk]=Klasický štýl zobrazenia Ovládacieho centra KDE 3.
|
||||
Comment[sl]=Pogled za sistemske nastavitve v slogu nadzornega središča iz KDE 3.
|
||||
Comment[sr]=Приказ поставки у класичном стилу К‑контроле из КДЕ‑а 3.
|
||||
Comment[sr@ijekavian]=Приказ поставки у класичном стилу К‑контроле из КДЕ‑а 3.
|
||||
Comment[sr@ijekavianlatin]=Prikaz postavki u klasičnom stilu K‑kontrole iz KDE‑a 3.
|
||||
Comment[sr@latin]=Prikaz postavki u klasičnom stilu K‑kontrole iz KDE‑a 3.
|
||||
Comment[sv]=En klassisk systeminställningsvy som liknar inställningscentralen i KDE 3.
|
||||
Comment[tg]=Намоиши системаи KDE 3 KControl бо танзимотҳои классикӣ.
|
||||
Comment[th]=รูปแบบมุมมองคลาสสิกของศูนย์ควบคุม KDE 3 แบบผังต้นไม้
|
||||
Comment[tr]=Klasik KDE3 KControl biçimi sistem ayarları görünümü.
|
||||
Comment[ug]=ئەنئەنىۋى KDE 3 تىزگىن مەركىزى ئۇسلۇبىدىكى سىستېما تەڭشەك كۆرۈنۈشى.
|
||||
Comment[uk]=Класичний перегляд параметрів у стилі KControl з KDE 3.
|
||||
Comment[vi]=Xem thiết lập hệ thống theo kiểu KControl KDE 3 cổ điển.
|
||||
Comment[wa]=Ene vuwe classike des tchuzes do sistinme al façon di KControl dins KDE 3.
|
||||
Comment[x-test]=xxA Classic KDE 3 KControl style system settings view.xx
|
||||
Comment[zh_CN]=经典的 KDE 3 控制中心风格系统设置视图。
|
||||
Comment[zh_TW]=傳統 KDE3 KControl 風格的系統設定檢視。
|
|
@ -1,42 +0,0 @@
|
|||
|
||||
#title {
|
||||
right: 80px;
|
||||
font-size: x-large;
|
||||
}
|
||||
|
||||
#tagline {
|
||||
right: 80px;
|
||||
font-size: x-small;
|
||||
}
|
||||
|
||||
#barCenter {
|
||||
font-size: x-small;
|
||||
}
|
||||
|
||||
#tableTitle {
|
||||
font-weight: bold;
|
||||
padding-bottom: 1ex;
|
||||
}
|
||||
|
||||
.kc_table {
|
||||
font-size: x-small;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.kc_leftcol {
|
||||
width: 32px;
|
||||
vertical-align: center;
|
||||
}
|
||||
|
||||
.kc_middlecol {
|
||||
}
|
||||
|
||||
.kc_rightcol {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.kc_use_text {
|
||||
margin-bottom: 0;
|
||||
font-size: xx-small;
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue