File indexing completed on 2022-11-23 12:12:12

0001 /*
0002     SPDX-FileCopyrightText: 2009 George Kiagiadakis <gkiagia@users.sourceforge.net>
0003     SPDX-FileCopyrightText: 2021 Harald Sitter <sitter@kde.org>
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 #ifndef DRKONQI_GLOBALS_H
0007 #define DRKONQI_GLOBALS_H
0008 
0009 #include <KGuiItem>
0010 #include <QIcon>
0011 
0012 #include "drkonqi.h"
0013 
0014 /** This class provides a custom constructor to fill the "toolTip"
0015  * and "whatsThis" texts of KGuiItem with the same text.
0016  */
0017 class KGuiItem2 : public KGuiItem
0018 {
0019 public:
0020     inline KGuiItem2(const QString &text, const QIcon &icon, const QString &toolTip)
0021         : KGuiItem(text, icon, toolTip, toolTip)
0022     {
0023     }
0024 };
0025 
0026 namespace DrStandardGuiItem
0027 {
0028 KGuiItem2 appRestart();
0029 }; // namespace StandardGuiItem
0030 
0031 /* Urls are defined globally here, so that they can change easily */
0032 #define KDE_BUGZILLA_URL DrKonqi::kdeBugzillaURL()
0033 #define KDE_BUGZILLA_CREATE_ACCOUNT_URL KDE_BUGZILLA_URL + QStringLiteral("createaccount.cgi")
0034 #define KDE_BUGZILLA_SHORT_URL "bugs.kde.org"
0035 #define TECHBASE_HOWTO_DOC "https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Preparing_your_KDE_packages"
0036 
0037 /* IDs for bugreport assistant pages -> help anchors */
0038 #define PAGE_INTRODUCTION_ID "IntroductionID"
0039 #define PAGE_CRASHINFORMATION_ID "BacktraceID"
0040 #define PAGE_AWARENESS_ID "AwarenessID"
0041 #define PAGE_CONCLUSIONS_ID "ConclusionsID"
0042 #define PAGE_BZVERSION_ID "BugzillaVersionID"
0043 #define PAGE_BZENTITIES_ID "BugzillaSupportedEntitiesID"
0044 #define PAGE_BZLOGIN_ID "BugzillaLoginID"
0045 #define PAGE_BZDUPLICATES_ID "BugzillaDuplicatesID"
0046 #define PAGE_BZDETAILS_ID "BugzillaDetailsID"
0047 #define PAGE_BZPREVIEW_ID "BugzillaPreviewID"
0048 #define PAGE_BZSEND_ID "BugzillaSendID"
0049 
0050 #define PAGE_HELP_BEGIN_ID "Begin"
0051 
0052 #endif