Merge with develop
--HG-- branch : feature
This commit is contained in:
commit
80f396d636
|
@ -1,5 +1,7 @@
|
||||||
# Version 0.5.0
|
# Version 0.5.0
|
||||||
- [#505] New installer script based on Inno Setup 5.
|
- [#505] New installer script based on Inno Setup 5.
|
||||||
|
- Size of preferences dialog in both Valentina and Tape app is now preserved between sessions
|
||||||
|
- [#479] Preferences dialog is now extendable and when it is opened again, it will be resized to its previous size.
|
||||||
- [#508] Settings saved to INI files in different folders.
|
- [#508] Settings saved to INI files in different folders.
|
||||||
- [#193] Undeletable zombie arc objects.
|
- [#193] Undeletable zombie arc objects.
|
||||||
- New feature. Groups.
|
- New feature. Groups.
|
||||||
|
@ -27,6 +29,7 @@
|
||||||
- [#487] True dart point always goes to origin when the label is moved.
|
- [#487] True dart point always goes to origin when the label is moved.
|
||||||
- [#128] New Tool: Slash and Spread.
|
- [#128] New Tool: Slash and Spread.
|
||||||
- [#409] New feature: Export measurement file to Excel .csv.
|
- [#409] New feature: Export measurement file to Excel .csv.
|
||||||
|
- [#180] New feature: Search field in tape app and dialog Increments.
|
||||||
|
|
||||||
# Version 0.4.5
|
# Version 0.4.5
|
||||||
- [#435] Valentina doesn't change the cursor.
|
- [#435] Valentina doesn't change the cursor.
|
||||||
|
|
|
@ -89,11 +89,12 @@ TapeConfigDialog::TapeConfigDialog(QWidget *parent)
|
||||||
|
|
||||||
QVBoxLayout *mainLayout = new QVBoxLayout;
|
QVBoxLayout *mainLayout = new QVBoxLayout;
|
||||||
mainLayout->addLayout(horizontalLayout);
|
mainLayout->addLayout(horizontalLayout);
|
||||||
mainLayout->addStretch(1);
|
|
||||||
mainLayout->addSpacing(12);
|
mainLayout->addSpacing(12);
|
||||||
mainLayout->addLayout(buttonsLayout);
|
mainLayout->addLayout(buttonsLayout);
|
||||||
setLayout(mainLayout);
|
setLayout(mainLayout);
|
||||||
|
|
||||||
|
mainLayout->setStretch(0, 1);
|
||||||
|
|
||||||
setWindowTitle(tr("Config Dialog"));
|
setWindowTitle(tr("Config Dialog"));
|
||||||
|
|
||||||
qApp->TapeSettings()->GetOsSeparator() ? setLocale(QLocale::system()) : setLocale(QLocale(QLocale::C));
|
qApp->TapeSettings()->GetOsSeparator() ? setLocale(QLocale::system()) : setLocale(QLocale(QLocale::C));
|
||||||
|
@ -147,12 +148,30 @@ void TapeConfigDialog::showEvent(QShowEvent *event)
|
||||||
}
|
}
|
||||||
// do your init stuff here
|
// do your init stuff here
|
||||||
|
|
||||||
setMaximumSize(size());
|
|
||||||
setMinimumSize(size());
|
setMinimumSize(size());
|
||||||
|
|
||||||
|
QSize sz = qApp->Settings()->GetPreferenceDialogSize();
|
||||||
|
if (sz.isEmpty() == false)
|
||||||
|
{
|
||||||
|
resize(sz);
|
||||||
|
}
|
||||||
|
|
||||||
isInitialized = true;//first show windows are held
|
isInitialized = true;//first show windows are held
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
void TapeConfigDialog::resizeEvent(QResizeEvent *event)
|
||||||
|
{
|
||||||
|
Q_UNUSED(event);
|
||||||
|
// remember the size for the next time this dialog is opened, but only
|
||||||
|
// if widget was already initialized, which rules out the resize at
|
||||||
|
// dialog creating, which would
|
||||||
|
if (isInitialized == true)
|
||||||
|
{
|
||||||
|
qApp->Settings()->SetPreferenceDialogSize(size());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void TapeConfigDialog::createIcons()
|
void TapeConfigDialog::createIcons()
|
||||||
{
|
{
|
||||||
|
|
|
@ -50,6 +50,7 @@ protected:
|
||||||
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
|
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
|
||||||
virtual void changeEvent(QEvent* event) Q_DECL_OVERRIDE;
|
virtual void changeEvent(QEvent* event) Q_DECL_OVERRIDE;
|
||||||
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE;
|
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE;
|
||||||
|
virtual void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY(TapeConfigDialog)
|
Q_DISABLE_COPY(TapeConfigDialog)
|
||||||
QListWidget *contentsWidget;
|
QListWidget *contentsWidget;
|
||||||
|
|
|
@ -12,8 +12,7 @@ SOURCES += \
|
||||||
$$PWD/dialogs/configpages/tapeconfigurationpage.cpp \
|
$$PWD/dialogs/configpages/tapeconfigurationpage.cpp \
|
||||||
$$PWD/dialogs/configpages/tapepathpage.cpp \
|
$$PWD/dialogs/configpages/tapepathpage.cpp \
|
||||||
$$PWD/dialogs/dialogexporttocsv.cpp \
|
$$PWD/dialogs/dialogexporttocsv.cpp \
|
||||||
$$PWD/vlitepattern.cpp \
|
$$PWD/vlitepattern.cpp
|
||||||
$$PWD/vtablesearch.cpp
|
|
||||||
|
|
||||||
win32-msvc*:SOURCES += $$PWD/stable.cpp
|
win32-msvc*:SOURCES += $$PWD/stable.cpp
|
||||||
|
|
||||||
|
@ -29,8 +28,7 @@ HEADERS += \
|
||||||
$$PWD/dialogs/configpages/tapeconfigurationpage.h \
|
$$PWD/dialogs/configpages/tapeconfigurationpage.h \
|
||||||
$$PWD/dialogs/configpages/tapepathpage.h \
|
$$PWD/dialogs/configpages/tapepathpage.h \
|
||||||
$$PWD/dialogs/dialogexporttocsv.h \
|
$$PWD/dialogs/dialogexporttocsv.h \
|
||||||
$$PWD/vlitepattern.h \
|
$$PWD/vlitepattern.h
|
||||||
$$PWD/vtablesearch.h
|
|
||||||
|
|
||||||
FORMS += \
|
FORMS += \
|
||||||
$$PWD/tmainwindow.ui \
|
$$PWD/tmainwindow.ui \
|
||||||
|
|
|
@ -459,24 +459,6 @@ void TMainWindow::CreateFromExisting()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
|
||||||
void TMainWindow::Find(const QString &term)
|
|
||||||
{
|
|
||||||
search->Find(term);
|
|
||||||
}
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
|
||||||
void TMainWindow::FindPrevious()
|
|
||||||
{
|
|
||||||
search->FindPrevious();
|
|
||||||
}
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
|
||||||
void TMainWindow::FindNext()
|
|
||||||
{
|
|
||||||
search->FindNext();
|
|
||||||
}
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void TMainWindow::closeEvent(QCloseEvent *event)
|
void TMainWindow::closeEvent(QCloseEvent *event)
|
||||||
{
|
{
|
||||||
|
@ -2018,9 +2000,9 @@ void TMainWindow::InitWindow()
|
||||||
connect(ui->comboBoxPMSystem, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this,
|
connect(ui->comboBoxPMSystem, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this,
|
||||||
&TMainWindow::SavePMSystem);
|
&TMainWindow::SavePMSystem);
|
||||||
|
|
||||||
connect(ui->lineEditFind, &QLineEdit::textEdited, this, &TMainWindow::Find);
|
connect(ui->lineEditFind, &QLineEdit::textEdited, [=] (const QString &term){search->Find(term);});
|
||||||
connect(ui->toolButtonFindPrevious, &QToolButton::clicked, this, &TMainWindow::FindPrevious);
|
connect(ui->toolButtonFindPrevious, &QToolButton::clicked, [=] (){search->FindPrevious();});
|
||||||
connect(ui->toolButtonFindNext, &QToolButton::clicked, this, &TMainWindow::FindNext);
|
connect(ui->toolButtonFindNext, &QToolButton::clicked, [=] (){search->FindNext();});
|
||||||
|
|
||||||
ui->plainTextEditNotes->setPlainText(m->Notes());
|
ui->plainTextEditNotes->setPlainText(m->Notes());
|
||||||
connect(ui->plainTextEditNotes, &QPlainTextEdit::textChanged, this, &TMainWindow::SaveNotes);
|
connect(ui->plainTextEditNotes, &QPlainTextEdit::textChanged, this, &TMainWindow::SaveNotes);
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
#include "../vmisc/def.h"
|
#include "../vmisc/def.h"
|
||||||
#include "../vmisc/vlockguard.h"
|
#include "../vmisc/vlockguard.h"
|
||||||
#include "../vformat/vmeasurements.h"
|
#include "../vformat/vmeasurements.h"
|
||||||
#include "vtablesearch.h"
|
#include "../vmisc/vtablesearch.h"
|
||||||
|
|
||||||
namespace Ui
|
namespace Ui
|
||||||
{
|
{
|
||||||
|
@ -129,9 +129,6 @@ private slots:
|
||||||
void NewWindow();
|
void NewWindow();
|
||||||
void Preferences();
|
void Preferences();
|
||||||
void PatternUnitChanged(int index);
|
void PatternUnitChanged(int index);
|
||||||
void Find(const QString &term);
|
|
||||||
void FindPrevious();
|
|
||||||
void FindNext();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY(TMainWindow)
|
Q_DISABLE_COPY(TMainWindow)
|
||||||
|
|
|
@ -87,9 +87,9 @@ ConfigDialog::ConfigDialog(QWidget *parent) :
|
||||||
|
|
||||||
QVBoxLayout *mainLayout = new QVBoxLayout;
|
QVBoxLayout *mainLayout = new QVBoxLayout;
|
||||||
mainLayout->addLayout(horizontalLayout);
|
mainLayout->addLayout(horizontalLayout);
|
||||||
mainLayout->addStretch(1);
|
|
||||||
mainLayout->addSpacing(12);
|
mainLayout->addSpacing(12);
|
||||||
mainLayout->addLayout(buttonsLayout);
|
mainLayout->addLayout(buttonsLayout);
|
||||||
|
mainLayout->setStretch(0, 1);
|
||||||
setLayout(mainLayout);
|
setLayout(mainLayout);
|
||||||
|
|
||||||
setWindowTitle(tr("Config Dialog"));
|
setWindowTitle(tr("Config Dialog"));
|
||||||
|
@ -145,12 +145,30 @@ void ConfigDialog::showEvent(QShowEvent *event)
|
||||||
}
|
}
|
||||||
// do your init stuff here
|
// do your init stuff here
|
||||||
|
|
||||||
setMaximumSize(size());
|
|
||||||
setMinimumSize(size());
|
setMinimumSize(size());
|
||||||
|
|
||||||
|
QSize sz = qApp->Settings()->GetPreferenceDialogSize();
|
||||||
|
if (sz.isEmpty() == false)
|
||||||
|
{
|
||||||
|
resize(sz);
|
||||||
|
}
|
||||||
|
|
||||||
isInitialized = true;//first show windows are held
|
isInitialized = true;//first show windows are held
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
void ConfigDialog::resizeEvent(QResizeEvent *event)
|
||||||
|
{
|
||||||
|
Q_UNUSED(event);
|
||||||
|
// remember the size for the next time this dialog is opened, but only
|
||||||
|
// if widget was already initialized, which rules out the resize at
|
||||||
|
// dialog creating, which would
|
||||||
|
if (isInitialized == true)
|
||||||
|
{
|
||||||
|
qApp->Settings()->SetPreferenceDialogSize(size());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void ConfigDialog::createIcons()
|
void ConfigDialog::createIcons()
|
||||||
{
|
{
|
||||||
|
|
|
@ -49,6 +49,7 @@ protected:
|
||||||
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
|
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
|
||||||
virtual void changeEvent(QEvent* event) Q_DECL_OVERRIDE;
|
virtual void changeEvent(QEvent* event) Q_DECL_OVERRIDE;
|
||||||
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE;
|
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE;
|
||||||
|
virtual void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY(ConfigDialog)
|
Q_DISABLE_COPY(ConfigDialog)
|
||||||
QListWidget *contentsWidget;
|
QListWidget *contentsWidget;
|
||||||
|
|
|
@ -58,14 +58,18 @@ DialogIncrements::DialogIncrements(VContainer *data, VPattern *doc, QWidget *par
|
||||||
ui(new Ui::DialogIncrements),
|
ui(new Ui::DialogIncrements),
|
||||||
data(data),
|
data(data),
|
||||||
doc(doc),
|
doc(doc),
|
||||||
formulaBaseHeight(0)
|
formulaBaseHeight(0),
|
||||||
|
search()
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 2, 0)
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 2, 0)
|
||||||
ui->lineEditName->setClearButtonEnabled(true);
|
ui->lineEditName->setClearButtonEnabled(true);
|
||||||
|
ui->lineEditFind->setClearButtonEnabled(true);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
search = QSharedPointer<VTableSearch>(new VTableSearch(ui->tableWidgetIncrement));
|
||||||
|
|
||||||
formulaBaseHeight = ui->plainTextEditFormula->height();
|
formulaBaseHeight = ui->plainTextEditFormula->height();
|
||||||
|
|
||||||
qApp->Settings()->GetOsSeparator() ? setLocale(QLocale::system()) : setLocale(QLocale(QLocale::C));
|
qApp->Settings()->GetOsSeparator() ? setLocale(QLocale::system()) : setLocale(QLocale(QLocale::C));
|
||||||
|
@ -102,6 +106,9 @@ DialogIncrements::DialogIncrements(VContainer *data, VPattern *doc, QWidget *par
|
||||||
connect(ui->lineEditName, &QLineEdit::editingFinished, this, &DialogIncrements::SaveIncrName);
|
connect(ui->lineEditName, &QLineEdit::editingFinished, this, &DialogIncrements::SaveIncrName);
|
||||||
connect(ui->plainTextEditDescription, &QPlainTextEdit::textChanged, this, &DialogIncrements::SaveIncrDescription);
|
connect(ui->plainTextEditDescription, &QPlainTextEdit::textChanged, this, &DialogIncrements::SaveIncrDescription);
|
||||||
connect(ui->plainTextEditFormula, &QPlainTextEdit::textChanged, this, &DialogIncrements::SaveIncrFormula);
|
connect(ui->plainTextEditFormula, &QPlainTextEdit::textChanged, this, &DialogIncrements::SaveIncrFormula);
|
||||||
|
connect(ui->lineEditFind, &QLineEdit::textEdited, [=](const QString &term){search->Find(term);});
|
||||||
|
connect(ui->toolButtonFindPrevious, &QToolButton::clicked, [=](){search->FindPrevious();});
|
||||||
|
connect(ui->toolButtonFindNext, &QToolButton::clicked, [=](){search->FindNext();});
|
||||||
|
|
||||||
if (ui->tableWidgetIncrement->rowCount() > 0)
|
if (ui->tableWidgetIncrement->rowCount() > 0)
|
||||||
{
|
{
|
||||||
|
@ -428,6 +435,8 @@ void DialogIncrements::FullUpdateFromFile()
|
||||||
FillLengthsCurves();
|
FillLengthsCurves();
|
||||||
FillRadiusesArcs();
|
FillRadiusesArcs();
|
||||||
FillAnglesCurves();
|
FillAnglesCurves();
|
||||||
|
|
||||||
|
search->RefreshList(ui->lineEditFind->text());
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
|
|
||||||
#include "../vtools/dialogs/tools/dialogtool.h"
|
#include "../vtools/dialogs/tools/dialogtool.h"
|
||||||
#include "../xml/vpattern.h"
|
#include "../xml/vpattern.h"
|
||||||
|
#include "../vmisc/vtablesearch.h"
|
||||||
|
|
||||||
class VIndividualMeasurements;
|
class VIndividualMeasurements;
|
||||||
class QTableWidget;
|
class QTableWidget;
|
||||||
|
@ -87,6 +88,8 @@ private:
|
||||||
|
|
||||||
int formulaBaseHeight;
|
int formulaBaseHeight;
|
||||||
|
|
||||||
|
QSharedPointer<VTableSearch> search;
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
void FillTable(const QMap<QString, T> &varTable, QTableWidget *table);
|
void FillTable(const QMap<QString, T> &varTable, QTableWidget *table);
|
||||||
|
|
||||||
|
|
|
@ -39,13 +39,56 @@
|
||||||
<enum>QTabWidget::North</enum>
|
<enum>QTabWidget::North</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>3</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="tabIncrements">
|
<widget class="QWidget" name="tabIncrements">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Increments</string>
|
<string>Increments</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||||
|
<property name="topMargin">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="labelFind">
|
||||||
|
<property name="text">
|
||||||
|
<string>Find:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="lineEditFind">
|
||||||
|
<property name="placeholderText">
|
||||||
|
<string>Search</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QToolButton" name="toolButtonFindPrevious">
|
||||||
|
<property name="text">
|
||||||
|
<string>...</string>
|
||||||
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset theme="go-previous" resource="../../../libs/vmisc/share/resources/theme.qrc">
|
||||||
|
<normaloff>:/icons/win.icon.theme/16x16/actions/go-previous.png</normaloff>:/icons/win.icon.theme/16x16/actions/go-previous.png</iconset>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QToolButton" name="toolButtonFindNext">
|
||||||
|
<property name="text">
|
||||||
|
<string>...</string>
|
||||||
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset theme="go-next" resource="../../../libs/vmisc/share/resources/theme.qrc">
|
||||||
|
<normaloff>:/icons/win.icon.theme/16x16/actions/go-next.png</normaloff>:/icons/win.icon.theme/16x16/actions/go-next.png</iconset>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QSplitter" name="splitter">
|
<widget class="QSplitter" name="splitter">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
|
@ -230,8 +273,7 @@
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme="list-add">
|
<iconset theme="list-add">
|
||||||
<normaloff/>
|
<normaloff>.</normaloff>.</iconset>
|
||||||
</iconset>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -245,8 +287,7 @@
|
||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme="list-remove">
|
<iconset theme="list-remove">
|
||||||
<normaloff/>
|
<normaloff>.</normaloff>.</iconset>
|
||||||
</iconset>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -620,6 +661,7 @@
|
||||||
</tabstops>
|
</tabstops>
|
||||||
<resources>
|
<resources>
|
||||||
<include location="../../../libs/vmisc/share/resources/icon.qrc"/>
|
<include location="../../../libs/vmisc/share/resources/icon.qrc"/>
|
||||||
|
<include location="../../../libs/vmisc/share/resources/theme.qrc"/>
|
||||||
</resources>
|
</resources>
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
|
|
@ -64,6 +64,7 @@ const QString VCommonSettings::SettingGeneralRestoreFileList = QString
|
||||||
const QString VCommonSettings::SettingGeneralGeometry = QStringLiteral("geometry");
|
const QString VCommonSettings::SettingGeneralGeometry = QStringLiteral("geometry");
|
||||||
const QString VCommonSettings::SettingGeneralWindowState = QStringLiteral("windowState");
|
const QString VCommonSettings::SettingGeneralWindowState = QStringLiteral("windowState");
|
||||||
const QString VCommonSettings::SettingGeneralToolbarsState = QStringLiteral("toolbarsState");
|
const QString VCommonSettings::SettingGeneralToolbarsState = QStringLiteral("toolbarsState");
|
||||||
|
const QString VCommonSettings::SettingPreferenceDialogSize = QStringLiteral("preferenceDialogSize");
|
||||||
|
|
||||||
static const QString commonIniFilename = QStringLiteral("common");
|
static const QString commonIniFilename = QStringLiteral("common");
|
||||||
|
|
||||||
|
@ -416,3 +417,15 @@ void VCommonSettings::SetToolbarsState(const QByteArray &value)
|
||||||
{
|
{
|
||||||
setValue(SettingGeneralToolbarsState, value);
|
setValue(SettingGeneralToolbarsState, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
QSize VCommonSettings::GetPreferenceDialogSize() const
|
||||||
|
{
|
||||||
|
return value(SettingPreferenceDialogSize, QSize(0, 0)).toSize();
|
||||||
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
void VCommonSettings::SetPreferenceDialogSize(const QSize& sz)
|
||||||
|
{
|
||||||
|
setValue(SettingPreferenceDialogSize, sz);
|
||||||
|
}
|
||||||
|
|
|
@ -99,6 +99,9 @@ public:
|
||||||
QByteArray GetToolbarsState() const;
|
QByteArray GetToolbarsState() const;
|
||||||
void SetToolbarsState(const QByteArray &value);
|
void SetToolbarsState(const QByteArray &value);
|
||||||
|
|
||||||
|
QSize GetPreferenceDialogSize() const;
|
||||||
|
void SetPreferenceDialogSize(const QSize& sz);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY(VCommonSettings)
|
Q_DISABLE_COPY(VCommonSettings)
|
||||||
|
|
||||||
|
@ -124,6 +127,7 @@ private:
|
||||||
static const QString SettingGeneralGeometry;
|
static const QString SettingGeneralGeometry;
|
||||||
static const QString SettingGeneralWindowState;
|
static const QString SettingGeneralWindowState;
|
||||||
static const QString SettingGeneralToolbarsState;
|
static const QString SettingGeneralToolbarsState;
|
||||||
|
static const QString SettingPreferenceDialogSize;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // VCOMMONSETTINGS_H
|
#endif // VCOMMONSETTINGS_H
|
||||||
|
|
|
@ -10,7 +10,8 @@ SOURCES += \
|
||||||
$$PWD/vcommonsettings.cpp \
|
$$PWD/vcommonsettings.cpp \
|
||||||
$$PWD/vtapesettings.cpp \
|
$$PWD/vtapesettings.cpp \
|
||||||
$$PWD/commandoptions.cpp \
|
$$PWD/commandoptions.cpp \
|
||||||
$$PWD/qxtcsvmodel.cpp
|
$$PWD/qxtcsvmodel.cpp \
|
||||||
|
$$PWD/vtablesearch.cpp
|
||||||
|
|
||||||
win32-msvc*:SOURCES += $$PWD/stable.cpp
|
win32-msvc*:SOURCES += $$PWD/stable.cpp
|
||||||
|
|
||||||
|
@ -29,7 +30,8 @@ HEADERS += \
|
||||||
$$PWD/vlockguard.h \
|
$$PWD/vlockguard.h \
|
||||||
$$PWD/vsysexits.h \
|
$$PWD/vsysexits.h \
|
||||||
$$PWD/commandoptions.h \
|
$$PWD/commandoptions.h \
|
||||||
$$PWD/qxtcsvmodel.h
|
$$PWD/qxtcsvmodel.h \
|
||||||
|
$$PWD/vtablesearch.h
|
||||||
|
|
||||||
# Qt's versions
|
# Qt's versions
|
||||||
# 5.0.0, 5.0.1, 5.0.2
|
# 5.0.0, 5.0.1, 5.0.2
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
#include "../vgeometry/vsplinepath.h"
|
#include "../vgeometry/vsplinepath.h"
|
||||||
#include "../vgeometry/vabstractcubicbezier.h"
|
#include "../vgeometry/vabstractcubicbezier.h"
|
||||||
#include "../vgeometry/vabstractcubicbezierpath.h"
|
#include "../vgeometry/vabstractcubicbezierpath.h"
|
||||||
#include "../../../../../visualization/line/vistoolcurveintersectaxis.h"
|
#include "../vtools/visualization/line/vistoolcurveintersectaxis.h"
|
||||||
#include "../toolcut/vtoolcutsplinepath.h"
|
#include "../toolcut/vtoolcutsplinepath.h"
|
||||||
|
|
||||||
const QString VToolCurveIntersectAxis::ToolType = QStringLiteral("curveIntersectAxis");
|
const QString VToolCurveIntersectAxis::ToolType = QStringLiteral("curveIntersectAxis");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user