-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major re-jigging of the Scale Grid (part deux)
- Added option to turn on/off minor scale grid lines. - Added font size option. 7 preset font sizes availble. - Added a SG reset option to set everything back to SPIERSview defaults. - Updated SPV file version from 10 to 11, which now saves all SG options and restores them on load (including whether the SG was turned on/off at time of save). I've run on of ideas for how to improve this feature now! It now does everything I wnat it too, and a bit more, hopefully all these new option will allow enough customization to make the SG useful at all scales and in all situations.
- Loading branch information
1 parent
e6c2ca7
commit 3fd02ce
Showing
15 changed files
with
1,092 additions
and
601 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#include "gridfontsizedialog.h" | ||
#include "ui_gridfontsizedialog.h" | ||
|
||
/** | ||
* @brief GridFontSizeDialog::GridFontSizeDialog | ||
* @param parent | ||
*/ | ||
GridFontSizeDialog::GridFontSizeDialog(QWidget *parent) : | ||
QDialog(parent), | ||
ui(new Ui::GridFontSizeDialog) | ||
{ | ||
ui->setupUi(this); | ||
|
||
ui->comboBox->setCurrentIndex(fontSizeGrid); | ||
} | ||
|
||
/** | ||
* @brief GridFontSizeDialog::~GridFontSizeDialog | ||
*/ | ||
GridFontSizeDialog::~GridFontSizeDialog() | ||
{ | ||
delete ui; | ||
} | ||
|
||
/** | ||
* @brief GridFontSizeDialog::on_buttonBox_accepted | ||
*/ | ||
void GridFontSizeDialog::on_buttonBox_accepted() | ||
{ | ||
fontSizeGrid = ui->comboBox->currentIndex(); | ||
|
||
mainWindow->UpdateGL(); | ||
} | ||
|
||
/** | ||
* @brief GridFontSizeDialog::on_buttonBox_rejected | ||
*/ | ||
void GridFontSizeDialog::on_buttonBox_rejected() | ||
{ | ||
return; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#ifndef GRIDFONTSIZEDIALOG_H | ||
#define GRIDFONTSIZEDIALOG_H | ||
|
||
#include <QDialog> | ||
#include "mainwindow.h" | ||
|
||
namespace Ui { | ||
class GridFontSizeDialog; | ||
} | ||
|
||
class GridFontSizeDialog : public QDialog | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit GridFontSizeDialog(QWidget *parent = nullptr); | ||
~GridFontSizeDialog(); | ||
|
||
private slots: | ||
void on_buttonBox_accepted(); | ||
|
||
void on_buttonBox_rejected(); | ||
|
||
private: | ||
Ui::GridFontSizeDialog *ui; | ||
}; | ||
|
||
#endif // GRIDFONTSIZEDIALOG_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.