mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-10 01:04:27 +02:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
4a2c7b19fb | |||
3bba3d6cd7 | |||
0374e59bce |
@ -63,7 +63,7 @@ Section "GPXSee (required)" SEC_APP
|
|||||||
; Write the uninstall keys for Windows
|
; Write the uninstall keys for Windows
|
||||||
WriteRegStr HKCU "${REGENTRY}" "DisplayName" "GPXSee"
|
WriteRegStr HKCU "${REGENTRY}" "DisplayName" "GPXSee"
|
||||||
WriteRegStr HKCU "${REGENTRY}" "Publisher" "Martin Tuma"
|
WriteRegStr HKCU "${REGENTRY}" "Publisher" "Martin Tuma"
|
||||||
WriteRegStr HKCU "${REGENTRY}" "DisplayVersion" "2.3"
|
WriteRegStr HKCU "${REGENTRY}" "DisplayVersion" "2.4"
|
||||||
WriteRegStr HKCU "${REGENTRY}" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
WriteRegStr HKCU "${REGENTRY}" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
||||||
WriteRegDWORD HKCU "${REGENTRY}" "NoModify" 1
|
WriteRegDWORD HKCU "${REGENTRY}" "NoModify" 1
|
||||||
WriteRegDWORD HKCU "${REGENTRY}" "NoRepair" 1
|
WriteRegDWORD HKCU "${REGENTRY}" "NoRepair" 1
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#define APP_NAME "GPXSee"
|
#define APP_NAME "GPXSee"
|
||||||
#define APP_HOMEPAGE "http://tumic.wz.cz/gpxsee"
|
#define APP_HOMEPAGE "http://tumic.wz.cz/gpxsee"
|
||||||
#define APP_VERSION "2.3"
|
#define APP_VERSION "2.4"
|
||||||
|
|
||||||
#define FONT_FAMILY "Arial"
|
#define FONT_FAMILY "Arial"
|
||||||
#define FONT_SIZE 12
|
#define FONT_SIZE 12
|
||||||
|
15
src/gui.cpp
15
src/gui.cpp
@ -400,8 +400,10 @@ bool GUI::openFile(const QString &fileName)
|
|||||||
_navigationActionGroup->setEnabled(true);
|
_navigationActionGroup->setEnabled(true);
|
||||||
updateNavigationActions();
|
updateNavigationActions();
|
||||||
return true;
|
return true;
|
||||||
} else
|
} else {
|
||||||
|
updateNavigationActions();
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GUI::loadFile(const QString &fileName)
|
bool GUI::loadFile(const QString &fileName)
|
||||||
@ -537,7 +539,6 @@ void GUI::closeFile()
|
|||||||
_files.clear();
|
_files.clear();
|
||||||
|
|
||||||
_fileActionGroup->setEnabled(false);
|
_fileActionGroup->setEnabled(false);
|
||||||
_navigationActionGroup->setEnabled(false);
|
|
||||||
updateStatusBarInfo();
|
updateStatusBarInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -640,8 +641,6 @@ void GUI::next()
|
|||||||
|
|
||||||
closeFile();
|
closeFile();
|
||||||
openFile(file);
|
openFile(file);
|
||||||
|
|
||||||
updateNavigationActions();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GUI::prev()
|
void GUI::prev()
|
||||||
@ -652,8 +651,6 @@ void GUI::prev()
|
|||||||
|
|
||||||
closeFile();
|
closeFile();
|
||||||
openFile(file);
|
openFile(file);
|
||||||
|
|
||||||
updateNavigationActions();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GUI::last()
|
void GUI::last()
|
||||||
@ -664,8 +661,6 @@ void GUI::last()
|
|||||||
|
|
||||||
closeFile();
|
closeFile();
|
||||||
openFile(file);
|
openFile(file);
|
||||||
|
|
||||||
updateNavigationActions();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GUI::first()
|
void GUI::first()
|
||||||
@ -676,8 +671,6 @@ void GUI::first()
|
|||||||
|
|
||||||
closeFile();
|
closeFile();
|
||||||
openFile(file);
|
openFile(file);
|
||||||
|
|
||||||
updateNavigationActions();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GUI::keyPressEvent(QKeyEvent *event)
|
void GUI::keyPressEvent(QKeyEvent *event)
|
||||||
@ -704,6 +697,4 @@ void GUI::keyPressEvent(QKeyEvent *event)
|
|||||||
closeFile();
|
closeFile();
|
||||||
openFile(file);
|
openFile(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
updateNavigationActions();
|
|
||||||
}
|
}
|
||||||
|
@ -205,6 +205,9 @@ void Track::redraw()
|
|||||||
|
|
||||||
void Track::wheelEvent(QWheelEvent *event)
|
void Track::wheelEvent(QWheelEvent *event)
|
||||||
{
|
{
|
||||||
|
if (_tracks.isEmpty())
|
||||||
|
return;
|
||||||
|
|
||||||
QPointF pos = mapToScene(event->pos());
|
QPointF pos = mapToScene(event->pos());
|
||||||
qreal scale = _scale;
|
qreal scale = _scale;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user