1/*
2 Copyright (C) 2009 George Kiagiadakis <gkiagia@users.sourceforge.net>
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17#ifndef DRKONQI_GLOBALS_H
18#define DRKONQI_GLOBALS_H
19
20#include <KGuiItem>
21#include <KIcon>
22
23/** This class provides a custom constructor to fill the "toolTip"
24 * and "whatsThis" texts of KGuiItem with the same text.
25 */
26class KGuiItem2 : public KGuiItem
27{
28public:
29 inline KGuiItem2(const QString &text, const KIcon &icon, const QString &toolTip)
30 : KGuiItem(text, icon, toolTip, toolTip) {}
31};
32
33/* Urls are defined globally here, so that they can change easily */
34#define KDE_BUGZILLA_URL "https://bugs.kde.org/"
35#define KDE_BUGZILLA_CREATE_ACCOUNT_URL KDE_BUGZILLA_URL "createaccount.cgi"
36#define KDE_BUGZILLA_SHORT_URL "bugs.kde.org"
37#define TECHBASE_HOWTO_DOC "http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports#Preparing_your_KDE_packages"
38
39/* IDs for bugreport assistant pages -> help anchors */
40#define PAGE_INTRODUCTION_ID "IntroductionID"
41#define PAGE_CRASHINFORMATION_ID "BacktraceID"
42#define PAGE_AWARENESS_ID "AwarenessID"
43#define PAGE_CONCLUSIONS_ID "ConclusionsID"
44#define PAGE_BZLOGIN_ID "BugzillaLoginID"
45#define PAGE_BZDUPLICATES_ID "BugzillaDuplicatesID"
46#define PAGE_BZDETAILS_ID "BugzillaDetailsID"
47#define PAGE_BZPREVIEW_ID "BugzillaPreviewID"
48#define PAGE_BZSEND_ID "BugzillaSendID"
49
50#define PAGE_HELP_BEGIN_ID "Begin"
51
52#endif
53