Merged develop into feature
--HG-- branch : feature
This commit is contained in:
commit
b19f45e90a
|
@ -200,7 +200,17 @@ unix{
|
||||||
# Some macx stuff
|
# Some macx stuff
|
||||||
QMAKE_MAC_SDK = macosx
|
QMAKE_MAC_SDK = macosx
|
||||||
|
|
||||||
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
|
# Check which minimal OSX version supports current Qt version
|
||||||
|
equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 6) {
|
||||||
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.8
|
||||||
|
} else {
|
||||||
|
equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 3) {
|
||||||
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
|
||||||
|
} else {
|
||||||
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Path to resources in app bundle
|
# Path to resources in app bundle
|
||||||
#RESOURCES_DIR = "Contents/Resources" defined in translation.pri
|
#RESOURCES_DIR = "Contents/Resources" defined in translation.pri
|
||||||
FRAMEWORKS_DIR = "Contents/Frameworks"
|
FRAMEWORKS_DIR = "Contents/Frameworks"
|
||||||
|
|
|
@ -462,6 +462,13 @@ void TMainWindow::CreateFromExisting()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
void TMainWindow::Preferences()
|
||||||
|
{
|
||||||
|
TapeConfigDialog dlg(this);
|
||||||
|
dlg.exec();
|
||||||
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void TMainWindow::closeEvent(QCloseEvent *event)
|
void TMainWindow::closeEvent(QCloseEvent *event)
|
||||||
{
|
{
|
||||||
|
@ -1734,11 +1741,7 @@ void TMainWindow::SetupMenu()
|
||||||
|
|
||||||
connect(ui->actionExportToCSV, &QAction::triggered, this, &TMainWindow::ExportToCSV);
|
connect(ui->actionExportToCSV, &QAction::triggered, this, &TMainWindow::ExportToCSV);
|
||||||
connect(ui->actionReadOnly, &QAction::triggered, this, &TMainWindow::ReadOnly);
|
connect(ui->actionReadOnly, &QAction::triggered, this, &TMainWindow::ReadOnly);
|
||||||
connect(ui->actionPreferences, &QAction::triggered, [this]()
|
connect(ui->actionPreferences, &QAction::triggered, this, &TMainWindow::Preferences);
|
||||||
{
|
|
||||||
TapeConfigDialog dlg(this);
|
|
||||||
dlg.exec();
|
|
||||||
});
|
|
||||||
|
|
||||||
for (int i = 0; i < MaxRecentFiles; ++i)
|
for (int i = 0; i < MaxRecentFiles; ++i)
|
||||||
{
|
{
|
||||||
|
|
|
@ -75,6 +75,7 @@ private slots:
|
||||||
void OpenStandard();
|
void OpenStandard();
|
||||||
void OpenTemplate();
|
void OpenTemplate();
|
||||||
void CreateFromExisting();
|
void CreateFromExisting();
|
||||||
|
void Preferences();
|
||||||
|
|
||||||
void FileSave();
|
void FileSave();
|
||||||
void FileSaveAs();
|
void FileSaveAs();
|
||||||
|
|
|
@ -3553,18 +3553,7 @@ void MainWindow::CreateActions()
|
||||||
|
|
||||||
connect(ui->actionExit, &QAction::triggered, this, &MainWindow::close);
|
connect(ui->actionExit, &QAction::triggered, this, &MainWindow::close);
|
||||||
|
|
||||||
connect(ui->actionPreferences, &QAction::triggered, [this]()
|
connect(ui->actionPreferences, &QAction::triggered, this, &MainWindow::Preferences);
|
||||||
{
|
|
||||||
ConfigDialog dlg(this);
|
|
||||||
connect(&dlg, &ConfigDialog::UpdateProperties, this, &MainWindow::WindowsLocale); // Must be first
|
|
||||||
connect(&dlg, &ConfigDialog::UpdateProperties, toolOptions, &VToolOptionsPropertyBrowser::RefreshOptions);
|
|
||||||
connect(&dlg, &ConfigDialog::UpdateProperties, this, &MainWindow::ToolBarStyles);
|
|
||||||
if (dlg.exec() == QDialog::Accepted)
|
|
||||||
{
|
|
||||||
InitAutoSave();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
connect(ui->actionReportBug, &QAction::triggered, [this]()
|
connect(ui->actionReportBug, &QAction::triggered, [this]()
|
||||||
{
|
{
|
||||||
qCDebug(vMainWindow, "Reporting bug");
|
qCDebug(vMainWindow, "Reporting bug");
|
||||||
|
@ -3954,6 +3943,27 @@ void MainWindow::ShowPaper(int index)
|
||||||
ui->view->fitInView(ui->view->scene()->sceneRect(), Qt::KeepAspectRatio);
|
ui->view->fitInView(ui->view->scene()->sceneRect(), Qt::KeepAspectRatio);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
void MainWindow::Preferences()
|
||||||
|
{
|
||||||
|
ConfigDialog dlg(this);
|
||||||
|
connect(&dlg, &ConfigDialog::UpdateProperties, this, &MainWindow::WindowsLocale); // Must be first
|
||||||
|
connect(&dlg, &ConfigDialog::UpdateProperties, toolOptions, &VToolOptionsPropertyBrowser::RefreshOptions);
|
||||||
|
connect(&dlg, &ConfigDialog::UpdateProperties, this, &MainWindow::ToolBarStyles);
|
||||||
|
if (dlg.exec() == QDialog::Accepted)
|
||||||
|
{
|
||||||
|
InitAutoSave();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
void MainWindow::CreateMeasurements()
|
||||||
|
{
|
||||||
|
const QString tape = qApp->TapeFilePath();
|
||||||
|
const QString workingDirectory = QFileInfo(tape).absoluteDir().absolutePath();
|
||||||
|
QProcess::startDetached(tape, QStringList(), workingDirectory);
|
||||||
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void MainWindow::ToolBarStyle(QToolBar *bar)
|
void MainWindow::ToolBarStyle(QToolBar *bar)
|
||||||
{
|
{
|
||||||
|
|
|
@ -111,6 +111,8 @@ private slots:
|
||||||
void WindowsLocale();
|
void WindowsLocale();
|
||||||
void ToolBarStyles();
|
void ToolBarStyles();
|
||||||
void ShowPaper(int index);
|
void ShowPaper(int index);
|
||||||
|
void Preferences();
|
||||||
|
void CreateMeasurements();
|
||||||
|
|
||||||
void ArrowTool();
|
void ArrowTool();
|
||||||
void ToolEndLine(bool checked);
|
void ToolEndLine(bool checked);
|
||||||
|
|
|
@ -214,7 +214,17 @@ unix{
|
||||||
# Some macx stuff
|
# Some macx stuff
|
||||||
QMAKE_MAC_SDK = macosx
|
QMAKE_MAC_SDK = macosx
|
||||||
|
|
||||||
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
|
# Check which minimal OSX version supports current Qt version
|
||||||
|
equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 6) {
|
||||||
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.8
|
||||||
|
} else {
|
||||||
|
equals(QT_MAJOR_VERSION, 5):greaterThan(QT_MINOR_VERSION, 3) {
|
||||||
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7
|
||||||
|
} else {
|
||||||
|
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Path to resources in app bundle
|
# Path to resources in app bundle
|
||||||
#RESOURCES_DIR = "Contents/Resources" defined in translation.pri
|
#RESOURCES_DIR = "Contents/Resources" defined in translation.pri
|
||||||
FRAMEWORKS_DIR = "Contents/Frameworks"
|
FRAMEWORKS_DIR = "Contents/Frameworks"
|
||||||
|
|
|
@ -41,6 +41,9 @@ include(qmuparser.pri)
|
||||||
|
|
||||||
VERSION = 2.4.1
|
VERSION = 2.4.1
|
||||||
|
|
||||||
|
# Allow MAC OS X to find library inside a bundle
|
||||||
|
macx:QMAKE_SONAME_PREFIX = @rpath
|
||||||
|
|
||||||
# Set "make install" command for Unix-like systems.
|
# Set "make install" command for Unix-like systems.
|
||||||
unix:!macx{
|
unix:!macx{
|
||||||
isEmpty(PREFIX_LIB){
|
isEmpty(PREFIX_LIB){
|
||||||
|
|
|
@ -37,6 +37,9 @@ MOC_DIR = moc
|
||||||
# objecs files
|
# objecs files
|
||||||
OBJECTS_DIR = obj
|
OBJECTS_DIR = obj
|
||||||
|
|
||||||
|
# Allow MAC OS X to find library inside a bundle
|
||||||
|
macx:QMAKE_SONAME_PREFIX = @rpath
|
||||||
|
|
||||||
include(vpropertyexplorer.pri)
|
include(vpropertyexplorer.pri)
|
||||||
|
|
||||||
# Set "make install" command for Unix-like systems.
|
# Set "make install" command for Unix-like systems.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user