Source Code (Use browser search to find items of interest.)
Class Index
kcontrol'AboutWidget (./kdebase/kcontrol/kcontrol/aboutwidget.h:25)
class AboutWidget : public QVBox
{
Q_OBJECT
public:
AboutWidget(QWidget *parent, const char *name=0);
};
kcontrol'AboutWidget::AboutWidget() (./kdebase/kcontrol/kcontrol/aboutwidget.cpp:32)
AboutWidget::AboutWidget(QWidget *parent , const char *name)
: QVBox(parent, name)
{
KTextBrowser *browser = new KTextBrowser(this);
QColorGroup clgrp = colorGroup();
clgrp.setColor( QColorGroup::Base, clgrp.background() );
browser->setPaperColorGroup( clgrp );
browser->setFrameStyle(QFrame::NoFrame);
browser->setFocusPolicy(NoFocus);
browser->setNotifyClick(true);
QString wizard = locate("data", "kcontrol/pics/wizard.png");
QString kcontrol = KGlobal::iconLoader()->iconPath("kcontrol", KIcon::SizeLarge);
QString text = "<p>"
"<table cellpadding=\"2\" cellspacing=\"1\" border=\"0\" width=\"98%\">"
"<tr>"
"<td width=\"1%\">"
"<img src=\""
+ kcontrol +
"\" border=\"0\">"
"</td>"
"<td width=\"90%\">"
"<b><big><big>"
+ i18n("KDE Control Center") +
"</big></big></b>"
"<br>"
+ i18n("Configure your desktop environment.") +
"</td></tr>"
"</table>"
"</p>"
"<p>"
+ i18n("Welcome to the \"KDE Control Center\", a central place to configure your "
"desktop environment. "
"Select a item from the index on the left to load a configuration module. ") +
"</p>"
"<p>"
"<table cellpadding=0 cellspacing=0 border=0 width=100%>"
"<tr>"
"<td>"
"<table cellpadding=2 cellspacing=1 border=0 width=50%>"
"<tr>"
"<td>"
+ i18n("KDE version:") +
"</td>"
"<td><b>"
+ KCGlobal::kdeVersion() +
"</b></td>"
"</tr>"
"<tr>"
"<td>"
+ i18n("User:") +
"</td>"
"<td><b>"
+ KCGlobal::userName() +
"</td></b>"
"</tr>"
"<tr>"
"<td>"
+ i18n("Hostname:") +
"</td>"
"<td><b>"
+ KCGlobal::hostName() +
"</td></b>"
"</tr>"
"<tr>"
"<td>"
+ i18n("System:") +
"</td>"
"<td><b>"
+ KCGlobal::systemName() +
"</td></b>"
"</tr>"
"<tr>"
"<td>"
+ i18n("Release:") +
"</td>"
"<td><b>"
+ KCGlobal::systemRelease() +
"</td></b>"
"</tr>"
"<tr>"
"<td>"
+ i18n("Machine:") +
"</td>"
"<td><b>"
+ KCGlobal::systemMachine() +
"</td></b>"
"</tr>"
"<tr>"
"<td colspan=2>"
+ i18n("Click on the \"Help\" tab on the left to browse a help text on the active "
"control module. Use the \"Search\" tab if you are unsure where to look for "
"a particular configuration option.") +
"</td>"
"</tr>"
"</table>"
"</td>"
"<td>"
"<table cellpadding=2 cellspacing=1 border=0 width=50%>"
"<tr>"
"<td>"
"<img src=\""
+ wizard +
"\" align=\"left\" border=\"0\">"
"</td>"
"</tr>"
"</table>"
"</td>"
"</tr>"
"</table>"
"</p>";
browser->setText(text);
}