59 #include <QTableWidget>
61 #include "../vmisc/def.h"
62 #include "../vmisc/vlockguard.h"
63 #include "../vformat/vmeasurements.h"
64 #include "../vmisc/vtablesearch.h"
65 #include "../vwidgets/vabstractmainwindow.h"
95 virtual void ShowToolTip(
const QString &toolTip) Q_DECL_OVERRIDE;
100 virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
101 virtual void changeEvent(QEvent* event) Q_DECL_OVERRIDE;
102 virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE;
103 virtual bool eventFilter(QObject *
object, QEvent *event) Q_DECL_OVERRIDE;
124 #if defined(Q_OS_MAC)
125 void AboutToShowDockMenu();
126 void OpenAt(QAction *where);
204 void ShowHeaderUnits(QTableWidget *table,
int column,
const QString &unit);
213 QTableWidgetItem *
AddCell(
const QString &text,
int row,
int column,
int aligment,
bool ok =
true);
215 Q_REQUIRED_RESULT QComboBox *
SetGradationList(QLabel *label,
const QStringList &list);
230 void Open(
const QString &pathTo,
const QString &filter);
void SetBaseMSize(int size)
QString GetCustomName() const
bool EvalFormula(const QString &formula, bool fromUser, VContainer *data, QLabel *label)
QString ClearCustomName(const QString &name) const
void SetDefaultHeight(int value)
void CreateWindowMenu(QMenu *menu)
QLabel * labelGradationSizes
QString CurrentFile() const
QAction * actionDockDiagram
virtual void exportToCSVData(const QString &fileName, const DialogExportToCSV &dialog) Q_DECL_FINAL
QComboBox * gradationSizes
void UpdateRecentFileActions()
void SaveBirthDate(const QDate &date)
QStringList FilterMeasurements(const QStringList &mNew, const QStringList &mFilter)
void printPages(QPrinter *printer)
void ShowNewMData(bool fresh)
QVector< QObject * > hackedWidgets
virtual void zoomToSelected() Q_DECL_OVERRIDE
void PatternUnitChanged(int index)
void RefreshTable(bool freshCall=false)
QAction * recentFileActs[MaxRecentFiles]
void SavePMSystem(int index)
void ShowHeaderUnits(QTableWidget *table, int column, const QString &unit)
void SetDefaultSize(int value)
void InitGender(QComboBox *gender)
VMeasurements * individualMeasurements
bool LoadFile(const QString &path)
void SaveMName(const QString &text)
void MFields(bool enabled)
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE
virtual void changeEvent(QEvent *event) Q_DECL_OVERRIDE
void HackWidget(T **widget)
virtual void ShowToolTip(const QString &toolTip) Q_DECL_OVERRIDE
QTableWidgetItem * AddCell(const QString &text, int row, int column, int aligment, bool ok=true)
QComboBox * gradationHeights
void MeasurementsWasSaved(bool saved)
void SetBaseMHeight(int height)
bool LoadFromExistingFile(const QString &path)
void SetCurrentFile(const QString &fileName)
void RefreshData(bool freshCall=false)
void SaveMBaseValue(double value)
QComboBox * comboBoxUnits
TMainWindow(QWidget *parent=nullptr)
Q_REQUIRED_RESULT QComboBox * SetGradationList(QLabel *label, const QStringList &list)
void SaveMSizeIncrease(double value)
void ChangedHeight(int index)
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE
void ShowMDiagram(const QString &name)
virtual ~TMainWindow() Q_DECL_OVERRIDE
void copyToClipboard()
copyToClipboard copy dialog selection to clipboard as comma separated values.
void SaveGender(int index)
bool SaveMeasurements(const QString &fileName, QString &error)
void CreateFromExisting()
void AboutToShowWindowMenu()
virtual void updateGroups() Q_DECL_OVERRIDE
void UpdatePadlock(bool ro)
QString getMeasurementNumber(const QString &name)
QLabel * labelPatternUnit
std::shared_ptr< VLockGuard< char > > lock
void SaveMHeightIncrease(double value)
QLabel * labelGradationHeights
virtual bool eventFilter(QObject *object, QEvent *event) Q_DECL_OVERRIDE
void ChangedSize(int index)
QSharedPointer< VTableSearch > search
bool IgnoreLocking(int error, const QString &path)
void Open(const QString &pathTo, const QString &filter)
The VContainer class container of all variables.