Work in progress

This commit is contained in:
mlong 2021-03-13 13:05:32 -06:00
parent 9e2320e051
commit 1899f67536
10 changed files with 53 additions and 44 deletions

View File

@ -1,11 +1,14 @@
warning (In cpress.pro)
TEMPLATE = subdirs TEMPLATE = subdirs
SUBDIRS = zlib nufxlib diskimg libhfs SUBDIRS = zlib libhfs nufxlib diskimg
DEFINES += _CRT_NONSTDC_NO_WARNINGS DEFINES += _CRT_NONSTDC_NO_WARNINGS
DEFINES += _CRT_SECURE_NO_WARNINGS DEFINES += _CRT_SECURE_NO_WARNINGS
libhfs.depends = zlib libhfs.depends = zlib
nufxlib.depends = zlib
diskimg.depends = nufxlib libhfs nufxlib.depends = zlib libhfs
diskimg.depends = nufxlib libhfs zlib

View File

@ -1,7 +1,9 @@
warning (In diskimg.pro)
CONFIG += c++14 CONFIG += c++14
#CONFIG += debug_and_release CONFIG += debug_and_release
#TARGET = $$qtLibraryTarget(diskimg) TARGET = $$qtLibraryTarget(diskimg)
TARGET = diskimg #TARGET = diskimg
TEMPLATE = lib TEMPLATE = lib
@ -25,7 +27,7 @@ INCLUDEPATH += $$PWD/../ciderpress/nufxlib/libhfs
#DEFINES += EXCISE_GPL_CODE #DEFINES += EXCISE_GPL_CODE
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../nufxlib/release/ -lnufxlib win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../nufxlib/release/ -lnufxlib
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../nufxlib/debug/ -lnufxlib else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../nufxlib/debug/ -lnufxlibd
else:unix: LIBS += -L$$OUT_PWD/../nufxlib/ -lnufxlib else:unix: LIBS += -L$$OUT_PWD/../nufxlib/ -lnufxlib
INCLUDEPATH += $$PWD/../ciderpress/nufxlib INCLUDEPATH += $$PWD/../ciderpress/nufxlib
@ -33,21 +35,21 @@ DEPENDPATH += $$PWD/../nufxlib
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../zlib/release/ -lzlib win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../zlib/release/ -lzlib
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../zlib/debug/ -lzlib else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../zlib/debug/ -lzlibd
else:unix: LIBS += -L$$OUT_PWD/../zlib/ -lzlib else:unix: LIBS += -L$$OUT_PWD/../zlib/ -lzlib
INCLUDEPATH += $$PWD/../zlib INCLUDEPATH += $$PWD/../zlib
DEPENDPATH += $$PWD/../zlib DEPENDPATH += $$PWD/../zlib
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../libhfs/release/ -llibhfs win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../libhfs/release/ -llibhfs
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../libhfs/debug/ -llibhfs else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../libhfs/debug/ -llibhfsd
else:unix: LIBS += -L$$OUT_PWD/../libhfs/ -llibhfs else:unix: LIBS += -L$$OUT_PWD/../libhfs/ -llibhfs
INCLUDEPATH += $$PWD/../libhfs INCLUDEPATH += $$PWD/../libhfs
DEPENDPATH += $$PWD/../libhfs DEPENDPATH += $$PWD/../libhfs
win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../libhfs/release/liblibhfs.a #win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../libhfs/release/liblibhfs.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../libhfs/debug/liblibhfs.a #else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../libhfs/debug/liblibhfs.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../libhfs/release/libhfs.lib #else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../libhfs/release/libhfs.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../libhfs/debug/libhfs.lib #else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../libhfs/debug/libhfs.lib
else:unix: PRE_TARGETDEPS += $$OUT_PWD/../libhfs/liblibhfs.a #else:unix: PRE_TARGETDEPS += $$OUT_PWD/../libhfs/liblibhfs.a

View File

@ -1,7 +1,9 @@
warning (In libhfs.pro)
CONFIG += c++14 CONFIG += c++14
#CONFIG += debug_and_release CONFIG += debug_and_release
#TARGET = $$qtLibraryTarget(zlib) TARGET = $$qtLibraryTarget(libhfs)
TARGET = libhfs #TARGET = libhfs
TEMPLATE = lib TEMPLATE = lib
DEFINES += QT_NO_DEPRECATED_WARNINGS DEFINES += QT_NO_DEPRECATED_WARNINGS
DEFINES += _CRT_NONSTDC_NO_WARNINGS DEFINES += _CRT_NONSTDC_NO_WARNINGS

View File

@ -1,7 +1,9 @@
warning (In nufxlib.pro)
CONFIG += c++14 CONFIG += c++14
#CONFIG += debug_and_release CONFIG += debug_and_release
#TARGET = $$qtLibraryTarget(nufxlib) TARGET = $$qtLibraryTarget(nufxlib)
TARGET = nufxlib #TARGET = nufxlib
DEFINES += QT_NO_DEPRECATED_WARNINGS DEFINES += QT_NO_DEPRECATED_WARNINGS
DEFINES += _CRT_NONSTDC_NO_WARNINGS DEFINES += _CRT_NONSTDC_NO_WARNINGS
@ -19,18 +21,18 @@ HEADERS += $$files($$PWD/../ciderpress/nufxlib/*.h)
INCLUDEPATH += $$PWD/../ciderpress/nufxlib/ INCLUDEPATH += $$PWD/../ciderpress/nufxlib/
INCLUDEPATH += $$PWD/../ciderpress/zlib/ INCLUDEPATH += $$PWD/../ciderpress/zlib/
LIBS += vcruntime.lib libcmt.lib libvcruntime.lib libucrt.lib #LIBS += vcruntime.lib libcmt.lib libvcruntime.lib libucrt.lib userenv.lib
win32:CONFIG(release, debug|release): warning(nufxlib looking in $$OUT_PWD/../zlib/release ) win32:CONFIG(release, debug|release): warning(nufxlib looking in $$OUT_PWD/../zlib/release )
else:win32:CONFIG(debug, debug|release): warning(nufxlib looking in $$OUT_PWD/../zlib/debug ) else:win32:CONFIG(debug, debug|release): warning(nufxlib looking in $$OUT_PWD/../zlib/debug )
#win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../zlib/release/ -lzlib win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../zlib/release/ -lzlib
#else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../zlib/debug/ -lzlibd else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../zlib/debug/ -lzlibd
#else:unix: LIBS += -L$$OUT_PWD/../zlib/ -lzlib else:unix: LIBS += -L$$OUT_PWD/../zlib/ -lzlib
win32:CONFIG(release, debug|release): LIBS += $$OUT_PWD/../zlib/release/zlib.dll #win32:CONFIG(release, debug|release): LIBS += $$OUT_PWD/../zlib/release/zlib.dll
else:win32:CONFIG(debug, debug|release): LIBS += $$OUT_PWD/../zlib/debug/zlib.dll #else:win32:CONFIG(debug, debug|release): LIBS += $$OUT_PWD/../zlib/debug/zlib.dll
else:unix: LIBS += -L$$OUT_PWD/../zlib/ -lzlib.dll #else:unix: LIBS += -L$$OUT_PWD/../zlib/ -lzlib.dll
INCLUDEPATH += $$PWD/../zlib INCLUDEPATH += $$PWD/../zlib
DEPENDPATH += $$PWD/../zlib DEPENDPATH += $$PWD/../zlib

View File

@ -1,7 +1,9 @@
warning (In zlib.pro)
CONFIG += c++14 CONFIG += c++14
#CONFIG += debug_and_release CONFIG += debug_and_release
#TARGET = $$qtLibraryTarget(zlib) TARGET = $$qtLibraryTarget(zlib)
TARGET = zlib #TARGET = zlib
TEMPLATE = lib TEMPLATE = lib
DEFINES += QT_NO_DEPRECATED_WARNINGS DEFINES += QT_NO_DEPRECATED_WARNINGS

View File

@ -104,8 +104,8 @@ bool ASDiskImporter::importImage(QString filename, ASDiskData &into)
retval = true; retval = true;
} }
image.RemoveDiskFS(fs);
} }
image.RemoveDiskFS(fs);
} }
image.CloseImage(); image.CloseImage();
} }

View File

@ -32,8 +32,6 @@
#include "vtoc.h" #include "vtoc.h"
#include "tracksectorlist.h" #include "tracksectorlist.h"
#include "chunkbytelist.h"
#include "asdiskimporter.h" #include "asdiskimporter.h"
#include "asdiskdata.h" #include "asdiskdata.h"

View File

@ -46,12 +46,13 @@ int main(int argc, char** argv)
//qDebug () << "T at 2: " << s.at(2); //qDebug () << "T at 2: " << s.at(2);
// return 0; // return 0;
QApplication a(argc, argv);
QCoreApplication::setOrganizationName("LydianScaleSoftware"); QCoreApplication::setOrganizationName("LydianScaleSoftware");
QCoreApplication::setOrganizationDomain("lydianscale.com"); QCoreApplication::setOrganizationDomain("lydianscale.com");
QCoreApplication::setApplicationName("AppleSAWS"); QCoreApplication::setApplicationName("AppleSAWS");
QApplication a(argc, argv);
auto x = QFontDatabase::addApplicationFont(":/fonts/Print_Char_21.ttf"); auto x = QFontDatabase::addApplicationFont(":/fonts/Print_Char_21.ttf");
auto y = QFontDatabase::addApplicationFont(":/fonts/PR_Number_3.ttf"); auto y = QFontDatabase::addApplicationFont(":/fonts/PR_Number_3.ttf");

View File

@ -1,6 +1,7 @@
QT += core gui printsupport QT += core gui printsupport
CONFIG += c++11 CONFIG += c++11
CONFIG += debug_and_release
MOC_DIR = ./.build MOC_DIR = ./.build
UI_DIR = ./.build UI_DIR = ./.build
@ -111,7 +112,6 @@ SOURCES += \
./applesoftfile/ApplesoftRetokenizer.cpp \ ./applesoftfile/ApplesoftRetokenizer.cpp \
./internals/JumpLineManager.cpp \ ./internals/JumpLineManager.cpp \
./ui/widgets/FlowLineTextBrowser.cpp \ ./ui/widgets/FlowLineTextBrowser.cpp \
./util/chunkbytelist.cpp \
./util/opcodes.cpp \ ./util/opcodes.cpp \
diskfiles/cpressdiskfs.cpp \ diskfiles/cpressdiskfs.cpp \
diskfiles/cpressdiskimage.cpp \ diskfiles/cpressdiskimage.cpp \
@ -156,7 +156,6 @@ HEADERS += \
./ui/startupdialog.h \ ./ui/startupdialog.h \
./ui/viewers/intbasicfileviewer.h \ ./ui/viewers/intbasicfileviewer.h \
./ui/widgets/notesdialog.h \ ./ui/widgets/notesdialog.h \
./util/chunkbytelist.h \
./util/opcodes.h \ ./util/opcodes.h \
./util/util.h \ ./util/util.h \
./util/applestring.h \ ./util/applestring.h \
@ -233,7 +232,7 @@ RESOURCES += \
./resource/resources.qrc \ ./resource/resources.qrc \
./qdarkstyle/style.qrc ./qdarkstyle/style.qrc
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../ads/lib/ -lqtadvanceddockingd win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../ads/lib/ -lqtadvanceddocking
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../ads/lib/ -lqtadvanceddockingd else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../ads/lib/ -lqtadvanceddockingd
else:unix: LIBS += -L$$OUT_PWD/../ads/src/ -lqtadvanceddockingd else:unix: LIBS += -L$$OUT_PWD/../ads/src/ -lqtadvanceddockingd
@ -241,21 +240,21 @@ INCLUDEPATH += $$PWD/../ads/src
DEPENDPATH += $$PWD/../ads/src DEPENDPATH += $$PWD/../ads/src
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../cpress/zlib/release/ -lzlib win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../cpress/zlib/release/ -lzlib
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../cpress/zlib/debug/ -lzlib else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../cpress/zlib/debug/ -lzlibd
else:unix: LIBS += -L$$OUT_PWD/../cpress/zlib/ -lzlib else:unix: LIBS += -L$$OUT_PWD/../cpress/zlib/ -lzlib
INCLUDEPATH += $$PWD/../cpress/zlib INCLUDEPATH += $$PWD/../cpress/zlib
DEPENDPATH += $$PWD/../cpress/zlib DEPENDPATH += $$PWD/../cpress/zlib
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../cpress/nufxlib/release/ -lnufxlib win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../cpress/nufxlib/release/ -lnufxlib
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../cpress/nufxlib/debug/ -lnufxlib else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../cpress/nufxlib/debug/ -lnufxlibd
else:unix: LIBS += -L$$OUT_PWD/../cpress/nufxlib/ -lnufxlib else:unix: LIBS += -L$$OUT_PWD/../cpress/nufxlib/ -lnufxlib
INCLUDEPATH += $$PWD/../cpress/nufxlib INCLUDEPATH += $$PWD/../cpress/nufxlib
DEPENDPATH += $$PWD/../cpress/nufxlib DEPENDPATH += $$PWD/../cpress/nufxlib
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../cpress/diskimg/release/ -ldiskimg win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../cpress/diskimg/release/ -ldiskimg
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../cpress/diskimg/debug/ -ldiskimg else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../cpress/diskimg/debug/ -ldiskimgd
else:unix: LIBS += -L$$OUT_PWD/../cpress/diskimg/ -ldiskimg else:unix: LIBS += -L$$OUT_PWD/../cpress/diskimg/ -ldiskimg
INCLUDEPATH += $$PWD/../cpress/diskimg INCLUDEPATH += $$PWD/../cpress/diskimg

View File

@ -48,6 +48,7 @@ DiskExplorerMapWidget::DiskExplorerMapWidget(int numtracks, int numsectors, QWid
gridlayout->setVerticalSpacing(1); gridlayout->setVerticalSpacing(1);
initColors(); initColors();
makeStatusWidget();
m_bgroup = new QButtonGroup(this); m_bgroup = new QButtonGroup(this);
@ -88,7 +89,7 @@ DiskExplorerMapWidget::DiskExplorerMapWidget(int numtracks, int numsectors, QWid
} }
} }
gridlayout->addWidget(new QLabel(""),18,0,1,5); // Stretchy Row gridlayout->addWidget(getStatusWidget(),18,0,1,35); // Stretchy Row
// gridlayout->setRowStretch(18,900); // gridlayout->setRowStretch(18,900);
for (auto rownum = 0; rownum < gridlayout->rowCount(); rownum++) for (auto rownum = 0; rownum < gridlayout->rowCount(); rownum++)
@ -102,7 +103,6 @@ DiskExplorerMapWidget::DiskExplorerMapWidget(int numtracks, int numsectors, QWid
gridlayout->setColumnStretch(colnum,1); gridlayout->setColumnStretch(colnum,1);
} }
makeStatusWidget();
} }
void DiskExplorerMapWidget::makeStatusWidget() void DiskExplorerMapWidget::makeStatusWidget()
@ -126,7 +126,7 @@ void DiskExplorerMapWidget::makeStatusWidget()
QString DiskExplorerMapWidget::getSectorDescription(int track, int sector) QString DiskExplorerMapWidget::getSectorDescription(int track, int sector)
{ {
if (track == 0) { if (track == 0 && sector == 0) {
return "Boot Sector"; return "Boot Sector";
} }
else if (track <= 2) else if (track <= 2)
@ -347,7 +347,7 @@ void DiskExplorerMapWidget::defineRoles(TSPair vtoc)
for (auto sec = 0; sec < m_numsectors; sec++) for (auto sec = 0; sec < m_numsectors; sec++)
{ {
TSPair ts(track,sec); TSPair ts(track,sec);
if (track == 0) if (track == 0 && sec == 0)
{ {
if (setButtonRole(ts,DiskSectorRole::BootSector)) if (setButtonRole(ts,DiskSectorRole::BootSector))
{ {