Skip to content

Commit 504679b

Browse files
committed
Release 1.00
0 parents  commit 504679b

89 files changed

Lines changed: 13485 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# This file is used to ignore files which are generated
2+
# ----------------------------------------------------------------------------
3+
4+
*~
5+
*.autosave
6+
*.a
7+
*.core
8+
*.moc
9+
*.o
10+
*.obj
11+
*.orig
12+
*.rej
13+
*.so
14+
*.so.*
15+
*_pch.h.cpp
16+
*_resource.rc
17+
*.qm
18+
.#*
19+
*.*#
20+
core
21+
!core/
22+
tags
23+
.DS_Store
24+
.directory
25+
*.debug
26+
Makefile*
27+
*.prl
28+
*.app
29+
moc_*.cpp
30+
ui_*.h
31+
qrc_*.cpp
32+
Thumbs.db
33+
*.res
34+
*.rc
35+
/.qmake.cache
36+
/.qmake.stash
37+
zout
38+
39+
# qtcreator generated files
40+
*.pro.user*
41+
42+
# xemacs temporary files
43+
*.flc
44+
45+
# Vim temporary files
46+
.*.swp
47+
48+
# Visual Studio generated files
49+
*.ib_pdb_index
50+
*.idb
51+
*.ilk
52+
*.pdb
53+
*.sln
54+
*.suo
55+
*.vcproj
56+
*vcproj.*.*.user
57+
*.ncb
58+
*.sdf
59+
*.opensdf
60+
*.vcxproj
61+
*vcxproj.*
62+
63+
# MinGW generated files
64+
*.Debug
65+
*.Release
66+
67+
# Python byte code
68+
*.pyc
69+
70+
# Binaries
71+
# --------
72+
*.dll
73+
#*.exe
74+

Z80Explorer.pro

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
QT += core gui widgets xml concurrent script network
2+
3+
CONFIG += c++11
4+
5+
INCLUDEPATH += src
6+
7+
RC_ICONS = src/app.ico
8+
9+
# The following define makes your compiler emit warnings if you use
10+
# any Qt feature that has been marked deprecated (the exact warnings
11+
# depend on your compiler). Please consult the documentation of the
12+
# deprecated API in order to know how to port your code away from it.
13+
DEFINES += QT_DEPRECATED_WARNINGS
14+
win32 {
15+
DEFINES += WINDOWS
16+
DEFINES += _CRT_SECURE_NO_WARNINGS
17+
}
18+
19+
# You can also make your code fail to compile if it uses deprecated APIs.
20+
# In order to do so, uncomment the following line.
21+
# You can also select to disable deprecated APIs only up to a certain version of Qt.
22+
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
23+
24+
SOURCES += \
25+
src/ClassAnnotate.cpp \
26+
src/ClassApplog.cpp \
27+
src/ClassChip.cpp \
28+
src/ClassColors.cpp \
29+
src/ClassController.cpp \
30+
src/ClassLogic.cpp \
31+
src/ClassNetlist.cpp \
32+
src/ClassScript.cpp \
33+
src/ClassSimZ80.cpp \
34+
src/ClassTip.cpp \
35+
src/ClassTrickbox.cpp \
36+
src/ClassWatch.cpp \
37+
src/DialogEditAnnotations.cpp \
38+
src/DialogEditBuses.cpp \
39+
src/DialogEditColors.cpp \
40+
src/DialogEditNets.cpp \
41+
src/DialogEditWatchlist.cpp \
42+
src/DialogEditWaveform.cpp \
43+
src/DialogSchematic.cpp \
44+
src/DockCommand.cpp \
45+
src/DockImageView.cpp \
46+
src/DockLog.cpp \
47+
src/DockMonitor.cpp \
48+
src/DockWaveform.cpp \
49+
src/MainWindow.cpp \
50+
src/WidgetEditColor.cpp \
51+
src/WidgetGraphicsView.cpp \
52+
src/WidgetImageOverlay.cpp \
53+
src/WidgetImageView.cpp \
54+
src/WidgetToolbar.cpp \
55+
src/WidgetWaveform.cpp \
56+
src/main.cpp
57+
58+
HEADERS += \
59+
src/AppTypes.h \
60+
src/ClassAnnotate.h \
61+
src/ClassApplog.h \
62+
src/ClassChip.h \
63+
src/ClassColors.h \
64+
src/ClassController.h \
65+
src/ClassException.h \
66+
src/ClassLogic.h \
67+
src/ClassNetlist.h \
68+
src/ClassScript.h \
69+
src/ClassSimZ80.h \
70+
src/ClassSingleton.h \
71+
src/ClassTip.h \
72+
src/ClassTrickbox.h \
73+
src/ClassWatch.h \
74+
src/DialogEditAnnotations.h \
75+
src/DialogEditBuses.h \
76+
src/DialogEditColors.h \
77+
src/DialogEditNets.h \
78+
src/DialogEditWatchlist.h \
79+
src/DialogEditWaveform.h \
80+
src/DialogSchematic.h \
81+
src/DockCommand.h \
82+
src/DockImageView.h \
83+
src/DockLog.h \
84+
src/DockMonitor.h \
85+
src/DockWaveform.h \
86+
src/MainWindow.h \
87+
src/WidgetEditColor.h \
88+
src/WidgetGraphicsView.h \
89+
src/WidgetImageOverlay.h \
90+
src/WidgetImageView.h \
91+
src/WidgetToolbar.h \
92+
src/WidgetWaveform.h \
93+
src/z80state.h
94+
95+
FORMS += \
96+
src/DialogEditAnnotations.ui \
97+
src/DialogEditBuses.ui \
98+
src/DialogEditColors.ui \
99+
src/DialogEditNets.ui \
100+
src/DialogEditWatchlist.ui \
101+
src/DialogEditWaveform.ui \
102+
src/DialogSchematic.ui \
103+
src/DockCommand.ui \
104+
src/DockImageView.ui \
105+
src/DockLog.ui \
106+
src/DockMonitor.ui \
107+
src/DockWaveform.ui \
108+
src/MainWindow.ui \
109+
src/WidgetEditColor.ui \
110+
src/WidgetImageOverlay.ui \
111+
src/WidgetToolbar.ui
112+
113+
# Default rules for deployment.
114+
qnx: target.path = /tmp/$${TARGET}/bin
115+
else: unix:!android: target.path = /opt/$${TARGET}/bin
116+
!isEmpty(target.path): INSTALLS += target

cleanup.reg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Windows Registry Editor Version 5.00
2+
3+
[-HKEY_CURRENT_USER\Software\Baltazar Studios, LLC\Z80Explorer]

highDPI.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
set QT_ENABLE_HIGHDPI_SCALING=1
2+
Z80Explorer.exe

release.bat

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
set RELEASEDIR=Z80Explorer
2+
set VCINSTALLDIR="C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC"
3+
4+
set path=C:\Qt\5.15.0\msvc2015_64\bin;%VCINSTALLDIR%;%path%
5+
6+
call vcvarsall.bat
7+
8+
windeployqt.exe --compiler-runtime Z80Explorer.exe
9+
if errorlevel 1 goto end
10+
11+
mkdir %RELEASEDIR%
12+
mkdir %RELEASEDIR%\platforms
13+
mkdir %RELEASEDIR%\styles
14+
15+
xcopy /Y "%VCINSTALLDIR%"\redist\x64\Microsoft.VC140.CRT\vccorlib140.dll %RELEASEDIR%
16+
xcopy /Y "%VCINSTALLDIR%"\redist\x64\Microsoft.VC140.CRT\vcruntime140.dll %RELEASEDIR%
17+
xcopy /Y "%VCINSTALLDIR%"\redist\x64\Microsoft.VC140.CRT\msvcp140.dll %RELEASEDIR%
18+
rem copy vcredist_x64.exe %RELEASEDIR%
19+
20+
xcopy /Y Z80Explorer.exe %RELEASEDIR%
21+
xcopy /Y highDPI.bat %RELEASEDIR%
22+
xcopy /Y cleanup.reg %RELEASEDIR%
23+
xcopy /Y Qt5Core.dll %RELEASEDIR%
24+
xcopy /Y Qt5Gui.dll %RELEASEDIR%
25+
xcopy /Y Qt5Script.dll %RELEASEDIR%
26+
xcopy /Y Qt5Network.dll %RELEASEDIR%
27+
xcopy /Y Qt5Widgets.dll %RELEASEDIR%
28+
xcopy /Y platforms\qwindows.dll %RELEASEDIR%\platforms
29+
xcopy /Y styles\qwindowsvistastyle.dll %RELEASEDIR%\styles
30+
31+
rem Download Z80 resources from the public git
32+
cd %RELEASEDIR%
33+
git clone --depth=1 --branch=master https://github.com/gdevic/Z80Explorer_Z80.git resource
34+
rmdir /S /Q "resource/".git"
35+
36+
@echo.
37+
@echo Release files are in Z80Explorer folder
38+
:end

src/AppTypes.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#ifndef APPTYPES_H
2+
#define APPTYPES_H
3+
4+
#define MAX_TRANS 9000 // Max number of transistors (est. for Z80)
5+
#define MAX_NETS 3600 // Max number of nets (est. for Z80)
6+
7+
#define APP_VERSION 100 // Application version (minor % 100)
8+
9+
#define HAVE_PREBUILT_LAYERMAP 1 // We have extracted a fully prebuilt layermap.bin and can use it
10+
11+
#define FIX_Z80_LAYERMAP_TO_VISUAL_ENUM 1 // Fix to prebuilt layermap incorrectly counting nets between 1559 and 1710
12+
13+
#include <stdint.h>
14+
15+
typedef uint16_t net_t; // Type of an index into the net array (type of a net id value)
16+
typedef uint16_t tran_t; // Type of an index into the transistor array (type of a transistor id value)
17+
typedef uint8_t pin_t; // Type of the pin state (0, 1; or 2 for floating)
18+
19+
#if !defined (NETOP)
20+
#define NETOP
21+
enum class Netop : unsigned char { SetName, Rename, DeleteName, Changed };
22+
#endif
23+
24+
#endif // APPTYPES_H

0 commit comments

Comments
 (0)