Dooble
dooble_about.h
1 /*
2 ** Copyright (c) 2008 - present, Alexis Megas.
3 ** All rights reserved.
4 **
5 ** Redistribution and use in source and binary forms, with or without
6 ** modification, are permitted provided that the following conditions
7 ** are met:
8 ** 1. Redistributions of source code must retain the above copyright
9 ** notice, this list of conditions and the following disclaimer.
10 ** 2. Redistributions in binary form must reproduce the above copyright
11 ** notice, this list of conditions and the following disclaimer in the
12 ** documentation and/or other materials provided with the distribution.
13 ** 3. The name of the author may not be used to endorse or promote products
14 ** derived from Dooble without specific prior written permission.
15 **
16 ** DOOBLE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 ** IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 ** OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 ** IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 ** INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 ** NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 ** DOOBLE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27 
28 #ifndef dooble_about_h
29 #define dooble_about_h
30 
31 #include <QMainWindow>
32 
33 #include "ui_dooble_about.h"
34 
35 #if defined(__alpha__)
36 #define DOOBLE_ARCHITECTURE_STR "__alpha__"
37 #elif defined(__alpha_ev4__)
38 #define DOOBLE_ARCHITECTURE_STR "__alpha_ev4__"
39 #elif defined(__alpha_ev5__)
40 #define DOOBLE_ARCHITECTURE_STR "__alpha_ev5__"
41 #elif defined(__alpha_ev6__)
42 #define DOOBLE_ARCHITECTURE_STR "__alpha_ev6__"
43 #elif defined(__amd64__)
44 #define DOOBLE_ARCHITECTURE_STR "__amd64__"
45 #elif defined(__amd64)
46 #define DOOBLE_ARCHITECTURE_STR "__amd64"
47 #elif defined(__x86_64__)
48 #define DOOBLE_ARCHITECTURE_STR "__x86_64__"
49 #elif defined(__x86_64)
50 #define DOOBLE_ARCHITECTURE_STR "__x86_64"
51 #elif defined(__ARM_ARCH_6__)
52 #define DOOBLE_ARCHITECTURE_STR "__ARM_ARCH_6__"
53 #elif defined(__ARM_ARCH_6J__)
54 #define DOOBLE_ARCHITECTURE_STR "__ARM_ARCH_6J__"
55 #elif defined(__ARM_ARCH_6K__)
56 #define DOOBLE_ARCHITECTURE_STR "__ARM_ARCH_6K__"
57 #elif defined(__ARM_ARCH_6Z__)
58 #define DOOBLE_ARCHITECTURE_STR "__ARM_ARCH_6Z__"
59 #elif defined(__ARM_ARCH_6ZK__)
60 #define DOOBLE_ARCHITECTURE_STR "__ARM_ARCH_6ZK__"
61 #elif defined(__ARM_ARCH_6T2__)
62 #define DOOBLE_ARCHITECTURE_STR "__ARM_ARCH_6T2__"
63 #elif defined(__ARM_ARCH_7__)
64 #define DOOBLE_ARCHITECTURE_STR "__ARM_ARCH_7__"
65 #elif defined(__ARM_ARCH_7A__)
66 #define DOOBLE_ARCHITECTURE_STR "__ARM_ARCH_7A__"
67 #elif defined(__ARM_ARCH_7R__)
68 #define DOOBLE_ARCHITECTURE_STR "__ARM_ARCH_7R__"
69 #elif defined(__ARM_ARCH_7M__)
70 #define DOOBLE_ARCHITECTURE_STR "__ARM_ARCH_7M__"
71 #elif defined(__ARM_ARCH_7S__)
72 #define DOOBLE_ARCHITECTURE_STR "__ARM_ARCH_7S__"
73 #elif defined(i386)
74 #define DOOBLE_ARCHITECTURE_STR "i386"
75 #elif defined(__i386)
76 #define DOOBLE_ARCHITECTURE_STR "__i386"
77 #elif defined(__i386__)
78 #define DOOBLE_ARCHITECTURE_STR "__i386__"
79 #elif defined(__i486__)
80 #define DOOBLE_ARCHITECTURE_STR "__i486__"
81 #elif defined(__i586__)
82 #define DOOBLE_ARCHITECTURE_STR "__i586__"
83 #elif defined(__i686__)
84 #define DOOBLE_ARCHITECTURE_STR "__i686__"
85 #elif defined(_X86_)
86 #define DOOBLE_ARCHITECTURE_STR "_X86_"
87 #elif defined(__ia64__)
88 #define DOOBLE_ARCHITECTURE_STR "__ia64__"
89 #elif defined(_IA64)
90 #define DOOBLE_ARCHITECTURE_STR "_IA64"
91 #elif defined(__IA64__)
92 #define DOOBLE_ARCHITECTURE_STR "__IA64__"
93 #elif defined(__powerpc)
94 #define DOOBLE_ARCHITECTURE_STR "__powerpc"
95 #elif defined(__powerpc__)
96 #define DOOBLE_ARCHITECTURE_STR "__powerpc__"
97 #elif defined(__powerpc64__)
98 #define DOOBLE_ARCHITECTURE_STR "__powerpc64__"
99 #elif defined(__POWERPC__)
100 #define DOOBLE_ARCHITECTURE_STR "__POWERPC__"
101 #elif defined(__ppc__)
102 #define DOOBLE_ARCHITECTURE_STR "__ppc__"
103 #elif defined(__ppc64__)
104 #define DOOBLE_ARCHITECTURE_STR "__ppc64__"
105 #elif defined(__PPC__)
106 #define DOOBLE_ARCHITECTURE_STR "__PPC__"
107 #elif defined(__PPC64__)
108 #define DOOBLE_ARCHITECTURE_STR "__PPC64__"
109 #elif defined(_ARCH_PPC)
110 #define DOOBLE_ARCHITECTURE_STR "_ARCH_PPC"
111 #elif defined(_ARCH_PPC64)
112 #define DOOBLE_ARCHITECTURE_STR "_ARCH_PPC64"
113 #elif defined(__sparc__)
114 #define DOOBLE_ARCHITECTURE_STR "__sparc__"
115 #elif defined(__sparc)
116 #define DOOBLE_ARCHITECTURE_STR "__sparc"
117 #elif defined(__sparc_v8__)
118 #define DOOBLE_ARCHITECTURE_STR "__sparc_v8__"
119 #elif defined(__sparc_v9__)
120 #define DOOBLE_ARCHITECTURE_STR "__sparc_v9__"
121 #elif defined(__sparcv8)
122 #define DOOBLE_ARCHITECTURE_STR "__sparcv8"
123 #elif defined(__sparcv9)
124 #define DOOBLE_ARCHITECTURE_STR "__sparcv9"
125 #else
126 #define DOOBLE_ARCHITECTURE_STR "gingerjitter"
127 #endif
128 
129 class dooble_about: public QMainWindow
130 {
131  Q_OBJECT
132 
133  public:
134  dooble_about(void);
135 
136  protected:
137  void keyPressEvent(QKeyEvent *event);
138 
139  private:
140  Ui_dooble_about m_ui;
141 
142  private slots:
143  void slot_link_activated(const QString &link);
144 
145  signals:
146  void link_activated(const QUrl &url);
147 };
148 
149 #endif
Definition: dooble_about.h:129