9XR support n companion, still not finished

This commit is contained in:
root
2013-12-21 15:45:05 +01:00
parent d396e85fe0
commit ee1b51b214
12 changed files with 86 additions and 40 deletions
+3 -3
View File
@@ -127,7 +127,7 @@ bool MdiChild::hasSelection()
void MdiChild::updateTitle()
{
QString title = userFriendlyCurrentFile() + "[*]"+" ("+GetEepromInterface()->getName()+QString(")");
if (GetEepromInterface()->getBoard() != BOARD_SKY9X)
if (!IS_SKY9X(GetEepromInterface()->getBoard()))
title += QString(" - %1 ").arg(EEPromAvail) + tr("free bytes");
setWindowTitle(title);
}
@@ -345,7 +345,7 @@ bool MdiChild::saveAs(bool isNew)
{
QSettings settings("companion9x", "companion9x");
QString fileName;
if (GetEepromInterface()->getBoard() == BOARD_SKY9X) {
if (IS_SKY9X(GetEepromInterface()->getBoard())) {
curFile.replace(".eepe", ".bin");
QFileInfo fi(curFile);
#ifdef __APPLE__
@@ -381,7 +381,7 @@ bool MdiChild::saveFile(const QString &fileName, bool setCurrent)
{
QString myFile;
myFile = fileName;
if (GetEepromInterface()->getBoard() == BOARD_SKY9X) {
if (IS_SKY9X(GetEepromInterface()->getBoard())) {
myFile.replace(".eepe", ".bin");
}
QFile file(myFile);