mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
rebranded help dialog and menu for a start
This commit is contained in:
parent
5483f556f1
commit
2e8eb12e94
22 changed files with 37 additions and 106 deletions
|
@ -590,7 +590,7 @@ namespace KStandardAction
|
|||
KDEUI_EXPORT KAction *aboutApp(const QObject *recvr, const char *slot, QObject *parent);
|
||||
|
||||
/**
|
||||
* Display the About KDE dialog.
|
||||
* Display the About Katana dialog.
|
||||
*/
|
||||
KDEUI_EXPORT KAction *aboutKDE(const QObject *recvr, const char *slot, QObject *parent);
|
||||
}
|
||||
|
|
|
@ -39,11 +39,11 @@ KAboutKdeDialog::KAboutKdeDialog(QWidget *parent)
|
|||
: KDialog(parent),
|
||||
d( 0 )
|
||||
{
|
||||
setPlainCaption(i18n("About KDE"));
|
||||
setPlainCaption(i18n("About Katana"));
|
||||
setButtons(KDialog::Close);
|
||||
|
||||
KTitleWidget *titleWidget = new KTitleWidget(this);
|
||||
titleWidget->setText(i18n("<html><font size=\"5\">KDE - Be Free!</font><br /><b>Platform Version %1</b></html>",
|
||||
titleWidget->setText(i18n("<html><font size=\"5\">Katana - Be Free and Be Fast!</font><br /><b>Platform Version %1</b></html>",
|
||||
QString(KDE_VERSION_STRING)));
|
||||
titleWidget->setPixmap(KIcon("kde").pixmap(48), KTitleWidget::ImageLeft);
|
||||
|
||||
|
@ -54,94 +54,25 @@ KAboutKdeDialog::KAboutKdeDialog(QWidget *parent)
|
|||
about->setOpenExternalLinks(true);
|
||||
about->setTextInteractionFlags(Qt::TextBrowserInteraction);
|
||||
about->setText(i18n("<html>"
|
||||
"<b>KDE</b> is a world-wide network of software engineers, artists, writers, translators and facilitators "
|
||||
"who are committed to <a href=\"%1\">Free Software</a> development. "
|
||||
"This community has created hundreds of Free Software applications as part of the KDE "
|
||||
"Development Platform and KDE Software Distribution.<br /><br />"
|
||||
"KDE is a cooperative enterprise in which no single entity controls the "
|
||||
"efforts or products of KDE to the exclusion of others. Everyone is welcome to join and "
|
||||
"contribute to KDE, including you.<br /><br />"
|
||||
"Visit <a href=\"%2\">%2</a> for "
|
||||
"more information about the KDE community and the software we produce.</html>",
|
||||
QLatin1String("http://www.gnu.org/philosophy/free-sw.html"),
|
||||
QLatin1String("http://www.kde.org/")));
|
||||
|
||||
QLabel *report = new QLabel;
|
||||
report->setMargin(10);
|
||||
report->setAlignment(Qt::AlignTop);
|
||||
report->setWordWrap(true);
|
||||
report->setOpenExternalLinks(true);
|
||||
report->setTextInteractionFlags(Qt::TextBrowserInteraction);
|
||||
report->setText(i18n("<html>"
|
||||
"Software can always be improved, and the KDE team is ready to "
|
||||
"do so. However, you - the user - must tell us when "
|
||||
"something does not work as expected or could be done better.<br /><br />"
|
||||
"KDE has a bug tracking system. Visit "
|
||||
"<a href=\"%1\">%1</a> or "
|
||||
"use the \"Report Bug...\" dialog from the \"Help\" menu to report bugs.<br /><br />"
|
||||
"If you have a suggestion for improvement then you are welcome to use "
|
||||
"the bug tracking system to register your wish. Make sure you use the "
|
||||
"severity called \"Wishlist\".</html>",
|
||||
QLatin1String("https://bugs.kde.org/")));
|
||||
|
||||
QLabel *join = new QLabel;
|
||||
join->setMargin(10);
|
||||
join->setAlignment(Qt::AlignTop);
|
||||
join->setWordWrap(true);
|
||||
join->setOpenExternalLinks(true);
|
||||
join->setTextInteractionFlags(Qt::TextBrowserInteraction);
|
||||
join->setText(i18n("<html>"
|
||||
"You do not have to be a software developer to be a member of the "
|
||||
"KDE team. You can join the national teams that translate "
|
||||
"program interfaces. You can provide graphics, themes, sounds, and "
|
||||
"improved documentation. You decide!"
|
||||
"<b>Katana</b> is fork of KDE Software Distribution with emphasis on speed."
|
||||
"<br /><br />"
|
||||
"Visit "
|
||||
"<a href=\"%1\">%1</a> "
|
||||
"for information on some projects in which you can participate."
|
||||
"Software can always be improved, and the Katana team is ready to do so. "
|
||||
"However, you - the user - must tell us when something does not work as "
|
||||
"expected or could be done better. You do not have to be a software developer "
|
||||
"to be a member of the Katana team. You can join the national teams that "
|
||||
"translate program interfaces. You can provide graphics, themes, sounds, and "
|
||||
"improved documentation. You decide!</html>"
|
||||
"<br /><br />"
|
||||
"If you need more information or documentation, then a visit to "
|
||||
"<a href=\"%2\">%2</a> "
|
||||
"will provide you with what you need.</html>",
|
||||
QLatin1String("http://www.kde.org/community/getinvolved/"),
|
||||
QLatin1String("http://techbase.kde.org/")));
|
||||
|
||||
QLabel *support = new QLabel;
|
||||
support->setMargin(10);
|
||||
support->setAlignment(Qt::AlignTop);
|
||||
support->setWordWrap(true);
|
||||
support->setOpenExternalLinks(true);
|
||||
support->setTextInteractionFlags(Qt::TextBrowserInteraction);
|
||||
support->setText(i18n("<html>"
|
||||
"KDE software is and will always be available free of charge, however creating it is not free.<br /><br />"
|
||||
"To support development the KDE community has formed the KDE e.V., a non-profit organization "
|
||||
"legally founded in Germany. KDE e.V. represents the KDE community in legal and financial matters. "
|
||||
"See <a href=\"%1\">%1</a>"
|
||||
" for information on KDE e.V.<br /><br />"
|
||||
"KDE benefits from many kinds of contributions, including financial. "
|
||||
"We use the funds to reimburse members and others for expenses "
|
||||
"they incur when contributing. Further funds are used for legal "
|
||||
"support and organizing conferences and meetings. <br /> <br />"
|
||||
"We would like to encourage you to support our efforts with a "
|
||||
"financial donation, using one of the ways described at "
|
||||
"<a href=\"%2\">%2</a>."
|
||||
"<br /><br />Thank you very much in advance for your support.</html>",
|
||||
QLatin1String("http://ev.kde.org/"),
|
||||
QLatin1String("http://www.kde.org/community/donations/")) + "<br /><br />"); // FIXME: ugly <br /> at the end...
|
||||
|
||||
QTabWidget *tabWidget = new QTabWidget;
|
||||
tabWidget->setUsesScrollButtons(false);
|
||||
tabWidget->addTab(about, i18nc("About KDE","&About"));
|
||||
tabWidget->addTab(report, i18n("&Report Bugs or Wishes"));
|
||||
tabWidget->addTab(join, i18n("&Join KDE"));
|
||||
tabWidget->addTab(support, i18n("&Support KDE"));
|
||||
"Visit <a href=\"%2\">%2</a> to learn more about about Katana.</html>",
|
||||
QLatin1String("http://www.entropy-linux.com/"),
|
||||
QLatin1String("http://www.entropy-linux.com/")));
|
||||
|
||||
QLabel *image = new QLabel;
|
||||
image->setPixmap(KStandardDirs::locate("data", "kdeui/pics/aboutkde.png"));
|
||||
|
||||
QHBoxLayout *midLayout = new QHBoxLayout;
|
||||
midLayout->addWidget(image);
|
||||
midLayout->addWidget(tabWidget);
|
||||
midLayout->addWidget(about);
|
||||
|
||||
QVBoxLayout *mainLayout = new QVBoxLayout;
|
||||
mainLayout->addWidget(titleWidget);
|
||||
|
|
|
@ -27,9 +27,9 @@
|
|||
namespace KDEPrivate {
|
||||
|
||||
/**
|
||||
* @short Standard "About KDE" dialog box
|
||||
* @short Standard "About Katana" dialog box
|
||||
*
|
||||
* This class provides the standard "About KDE" dialog box that is used
|
||||
* This class provides the standard "About Katana" dialog box that is used
|
||||
* in KHelpMenu. Normally you should not use this class directly, but
|
||||
* rather the KHelpMenu class or even better just subclass your
|
||||
* toplevel window from KMainWindow. If you do the latter, the help
|
||||
|
@ -46,7 +46,7 @@ class KAboutKdeDialog : public KDialog
|
|||
|
||||
public:
|
||||
/**
|
||||
* Constructor. Creates a fully featured "About KDE" dialog box.
|
||||
* Constructor. Creates a fully featured "About Katana" dialog box.
|
||||
* Note that this dialog is made modeless in the KHelpMenu class so
|
||||
* the users may expect a modeless dialog.
|
||||
*
|
||||
|
|
|
@ -176,7 +176,7 @@ static KStandardShortcutInfo g_infoStandardShortcut[] =
|
|||
{ ReportBug , "ReportBug" , I18N_NOOP2("@action", "Report Bug") , 0 , 0, KShortcut(), false },
|
||||
{ SwitchApplicationLanguage, "SwitchApplicationLanguage", I18N_NOOP2("@action", "Switch Application Language"), 0 , 0, KShortcut(), false },
|
||||
{ AboutApp , "AboutApp" , I18N_NOOP2("@action", "About Application") , 0 , 0, KShortcut(), false },
|
||||
{ AboutKDE , "AboutKDE" , I18N_NOOP2("@action", "About KDE") , 0 , 0, KShortcut(), false },
|
||||
{ AboutKDE , "AboutKDE" , I18N_NOOP2("@action", "About Katana") , 0 , 0, KShortcut(), false },
|
||||
|
||||
//dummy entry to catch simple off-by-one errors. Insert new entries before this line.
|
||||
{ AccelNone , 0 , 0 , 0 , 0, 0, KShortcut(), false }
|
||||
|
|
|
@ -208,7 +208,7 @@ class KDEUI_EXPORT KHelpMenu : public QObject
|
|||
void aboutApplication();
|
||||
|
||||
/**
|
||||
* Opens the standard "About KDE" dialog box.
|
||||
* Opens the standard "About Katana" dialog box.
|
||||
*/
|
||||
void aboutKDE();
|
||||
|
||||
|
|
|
@ -163,7 +163,7 @@ public:
|
|||
* It contains entries for the
|
||||
* help system (activated by F1), an optional "What's This?" entry
|
||||
* (activated by Shift F1), an application specific dialog box,
|
||||
* and an "About KDE" dialog box.
|
||||
* and an "About Katana" dialog box.
|
||||
*
|
||||
* Example (adding a standard help menu to your application):
|
||||
* \code
|
||||
|
@ -190,7 +190,7 @@ public:
|
|||
* It contains entries for the
|
||||
* help system (activated by F1), an optional "What's This?" entry
|
||||
* (activated by Shift F1), an application specific dialog box,
|
||||
* and an "About KDE" dialog box. You must create the application
|
||||
* and an "About Katana" dialog box. You must create the application
|
||||
* specific dialog box yourself. When the "About application"
|
||||
* menu entry is activated, a signal will trigger the
|
||||
* showAboutApplication slot. See showAboutApplication for more
|
||||
|
|
|
@ -50,7 +50,7 @@ information.</action></para></listitem>
|
|||
<varlistentry>
|
||||
<term><menuchoice>
|
||||
<guimenu>Help</guimenu>
|
||||
<guimenuitem>About KDE</guimenuitem>
|
||||
<guimenuitem>About Katana</guimenuitem>
|
||||
</menuchoice></term>
|
||||
<listitem><para><action>This displays the KDE version and other basic
|
||||
information.</action></para></listitem>
|
||||
|
|
|
@ -50,7 +50,7 @@ information.</action></para></listitem>
|
|||
<varlistentry>
|
||||
<term><menuchoice>
|
||||
<guimenu>Help</guimenu>
|
||||
<guimenuitem>About KDE</guimenuitem>
|
||||
<guimenuitem>About Katana</guimenuitem>
|
||||
</menuchoice></term>
|
||||
<listitem><para><action>This displays the KDE version and other basic
|
||||
information.</action></para></listitem>
|
||||
|
|
|
@ -50,7 +50,7 @@ information.</action></para></listitem>
|
|||
<varlistentry>
|
||||
<term><menuchoice>
|
||||
<guimenu>Help</guimenu>
|
||||
<guimenuitem>About KDE</guimenuitem>
|
||||
<guimenuitem>About Katana</guimenuitem>
|
||||
</menuchoice></term>
|
||||
<listitem><para><action>This displays the KDE version and other basic
|
||||
information.</action></para></listitem>
|
||||
|
|
|
@ -50,7 +50,7 @@ information.</action></para></listitem>
|
|||
<varlistentry>
|
||||
<term><menuchoice>
|
||||
<guimenu>Help</guimenu>
|
||||
<guimenuitem>About KDE</guimenuitem>
|
||||
<guimenuitem>About Katana</guimenuitem>
|
||||
</menuchoice></term>
|
||||
<listitem><para><action>This displays the KDE version and other basic
|
||||
information.</action></para></listitem>
|
||||
|
|
|
@ -50,7 +50,7 @@ information.</action></para></listitem>
|
|||
<varlistentry>
|
||||
<term><menuchoice>
|
||||
<guimenu>Help</guimenu>
|
||||
<guimenuitem>About KDE</guimenuitem>
|
||||
<guimenuitem>About Katana</guimenuitem>
|
||||
</menuchoice></term>
|
||||
<listitem><para><action>This displays the KDE version and other basic
|
||||
information.</action></para></listitem>
|
||||
|
|
|
@ -60,7 +60,7 @@ information.</action></para></listitem>
|
|||
<varlistentry>
|
||||
<term><menuchoice>
|
||||
<guimenu>Help</guimenu>
|
||||
<guimenuitem>About KDE</guimenuitem>
|
||||
<guimenuitem>About Katana</guimenuitem>
|
||||
</menuchoice></term>
|
||||
<listitem><para><action>This displays the KDE version and other basic
|
||||
information.</action></para></listitem>
|
||||
|
|
|
@ -50,7 +50,7 @@ information.</action></para></listitem>
|
|||
<varlistentry>
|
||||
<term><menuchoice>
|
||||
<guimenu>Help</guimenu>
|
||||
<guimenuitem>About KDE</guimenuitem>
|
||||
<guimenuitem>About Katana</guimenuitem>
|
||||
</menuchoice></term>
|
||||
<listitem><para><action>This displays the KDE version and other basic
|
||||
information.</action></para></listitem>
|
||||
|
|
|
@ -50,7 +50,7 @@ information.</action></para></listitem>
|
|||
<varlistentry>
|
||||
<term><menuchoice>
|
||||
<guimenu>Help</guimenu>
|
||||
<guimenuitem>About KDE</guimenuitem>
|
||||
<guimenuitem>About Katana</guimenuitem>
|
||||
</menuchoice></term>
|
||||
<listitem><para><action>This displays the KDE version and other basic
|
||||
information.</action></para></listitem>
|
||||
|
|
|
@ -50,7 +50,7 @@ information.</action></para></listitem>
|
|||
<varlistentry>
|
||||
<term><menuchoice>
|
||||
<guimenu>Help</guimenu>
|
||||
<guimenuitem>About KDE</guimenuitem>
|
||||
<guimenuitem>About Katana</guimenuitem>
|
||||
</menuchoice></term>
|
||||
<listitem><para><action>This displays the KDE version and other basic
|
||||
information.</action></para></listitem>
|
||||
|
|
|
@ -50,7 +50,7 @@ information.</action></para></listitem>
|
|||
<varlistentry>
|
||||
<term><menuchoice>
|
||||
<guimenu>Help</guimenu>
|
||||
<guimenuitem>About KDE</guimenuitem>
|
||||
<guimenuitem>About Katana</guimenuitem>
|
||||
</menuchoice></term>
|
||||
<listitem><para><action>This displays the KDE version and other basic
|
||||
information.</action></para></listitem>
|
||||
|
|
|
@ -50,7 +50,7 @@ information.</action></para></listitem>
|
|||
<varlistentry>
|
||||
<term><menuchoice>
|
||||
<guimenu>Help</guimenu>
|
||||
<guimenuitem>About KDE</guimenuitem>
|
||||
<guimenuitem>About Katana</guimenuitem>
|
||||
</menuchoice></term>
|
||||
<listitem><para><action>This displays the KDE version and other basic
|
||||
information.</action></para></listitem>
|
||||
|
|
|
@ -50,7 +50,7 @@ information.</action></para></listitem>
|
|||
<varlistentry>
|
||||
<term><menuchoice>
|
||||
<guimenu>Help</guimenu>
|
||||
<guimenuitem>About KDE</guimenuitem>
|
||||
<guimenuitem>About Katana</guimenuitem>
|
||||
</menuchoice></term>
|
||||
<listitem><para><action>This displays the KDE version and other basic
|
||||
information.</action></para></listitem>
|
||||
|
|
|
@ -50,7 +50,7 @@ information.</action></para></listitem>
|
|||
<varlistentry>
|
||||
<term><menuchoice>
|
||||
<guimenu>Help</guimenu>
|
||||
<guimenuitem>About KDE</guimenuitem>
|
||||
<guimenuitem>About Katana</guimenuitem>
|
||||
</menuchoice></term>
|
||||
<listitem><para><action>This displays the KDE version and other basic
|
||||
information.</action></para></listitem>
|
||||
|
|
|
@ -50,7 +50,7 @@ information.</action></para></listitem>
|
|||
<varlistentry>
|
||||
<term><menuchoice>
|
||||
<guimenu>Help</guimenu>
|
||||
<guimenuitem>About KDE</guimenuitem>
|
||||
<guimenuitem>About Katana</guimenuitem>
|
||||
</menuchoice></term>
|
||||
<listitem><para><action>This displays the KDE version and other basic
|
||||
information.</action></para></listitem>
|
||||
|
|
|
@ -50,7 +50,7 @@ information.</action></para></listitem>
|
|||
<varlistentry>
|
||||
<term><menuchoice>
|
||||
<guimenu>Help</guimenu>
|
||||
<guimenuitem>About KDE</guimenuitem>
|
||||
<guimenuitem>About Katana</guimenuitem>
|
||||
</menuchoice></term>
|
||||
<listitem><para><action>This displays the KDE version and other basic
|
||||
information.</action></para></listitem>
|
||||
|
|
|
@ -50,7 +50,7 @@ information.</action></para></listitem>
|
|||
<varlistentry>
|
||||
<term><menuchoice>
|
||||
<guimenu>Help</guimenu>
|
||||
<guimenuitem>About KDE</guimenuitem>
|
||||
<guimenuitem>About Katana</guimenuitem>
|
||||
</menuchoice></term>
|
||||
<listitem><para><action>This displays the KDE version and other basic
|
||||
information.</action></para></listitem>
|
||||
|
|
Loading…
Add table
Reference in a new issue