Skip to content

Commit 0e1b95b

Browse files
author
redcode
committed
Initial Qt support.
1 parent 3f4a679 commit 0e1b95b

40 files changed

+2071
-18
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ development/Xcode/μZX (OS X).xcodeproj/project.xcworkspace
33
development/Xcode/μZX (OS X).xcodeproj/xcuserdata
44
development/Xcode/μZX (iOS).xcodeproj/project.xcworkspace
55
development/Xcode/μZX (iOS).xcodeproj/xcuserdata
6+
development/Qt Creator/μZX.pro.user
67

78
# OS generated files
89
.DS_Store

development/Qt Creator/μZX.pro

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#-------------------------------------------------
2+
#
3+
# Project created by QtCreator 2014-09-24T14:37:20
4+
#
5+
#-------------------------------------------------
6+
7+
QMAKE_CXXFLAGS += -DEMULATION_CPU_Z80_NO_SLOTS
8+
QMAKE_CFLAGS += -DEMULATION_CPU_Z80_NO_SLOTS
9+
10+
QT += core guiQT opengl
11+
12+
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
13+
14+
LIBS += -lX11
15+
16+
TARGET = μZX
17+
TEMPLATE = app
18+
19+
P_SOURCES = ../../sources
20+
P_SOURCES_COMMON = $$P_SOURCES/common
21+
P_SOURCES_COMMON_EMULATORS = $$P_SOURCES/common/emulators
22+
P_SOURCES_QT = $$P_SOURCES/Qt
23+
P_RESOURCES = ../../resources
24+
P_RESOURCES_COMMON = $$P_RESOURCES/common
25+
P_RESOURCES_QT_UI = $$P_RESOURCES/Qt/UI
26+
27+
INCLUDEPATH += \
28+
$$P_SOURCES_COMMON \
29+
$$P_SOURCES_COMMON_EMULATORS \
30+
$$P_SOURCES_QT \
31+
32+
include(../../sources/common/common.pri)
33+
include(../../sources/common/emulators/emulators.pri)
34+
include(../../sources/Qt/Qt.pri)
35+
include(../../resources/Qt/UI/UI.pri)
36+
include(../../resources/common/resources.pri)

resources/Qt/UI/AboutDialog.ui

+283
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,283 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ui version="4.0">
3+
<class>AboutDialog</class>
4+
<widget class="QDialog" name="AboutDialog">
5+
<property name="geometry">
6+
<rect>
7+
<x>0</x>
8+
<y>0</y>
9+
<width>400</width>
10+
<height>299</height>
11+
</rect>
12+
</property>
13+
<property name="windowTitle">
14+
<string>About NEStalin</string>
15+
</property>
16+
<property name="styleSheet">
17+
<string notr="true"/>
18+
</property>
19+
<widget class="QLabel" name="label">
20+
<property name="geometry">
21+
<rect>
22+
<x>0</x>
23+
<y>114</y>
24+
<width>400</width>
25+
<height>18</height>
26+
</rect>
27+
</property>
28+
<property name="font">
29+
<font>
30+
<pointsize>13</pointsize>
31+
<weight>75</weight>
32+
<bold>true</bold>
33+
</font>
34+
</property>
35+
<property name="text">
36+
<string>μZX</string>
37+
</property>
38+
<property name="alignment">
39+
<set>Qt::AlignHCenter|Qt::AlignTop</set>
40+
</property>
41+
<property name="textInteractionFlags">
42+
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
43+
</property>
44+
</widget>
45+
<widget class="QLabel" name="label_2">
46+
<property name="geometry">
47+
<rect>
48+
<x>0</x>
49+
<y>134</y>
50+
<width>400</width>
51+
<height>16</height>
52+
</rect>
53+
</property>
54+
<property name="font">
55+
<font>
56+
<pointsize>8</pointsize>
57+
</font>
58+
</property>
59+
<property name="text">
60+
<string>Version 0.1 (1024)</string>
61+
</property>
62+
<property name="alignment">
63+
<set>Qt::AlignCenter</set>
64+
</property>
65+
<property name="textInteractionFlags">
66+
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
67+
</property>
68+
</widget>
69+
<widget class="QLabel" name="label_3">
70+
<property name="geometry">
71+
<rect>
72+
<x>0</x>
73+
<y>174</y>
74+
<width>400</width>
75+
<height>26</height>
76+
</rect>
77+
</property>
78+
<property name="font">
79+
<font>
80+
<pointsize>8</pointsize>
81+
</font>
82+
</property>
83+
<property name="text">
84+
<string>Copyright © 2014-2015 Manuel Sainz de Baranda y Goñi
85+
Released under the terms of the GNU General Public License v3</string>
86+
</property>
87+
<property name="alignment">
88+
<set>Qt::AlignHCenter|Qt::AlignTop</set>
89+
</property>
90+
<property name="textInteractionFlags">
91+
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
92+
</property>
93+
</widget>
94+
<widget class="QLabel" name="compilationTimeLabel">
95+
<property name="geometry">
96+
<rect>
97+
<x>0</x>
98+
<y>274</y>
99+
<width>400</width>
100+
<height>16</height>
101+
</rect>
102+
</property>
103+
<property name="font">
104+
<font>
105+
<pointsize>7</pointsize>
106+
</font>
107+
</property>
108+
<property name="text">
109+
<string>Compiled on 2015-02-26 09:36 UTC with GCC v3.4.2</string>
110+
</property>
111+
<property name="alignment">
112+
<set>Qt::AlignCenter</set>
113+
</property>
114+
<property name="textInteractionFlags">
115+
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
116+
</property>
117+
</widget>
118+
<widget class="QToolButton" name="sourceCodeButton">
119+
<property name="geometry">
120+
<rect>
121+
<x>80</x>
122+
<y>209</y>
123+
<width>80</width>
124+
<height>55</height>
125+
</rect>
126+
</property>
127+
<property name="font">
128+
<font>
129+
<pointsize>8</pointsize>
130+
</font>
131+
</property>
132+
<property name="cursor">
133+
<cursorShape>PointingHandCursor</cursorShape>
134+
</property>
135+
<property name="layoutDirection">
136+
<enum>Qt::LeftToRight</enum>
137+
</property>
138+
<property name="autoFillBackground">
139+
<bool>false</bool>
140+
</property>
141+
<property name="styleSheet">
142+
<string notr="true"/>
143+
</property>
144+
<property name="text">
145+
<string>Sources</string>
146+
</property>
147+
<property name="icon">
148+
<iconset>
149+
<normaloff>:/icons/Source Code.png</normaloff>:/icons/Source Code.png</iconset>
150+
</property>
151+
<property name="iconSize">
152+
<size>
153+
<width>32</width>
154+
<height>32</height>
155+
</size>
156+
</property>
157+
<property name="toolButtonStyle">
158+
<enum>Qt::ToolButtonTextUnderIcon</enum>
159+
</property>
160+
<property name="autoRaise">
161+
<bool>true</bool>
162+
</property>
163+
</widget>
164+
<widget class="QToolButton" name="sourceCodeButton_2">
165+
<property name="geometry">
166+
<rect>
167+
<x>160</x>
168+
<y>209</y>
169+
<width>80</width>
170+
<height>55</height>
171+
</rect>
172+
</property>
173+
<property name="font">
174+
<font>
175+
<pointsize>8</pointsize>
176+
</font>
177+
</property>
178+
<property name="cursor">
179+
<cursorShape>PointingHandCursor</cursorShape>
180+
</property>
181+
<property name="layoutDirection">
182+
<enum>Qt::LeftToRight</enum>
183+
</property>
184+
<property name="autoFillBackground">
185+
<bool>false</bool>
186+
</property>
187+
<property name="styleSheet">
188+
<string notr="true"/>
189+
</property>
190+
<property name="text">
191+
<string>Website</string>
192+
</property>
193+
<property name="icon">
194+
<iconset>
195+
<normaloff>:/icons/Home Page.png</normaloff>:/icons/Home Page.png</iconset>
196+
</property>
197+
<property name="iconSize">
198+
<size>
199+
<width>32</width>
200+
<height>32</height>
201+
</size>
202+
</property>
203+
<property name="toolButtonStyle">
204+
<enum>Qt::ToolButtonTextUnderIcon</enum>
205+
</property>
206+
<property name="autoRaise">
207+
<bool>true</bool>
208+
</property>
209+
</widget>
210+
<widget class="QToolButton" name="sourceCodeButton_3">
211+
<property name="geometry">
212+
<rect>
213+
<x>240</x>
214+
<y>209</y>
215+
<width>80</width>
216+
<height>55</height>
217+
</rect>
218+
</property>
219+
<property name="font">
220+
<font>
221+
<pointsize>8</pointsize>
222+
</font>
223+
</property>
224+
<property name="cursor">
225+
<cursorShape>PointingHandCursor</cursorShape>
226+
</property>
227+
<property name="layoutDirection">
228+
<enum>Qt::LeftToRight</enum>
229+
</property>
230+
<property name="autoFillBackground">
231+
<bool>false</bool>
232+
</property>
233+
<property name="styleSheet">
234+
<string notr="true"/>
235+
</property>
236+
<property name="text">
237+
<string>Donate</string>
238+
</property>
239+
<property name="icon">
240+
<iconset>
241+
<normaloff>:/icons/Donate.png</normaloff>:/icons/Donate.png</iconset>
242+
</property>
243+
<property name="iconSize">
244+
<size>
245+
<width>36</width>
246+
<height>36</height>
247+
</size>
248+
</property>
249+
<property name="toolButtonStyle">
250+
<enum>Qt::ToolButtonTextUnderIcon</enum>
251+
</property>
252+
<property name="autoRaise">
253+
<bool>true</bool>
254+
</property>
255+
</widget>
256+
<widget class="QLabel" name="compilationTimeLabel_2">
257+
<property name="geometry">
258+
<rect>
259+
<x>0</x>
260+
<y>150</y>
261+
<width>400</width>
262+
<height>16</height>
263+
</rect>
264+
</property>
265+
<property name="font">
266+
<font>
267+
<pointsize>7</pointsize>
268+
</font>
269+
</property>
270+
<property name="text">
271+
<string>Linux / Qt 4 / GTK+ 3 / OpenGL</string>
272+
</property>
273+
<property name="alignment">
274+
<set>Qt::AlignHCenter|Qt::AlignTop</set>
275+
</property>
276+
<property name="textInteractionFlags">
277+
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
278+
</property>
279+
</widget>
280+
</widget>
281+
<resources/>
282+
<connections/>
283+
</ui>

0 commit comments

Comments
 (0)