mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 08:51:24 +00:00
a410c025ea
- Complete port to KDE/Qt 4, no more use of QT3 Support - Simplify interface (remove multiple left tabs, add quick help in the top of the layout, use a KListWidgetSearchLine to filter by keywords and name) - Fix General Page (modules were not displayed), and allow user to select it from the left panel - Clean code and indentation structure - Remove big margins and useless layout/widgets to integrate KCMModule (request from Aaron Siego) - Memory module is now in a separate folder - Memory module has been rewritten, and the chart generation is now simpler. - Use color gradient and color scheme of System Monitor app (request from John Tapsell) - Use a default icon when the requested icon does not exist (request from David Jarvie) - Integrate patch from Konrad Rzepecki about improve PCI module by using libpci API. Add an optional dependency in CMake for this library FEATURE:88625 - The porting to KDE4 of all architecture may add some compilation errors (sorry, I have no AIX, HPUX, Solaris, SGI, FreeBSD, OpenBSD systems to test those source). However, some existing codes already did not compile. - Simplify source code by removing some part corresponding to the moment where KInfocenter and KControl were the same (it seems to). - Name and comments of each modules are now normalized. (even IOSlaves Info and Samba Status) CCMAIL:kde-core-devel@kde.org - Allow the future move of inner modules of kcm_info to a dedicated module (examples: Sound, X-Server, Partitions,...) TODO : - Improve Loading page layout - Port Partitions, Sound and Network Interfaces modules to Solid - Set my email as current maintainer svn path=/trunk/KDE/kdebase/apps/; revision=795596
75 lines
1.9 KiB
C++
75 lines
1.9 KiB
C++
/*
|
|
Copyright (c) 1999 Matthias Hoelzer-Kluepfel <hoelzer@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 "proxywidget.h"
|
|
#include "global.h"
|
|
|
|
#include <QByteArray>
|
|
#include <QFrame>
|
|
#include <QHBoxLayout>
|
|
#include <QVBoxLayout>
|
|
#include <QResizeEvent>
|
|
#include <QScrollArea>
|
|
#include <QLabel>
|
|
|
|
#include <kpushbutton.h>
|
|
#include <klocale.h>
|
|
#include <kapplication.h>
|
|
#include <kcmodule.h>
|
|
#include <kseparator.h>
|
|
#include <kdialog.h>
|
|
#include <kstandardguiitem.h>
|
|
#include <kdebug.h>
|
|
|
|
#include <unistd.h> // for getuid()
|
|
#include "proxywidget.moc"
|
|
|
|
|
|
ProxyWidget::ProxyWidget(KCModule *client) :
|
|
QWidget(), _changed(false), _client(client) {
|
|
|
|
kDebug() << "Creating Proxy Widget..." << endl;
|
|
|
|
if (_client->quickHelp().isEmpty() == false )
|
|
setWhatsThis(_client->quickHelp());
|
|
else
|
|
setWhatsThis(i18n("The currently loaded configuration module."));
|
|
|
|
QVBoxLayout *top = new QVBoxLayout(this);
|
|
top->setMargin(0);
|
|
top->setSpacing(0);
|
|
top->addWidget(_client);
|
|
|
|
kDebug() << "Proxy Widget created" << endl;
|
|
}
|
|
|
|
ProxyWidget::~ProxyWidget() {
|
|
delete _client;
|
|
}
|
|
|
|
QString ProxyWidget::quickHelp() const {
|
|
if (_client)
|
|
return _client->quickHelp();
|
|
else
|
|
return "";
|
|
}
|
|
|
|
const KAboutData *ProxyWidget::aboutData() const {
|
|
return _client->aboutData();
|
|
}
|