File indexing completed on 2024-10-13 12:20:58

0001 // Copyright (c) 2002-2003 Rob Kaper <cap@capsi.com>
0002 //
0003 // This program is free software; you can redistribute it and/or
0004 // modify it under the terms of the GNU General Public License
0005 // version 2 as published by the Free Software Foundation.
0006 //
0007 // This program is distributed in the hope that it will be useful,
0008 // but WITHOUT ANY WARRANTY; without even the implied warranty of
0009 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0010 // General Public License for more details.
0011 //
0012 // You should have received a copy of the GNU General Public License
0013 // along with this program; see the file COPYING.  If not, write to
0014 // the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0015 // Boston, MA 02110-1301, USA.
0016 
0017 #include "configdlg.h"
0018 
0019 #include <tokentheme.h>
0020 
0021 #include <settings.h>
0022 
0023 ConfigDialog::ConfigDialog(const TokenTheme &theme, QWidget *parent)
0024     : KConfigDialog(parent, QStringLiteral("configdialog"), Settings::self())
0025 {
0026     setWindowTitle(i18nc("@title:window", "Configure Atlantik"));
0027     setFaceType(KPageDialog::List);
0028 
0029     QWidget *w = new QWidget(this);
0030     m_uiGeneral.setupUi(w);
0031     w->layout()->setContentsMargins(0, 0, 0, 0);
0032     w->setObjectName(QStringLiteral("configGeneral"));
0033     addPage(w, i18n("General"), QStringLiteral("configure"), i18n("General"));
0034 
0035     w = new QWidget(this);
0036     m_uiPlayer.setupUi(w);
0037     m_uiPlayer.kcfg_PlayerImage->setTokenTheme(theme);
0038     w->layout()->setContentsMargins(0, 0, 0, 0);
0039     w->setObjectName(QStringLiteral("configPlayer"));
0040     addPage(w, i18n("Personalization"), QStringLiteral("user-identity"), i18n("Personalization"));
0041     
0042     w = new QWidget(this);
0043     m_uiBoard.setupUi(w);
0044     w->layout()->setContentsMargins(0, 0, 0, 0);
0045     w->setObjectName(QStringLiteral("configBoard"));
0046     addPage(w, i18n("Board"), QStringLiteral("monop_board"), i18n("Board"));
0047     
0048     w = new QWidget(this);
0049     m_uiMetaserver.setupUi(w);
0050     w->layout()->setContentsMargins(0, 0, 0, 0);
0051     w->setObjectName(QStringLiteral("configMetaserver"));
0052     addPage(w, i18n("Meta Server"), QStringLiteral("network-wired"), i18n("Meta Server"));
0053 
0054     setMinimumSize(sizeHint());
0055 }
0056 
0057 #include "moc_configdlg.cpp"