From c6040ca8fc1acb1964646e94613ddd5796ff2302 Mon Sep 17 00:00:00 2001 From: Ian Gebbie Date: Fri, 7 Feb 2020 20:50:36 +0200 Subject: [PATCH] Include dir --- QtHPConnect.pro | 114 ++-- cntfilesystemmodel.cpp | 67 +- hp_mdilogwindow.cpp | 49 ++ hp_mditexteditor.cpp | 15 +- hp_mdivariableedit.cpp | 5 +- hp_mdiwindow.cpp | 21 +- hptoolbox.cpp | 2 +- abstractdata.h => include/abstractdata.h | 0 .../cntfilesystemmodel.h | 6 +- datamodel.h => include/datamodel.h | 0 errorhandler.h => include/errorhandler.h | 0 eventthread.h => include/eventthread.h | 0 eventtimer.h => include/eventtimer.h | 0 getnumber.h => include/getnumber.h | 0 global.h => include/global.h | 0 hp_infodialog.h => include/hp_infodialog.h | 0 include/hp_mdilogwindow.h | 45 ++ .../hp_mditexteditor.h | 5 +- .../hp_mdivariableedit.h | 3 +- hp_mdiwindow.h => include/hp_mdiwindow.h | 6 +- hp_settingsdlg.h => include/hp_settingsdlg.h | 0 hp_typedef.h => include/hp_typedef.h | 0 hpdata.h => include/hpdata.h | 0 hpinterface.h => include/hpinterface.h | 0 hptreeitem.h => include/hptreeitem.h | 0 hpusb.h => include/hpusb.h | 0 main.h => include/main.h | 0 mainwindow.h => include/mainwindow.h | 6 +- matrixdata.h => include/matrixdata.h | 0 include/moc_predefs.h | 391 ++++++++++++ options.h => include/options.h | 0 texteditor.h => include/texteditor.h | 0 treemodel.h => include/treemodel.h | 0 include/ui_getnumber.h | 66 ++ include/ui_hp_infodialog.h | 125 ++++ include/ui_hp_mdiwindow.h | 64 ++ include/ui_hp_settingsdlg.h | 339 +++++++++++ include/ui_mainwindow.h | 574 ++++++++++++++++++ include/ui_options.h | 93 +++ include/ui_variableview.h | 59 ++ variableview.h => include/variableview.h | 0 vartablemodel.h => include/vartablemodel.h | 0 version.h => include/version.h | 0 mainwindow.cpp | 63 +- mainwindow.ui | 28 +- 45 files changed, 2049 insertions(+), 97 deletions(-) create mode 100644 hp_mdilogwindow.cpp rename abstractdata.h => include/abstractdata.h (100%) rename cntfilesystemmodel.h => include/cntfilesystemmodel.h (93%) rename datamodel.h => include/datamodel.h (100%) rename errorhandler.h => include/errorhandler.h (100%) rename eventthread.h => include/eventthread.h (100%) rename eventtimer.h => include/eventtimer.h (100%) rename getnumber.h => include/getnumber.h (100%) rename global.h => include/global.h (100%) rename hp_infodialog.h => include/hp_infodialog.h (100%) create mode 100644 include/hp_mdilogwindow.h rename hp_mditexteditor.h => include/hp_mditexteditor.h (93%) rename hp_mdivariableedit.h => include/hp_mdivariableedit.h (96%) rename hp_mdiwindow.h => include/hp_mdiwindow.h (92%) rename hp_settingsdlg.h => include/hp_settingsdlg.h (100%) rename hp_typedef.h => include/hp_typedef.h (100%) rename hpdata.h => include/hpdata.h (100%) rename hpinterface.h => include/hpinterface.h (100%) rename hptreeitem.h => include/hptreeitem.h (100%) rename hpusb.h => include/hpusb.h (100%) rename main.h => include/main.h (100%) rename mainwindow.h => include/mainwindow.h (97%) rename matrixdata.h => include/matrixdata.h (100%) create mode 100644 include/moc_predefs.h rename options.h => include/options.h (100%) rename texteditor.h => include/texteditor.h (100%) rename treemodel.h => include/treemodel.h (100%) create mode 100644 include/ui_getnumber.h create mode 100644 include/ui_hp_infodialog.h create mode 100644 include/ui_hp_mdiwindow.h create mode 100644 include/ui_hp_settingsdlg.h create mode 100644 include/ui_mainwindow.h create mode 100644 include/ui_options.h create mode 100644 include/ui_variableview.h rename variableview.h => include/variableview.h (100%) rename vartablemodel.h => include/vartablemodel.h (100%) rename version.h => include/version.h (100%) diff --git a/QtHPConnect.pro b/QtHPConnect.pro index 1ad17e1..91fcdc6 100644 --- a/QtHPConnect.pro +++ b/QtHPConnect.pro @@ -41,9 +41,31 @@ VERSION = $${VERSION_MAJOR}.$${VERSION_MINOR}.$${VERSION_PATCH}$${VERSION_BUILD} SOURCES += \ - mainwindow.cpp \ - main.cpp \ + abstractdata.cpp \ + cntfilesystemmodel.cpp \ + datamodel.cpp \ errorhandler.cpp \ + eventthread.cpp \ + eventtimer.cpp \ + getnumber.cpp \ + hp_infodialog.cpp \ + hp_mdilogwindow.cpp \ + hp_mditexteditor.cpp \ + hp_mdivariableedit.cpp \ + hp_mdiwindow.cpp \ + hp_settingsdlg.cpp \ + hpdata.cpp \ +# hptoolbox.cpp \ + hptreeitem.cpp \ + hpusb.cpp \ + main.cpp \ + mainwindow.cpp \ + matrixdata.cpp \ + options.cpp \ + texteditor.cpp \ + treemodel.cpp \ + variableview.cpp \ + vartablemodel.cpp \ libhpcalcs/src/calc_none.c \ libhpcalcs/src/calc_prime.c \ libhpcalcs/src/error.c \ @@ -60,34 +82,46 @@ SOURCES += \ libhpcalcs/src/prime_vpkt.c \ libhpcalcs/src/type2str.c \ libhpcalcs/src/typesprime.c \ - libhpcalcs/src/utils.c \ - datamodel.cpp \ - treemodel.cpp \ - hpdata.cpp \ - texteditor.cpp \ - variableview.cpp \ - hptreeitem.cpp \ - hp_mdiwindow.cpp \ - hp_mditexteditor.cpp \ - hp_mdivariableedit.cpp \ - vartablemodel.cpp \ - hp_infodialog.cpp \ - getnumber.cpp \ - hpusb.cpp \ - hp_settingsdlg.cpp \ - cntfilesystemmodel.cpp \ - abstractdata.cpp \ - matrixdata.cpp \ - options.cpp \ - eventtimer.cpp \ - eventthread.cpp + libhpcalcs/src/utils.c HEADERS += \ - mainwindow.h \ - main.h \ - global.h \ hidapi/hidapi.h \ - errorhandler.h \ + include/abstractdata.h \ + include/cntfilesystemmodel.h \ + include/datamodel.h \ + include/errorhandler.h \ + include/eventthread.h \ + include/eventtimer.h \ + include/getnumber.h \ + include/global.h \ + include/hp_infodialog.h \ + include/hp_mdilogwindow.h \ + include/hp_mditexteditor.h \ + include/hp_mdivariableedit.h \ + include/hp_mdiwindow.h \ + include/hp_settingsdlg.h \ + include/hp_typedef.h \ + include/hpdata.h \ + include/hpinterface.h \ + include/hptreeitem.h \ + include/hpusb.h \ + include/main.h \ + include/mainwindow.h \ + include/matrixdata.h \ + include/moc_predefs.h \ + include/options.h \ + include/texteditor.h \ + include/treemodel.h \ + include/ui_getnumber.h \ + include/ui_hp_infodialog.h \ + include/ui_hp_mdiwindow.h \ + include/ui_hp_settingsdlg.h \ + include/ui_mainwindow.h \ + include/ui_options.h \ + include/ui_variableview.h \ + include/variableview.h \ + include/vartablemodel.h \ + include/version.h \ libhpcalcs/include/error.h \ libhpcalcs/include/export.h \ libhpcalcs/include/filetypes.h \ @@ -101,30 +135,7 @@ HEADERS += \ libhpcalcs/include/logging.h \ libhpcalcs/include/prime_cmd.h \ libhpcalcs/include/typesprime.h \ - libhpcalcs/include/utils.h \ - datamodel.h \ - treemodel.h \ - hpdata.h \ - texteditor.h \ - variableview.h \ - hptreeitem.h \ - hp_mdiwindow.h \ - hp_mditexteditor.h \ - hp_mdivariableedit.h \ - vartablemodel.h \ - hp_infodialog.h \ - getnumber.h \ - hpusb.h \ - hp_settingsdlg.h \ - version.h \ - cntfilesystemmodel.h \ - abstractdata.h \ - matrixdata.h \ - options.h \ - hp_typedef.h \ - eventtimer.h \ - eventthread.h \ - eventthread.h + libhpcalcs/include/utils.h FORMS += \ mainwindow.ui \ @@ -142,6 +153,7 @@ else:unix: LIBS += #-L$$PWD/../../../../usr/local/lib/ -lhpcalcs INCLUDEPATH += $$PWD/../../../../usr/local/include +INCLUDEPATH += $$PWD/include INCLUDEPATH += $$PWD/libhpcalcs/include/ INCLUDEPATH += $$PWD/hidapi/ diff --git a/cntfilesystemmodel.cpp b/cntfilesystemmodel.cpp index 534b42f..6599e0f 100644 --- a/cntfilesystemmodel.cpp +++ b/cntfilesystemmodel.cpp @@ -26,6 +26,7 @@ #define FILE_NUM 9 +//list of file types and associated icons //Todo fix for all file types const QString contentFileSystemModel::filetype_list[FILE_NUM][2]={{"hpprgm",":/icons/apps_16x16.png"}, {"CAS Vars",":/icons/casFolder_16x16.png"}, @@ -38,6 +39,8 @@ const QString contentFileSystemModel::filetype_list[FILE_NUM][2]={{"hpprgm",":/i {"Variables",":/icons/varFolder_16x16.png"} }; + +//list of data object types used by contentFileSystemModel const hp_DataType contentFileSystemModel::func_type[FILE_TYPE]={ HP_PROG, HP_LIST, @@ -53,6 +56,7 @@ const std::array,FILE_TYPE> contentFileSystemMode {4,""}}; */ +//list of file type suffixes const QString contentFileSystemModel::file_type[FILE_TYPE]{ "hpprgm", "hplist", "hpmat", @@ -204,6 +208,7 @@ bool contentFileSystemModel::dropMimeData(const QMimeData* md_data, Qt::DropActi return true; } +//override to return a file object QVariant contentFileSystemModel::data( const QModelIndex &index, int role ) const { if( role == Qt::DecorationRole ) @@ -225,10 +230,12 @@ QVariant contentFileSystemModel::data( const QModelIndex &index, int role ) cons return QFileSystemModel::data(index, role); } +//action if file is left clicked void contentFileSystemModel::clickAction(QMdiArea * mdiwin, QModelIndex &index) { return openFile(mdiwin,index); } +//open a file in the mdi window void contentFileSystemModel::openFile(QMdiArea * mdiwin, QModelIndex &index) { hp_mdiTextEdit * hptextedit = nullptr; @@ -252,6 +259,7 @@ void contentFileSystemModel::openFile(QMdiArea * mdiwin, QModelIndex &index) { } +//delete a file void contentFileSystemModel::deleteFile(QModelIndex &index) { QFileInfo fileinfo = contentFileSystemModel::fileInfo(index); qDebug()<<"deleteFile "<. + */ + +#include "hp_mdilogwindow.h" +#include + +hp_MdiLogWindow::hp_MdiLogWindow(QWidget * parent) + :hp_MdiWindow(parent) +{ + setMinimumSize(500,400); + setMaximumSize(1000,1000); + setSizePolicy(QSizePolicy::Ignored,QSizePolicy::Ignored); + setup(); +} + +void hp_MdiLogWindow::setup() { + + textEdit = new QTextEdit(this); + setWidget(textEdit); +} + +QTextEdit * hp_MdiLogWindow::getEditor() { + return textEdit; +} + +void hp_MdiLogWindow::show() { + textEdit->show(); + hp_MdiWindow::show(); +} + +hp_MdiLogWindow::~hp_MdiLogWindow() { + + qDebug()<<"Entering ~hpmdiLogWindow()"; + +} diff --git a/hp_mditexteditor.cpp b/hp_mditexteditor.cpp index bfbde8e..b3674da 100644 --- a/hp_mditexteditor.cpp +++ b/hp_mditexteditor.cpp @@ -17,12 +17,13 @@ #include "hp_mditexteditor.h" +#include "hp_mdiwindow.h" #include "hptreeitem.h" #include "hpdata.h" #include "abstractdata.h" hp_mdiTextEdit::hp_mdiTextEdit(QWidget * parent,hpTreeItem * treeItem, AbstractData * calcData) - :QMdiSubWindow(parent) + :hp_MdiWindow(parent) { setMinimumSize(200,200); setMaximumSize(1000,1000); @@ -43,7 +44,7 @@ hp_mdiTextEdit::hp_mdiTextEdit(QWidget * parent,hpTreeItem * treeItem, AbstractD } hp_mdiTextEdit::hp_mdiTextEdit(QWidget * parent,hp_DataStruct filedata, AbstractData * calcData) - :QMdiSubWindow(parent) + :hp_MdiWindow (parent) { setMinimumSize(200,200); setMaximumSize(1000,1000); @@ -90,6 +91,16 @@ void hp_mdiTextEdit::setup() { setWidget(textEdit); } +bool hp_mdiTextEdit::save(){ + + return textEdit->save(); +} + +bool hp_mdiTextEdit::saveAs(){ + + return textEdit->saveAs(); +} + void hp_mdiTextEdit::show() { if (textEdit) diff --git a/hp_mdivariableedit.cpp b/hp_mdivariableedit.cpp index 05dcbcf..49e17b3 100644 --- a/hp_mdivariableedit.cpp +++ b/hp_mdivariableedit.cpp @@ -19,10 +19,11 @@ #include "hptreeitem.h" + hp_mdiVariableEdit::hp_mdiVariableEdit(QWidget *parent, hpTreeItem * treeItem, hpCalcData * dataStore) - : QMdiSubWindow(parent) + : hp_MdiWindow(parent) { setMinimumSize(200,200); setMaximumSize(1000,1000); @@ -51,7 +52,7 @@ void hp_mdiVariableEdit::setup() { void hp_mdiVariableEdit::show() { if(tableView) tableView->show(); - QMdiSubWindow::show(); + hp_MdiWindow::show(); } hp_mdiVariableEdit::~hp_mdiVariableEdit() { diff --git a/hp_mdiwindow.cpp b/hp_mdiwindow.cpp index c4d972a..f77bc82 100644 --- a/hp_mdiwindow.cpp +++ b/hp_mdiwindow.cpp @@ -21,24 +21,31 @@ hp_MdiWindow::hp_MdiWindow(QWidget * parent) :QMdiSubWindow(parent) { - setMinimumSize(500,400); - setMaximumSize(1000,1000); + // setMinimumSize(500,400); + // setMaximumSize(1000,1000); setSizePolicy(QSizePolicy::Ignored,QSizePolicy::Ignored); setup(); } void hp_MdiWindow::setup() { - textEdit = new QTextEdit(this); - setWidget(textEdit); + } -QTextEdit * hp_MdiWindow::getEditor() { - return textEdit; +bool hp_MdiWindow::save() { + + qDebug()<<"hp_MdiWindow::save"; + return false; +} + +bool hp_MdiWindow::saveAs() { + + qDebug()<<"hp_MdiWindow::saveas"; + return false; } void hp_MdiWindow::show() { - textEdit->show(); + QMdiSubWindow::show(); } diff --git a/hptoolbox.cpp b/hptoolbox.cpp index e9645a5..42935d9 100644 --- a/hptoolbox.cpp +++ b/hptoolbox.cpp @@ -1,4 +1,4 @@ -#include "hptoolbox.h" +#include #include "ui_hptoolbox.h" hpToolBox::hpToolBox(QWidget *parent) : diff --git a/abstractdata.h b/include/abstractdata.h similarity index 100% rename from abstractdata.h rename to include/abstractdata.h diff --git a/cntfilesystemmodel.h b/include/cntfilesystemmodel.h similarity index 93% rename from cntfilesystemmodel.h rename to include/cntfilesystemmodel.h index fc36c6e..80479c2 100644 --- a/cntfilesystemmodel.h +++ b/include/cntfilesystemmodel.h @@ -46,9 +46,9 @@ public: QString getFileType(hp_DataType) const; AbstractData * readFile(QFileInfo fileinfo) const; int writeFile(QFileInfo fileinfo, QByteArray data_in) const; - void createNewFolder(); - void createNewNote(); - void createNewProgram(); + bool createNewFolder(QString foldername); + bool createNewNote(QMdiArea * mdiwin,QString foldername); + bool createNewProgram(QMdiArea * mdiwin,QString foldername); ~contentFileSystemModel(); private: diff --git a/datamodel.h b/include/datamodel.h similarity index 100% rename from datamodel.h rename to include/datamodel.h diff --git a/errorhandler.h b/include/errorhandler.h similarity index 100% rename from errorhandler.h rename to include/errorhandler.h diff --git a/eventthread.h b/include/eventthread.h similarity index 100% rename from eventthread.h rename to include/eventthread.h diff --git a/eventtimer.h b/include/eventtimer.h similarity index 100% rename from eventtimer.h rename to include/eventtimer.h diff --git a/getnumber.h b/include/getnumber.h similarity index 100% rename from getnumber.h rename to include/getnumber.h diff --git a/global.h b/include/global.h similarity index 100% rename from global.h rename to include/global.h diff --git a/hp_infodialog.h b/include/hp_infodialog.h similarity index 100% rename from hp_infodialog.h rename to include/hp_infodialog.h diff --git a/include/hp_mdilogwindow.h b/include/hp_mdilogwindow.h new file mode 100644 index 0000000..ff302e8 --- /dev/null +++ b/include/hp_mdilogwindow.h @@ -0,0 +1,45 @@ +/* + * This file is part of the QtHPConnect distribution (https://github.com/Indy970/QtHPConnect.git). + * Copyright (c) 2020 Ian Gebbie. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3 or later. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef HP_MDILOGWINDOW_H +#define HP_MDILOGWINDOW_H + +#include +#include +#include +#include "hp_mdiwindow.h" + +#include "texteditor.h" + +class hp_MdiLogWindow: public hp_MdiWindow +{ + Q_OBJECT + +protected: + + QTextEdit * textEdit; + +public: + hp_MdiLogWindow(QWidget * parent); + void setup(); + QTextEdit * getEditor(); + void show(); + ~hp_MdiLogWindow(); + +}; + +#endif // HP_MDILOGWINDOW_H diff --git a/hp_mditexteditor.h b/include/hp_mditexteditor.h similarity index 93% rename from hp_mditexteditor.h rename to include/hp_mditexteditor.h index 7cbc865..917e38c 100644 --- a/hp_mditexteditor.h +++ b/include/hp_mditexteditor.h @@ -23,13 +23,14 @@ #include #include #include "hpdata.h" +#include "hp_mdiwindow.h" class hpTreeItem; class hpCalcData; #include "texteditor.h" -class hp_mdiTextEdit: public QMdiSubWindow +class hp_mdiTextEdit: public hp_MdiWindow { Q_OBJECT @@ -48,6 +49,8 @@ public: hp_mdiTextEdit(QWidget * parent, hp_DataStruct filename, AbstractData * calcData); void setup(); + bool save(); + bool saveAs(); void show(); ~hp_mdiTextEdit(); diff --git a/hp_mdivariableedit.h b/include/hp_mdivariableedit.h similarity index 96% rename from hp_mdivariableedit.h rename to include/hp_mdivariableedit.h index a86e815..b1110de 100644 --- a/hp_mdivariableedit.h +++ b/include/hp_mdivariableedit.h @@ -24,10 +24,11 @@ #include #include "vartablemodel.h" #include "hpdata.h" +#include "hp_mdiwindow.h" class hpTreeItem; -class hp_mdiVariableEdit : public QMdiSubWindow +class hp_mdiVariableEdit : public hp_MdiWindow { Q_OBJECT diff --git a/hp_mdiwindow.h b/include/hp_mdiwindow.h similarity index 92% rename from hp_mdiwindow.h rename to include/hp_mdiwindow.h index 745ecc5..7740ece 100644 --- a/hp_mdiwindow.h +++ b/include/hp_mdiwindow.h @@ -22,7 +22,6 @@ #include #include -#include "texteditor.h" class hp_MdiWindow: public QMdiSubWindow { @@ -30,12 +29,13 @@ class hp_MdiWindow: public QMdiSubWindow protected: - QTextEdit * textEdit; + public: hp_MdiWindow(QWidget * parent); void setup(); - QTextEdit * getEditor(); + virtual bool save(); + virtual bool saveAs(); void show(); ~hp_MdiWindow(); diff --git a/hp_settingsdlg.h b/include/hp_settingsdlg.h similarity index 100% rename from hp_settingsdlg.h rename to include/hp_settingsdlg.h diff --git a/hp_typedef.h b/include/hp_typedef.h similarity index 100% rename from hp_typedef.h rename to include/hp_typedef.h diff --git a/hpdata.h b/include/hpdata.h similarity index 100% rename from hpdata.h rename to include/hpdata.h diff --git a/hpinterface.h b/include/hpinterface.h similarity index 100% rename from hpinterface.h rename to include/hpinterface.h diff --git a/hptreeitem.h b/include/hptreeitem.h similarity index 100% rename from hptreeitem.h rename to include/hptreeitem.h diff --git a/hpusb.h b/include/hpusb.h similarity index 100% rename from hpusb.h rename to include/hpusb.h diff --git a/main.h b/include/main.h similarity index 100% rename from main.h rename to include/main.h diff --git a/mainwindow.h b/include/mainwindow.h similarity index 97% rename from mainwindow.h rename to include/mainwindow.h index 3c2607a..64f381b 100644 --- a/mainwindow.h +++ b/include/mainwindow.h @@ -32,7 +32,7 @@ #include "datamodel.h" #include "treemodel.h" #include "texteditor.h" -#include "hp_mdiwindow.h" +#include "hp_mdilogwindow.h" #include "hp_mdivariableedit.h" #include "cntfilesystemmodel.h" #include "eventtimer.h" @@ -102,6 +102,8 @@ private slots: void contentRenameAction(bool); void contentDeleteAction(bool); + hp_MdiWindow * activeMdiChild(); + void on_tvCalculators_customContextMenuRequested(const QPoint &pos); void on_tvContent_customContextMenuRequested(const QPoint &pos); void eventHandler(); @@ -126,7 +128,7 @@ private: hpusb * hpapi=nullptr; QMdiSubWindow * msgWindow=nullptr; - hp_MdiWindow * logWindow=nullptr; + hp_MdiLogWindow * logWindow=nullptr; contentFileSystemModel contentModel; QTextEdit * logEdit=nullptr; Ui::MainWindow *ui; diff --git a/matrixdata.h b/include/matrixdata.h similarity index 100% rename from matrixdata.h rename to include/matrixdata.h diff --git a/include/moc_predefs.h b/include/moc_predefs.h new file mode 100644 index 0000000..adaa077 --- /dev/null +++ b/include/moc_predefs.h @@ -0,0 +1,391 @@ +#define __SSP_STRONG__ 3 +#define __DBL_MIN_EXP__ (-1021) +#define __FLT32X_MAX_EXP__ 1024 +#define __cpp_attributes 200809 +#define __UINT_LEAST16_MAX__ 0xffff +#define __ATOMIC_ACQUIRE 2 +#define __FLT128_MAX_10_EXP__ 4932 +#define __FLT_MIN__ 1.17549435082228750796873653722224568e-38F +#define __GCC_IEC_559_COMPLEX 2 +#define __cpp_aggregate_nsdmi 201304 +#define __UINT_LEAST8_TYPE__ unsigned char +#define __SIZEOF_FLOAT80__ 16 +#define __INTMAX_C(c) c ## L +#define __CHAR_BIT__ 8 +#define __UINT8_MAX__ 0xff +#define __WINT_MAX__ 0xffffffffU +#define __FLT32_MIN_EXP__ (-125) +#define __cpp_static_assert 200410 +#define __ORDER_LITTLE_ENDIAN__ 1234 +#define __SIZE_MAX__ 0xffffffffffffffffUL +#define __WCHAR_MAX__ 0x7fffffff +#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1 +#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 1 +#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1 +#define __DBL_DENORM_MIN__ double(4.94065645841246544176568792868221372e-324L) +#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1 +#define __GCC_ATOMIC_CHAR_LOCK_FREE 2 +#define __GCC_IEC_559 2 +#define __FLT32X_DECIMAL_DIG__ 17 +#define __FLT_EVAL_METHOD__ 0 +#define __unix__ 1 +#define __cpp_binary_literals 201304 +#define __FLT64_DECIMAL_DIG__ 17 +#define __CET__ 3 +#define __GCC_ATOMIC_CHAR32_T_LOCK_FREE 2 +#define __x86_64 1 +#define __cpp_variadic_templates 200704 +#define __UINT_FAST64_MAX__ 0xffffffffffffffffUL +#define __SIG_ATOMIC_TYPE__ int +#define __DBL_MIN_10_EXP__ (-307) +#define __FINITE_MATH_ONLY__ 0 +#define __cpp_variable_templates 201304 +#define __GNUC_PATCHLEVEL__ 1 +#define __FLT32_HAS_DENORM__ 1 +#define __UINT_FAST8_MAX__ 0xff +#define __cpp_rvalue_reference 200610 +#define __has_include(STR) __has_include__(STR) +#define __DEC64_MAX_EXP__ 385 +#define __INT8_C(c) c +#define __INT_LEAST8_WIDTH__ 8 +#define __UINT_LEAST64_MAX__ 0xffffffffffffffffUL +#define __SHRT_MAX__ 0x7fff +#define __LDBL_MAX__ 1.18973149535723176502126385303097021e+4932L +#define __FLT64X_MAX_10_EXP__ 4932 +#define __UINT_LEAST8_MAX__ 0xff +#define __GCC_ATOMIC_BOOL_LOCK_FREE 2 +#define __FLT128_DENORM_MIN__ 6.47517511943802511092443895822764655e-4966F128 +#define __UINTMAX_TYPE__ long unsigned int +#define __linux 1 +#define __DEC32_EPSILON__ 1E-6DF +#define __FLT_EVAL_METHOD_TS_18661_3__ 0 +#define __OPTIMIZE__ 1 +#define __unix 1 +#define __UINT32_MAX__ 0xffffffffU +#define __GXX_EXPERIMENTAL_CXX0X__ 1 +#define __LDBL_MAX_EXP__ 16384 +#define __FLT128_MIN_EXP__ (-16381) +#define __WINT_MIN__ 0U +#define __linux__ 1 +#define __FLT128_MIN_10_EXP__ (-4931) +#define __INT_LEAST16_WIDTH__ 16 +#define __SCHAR_MAX__ 0x7f +#define __FLT128_MANT_DIG__ 113 +#define __WCHAR_MIN__ (-__WCHAR_MAX__ - 1) +#define __INT64_C(c) c ## L +#define __DBL_DIG__ 15 +#define __GCC_ATOMIC_POINTER_LOCK_FREE 2 +#define __FLT64X_MANT_DIG__ 64 +#define _FORTIFY_SOURCE 2 +#define __SIZEOF_INT__ 4 +#define __SIZEOF_POINTER__ 8 +#define __GCC_ATOMIC_CHAR16_T_LOCK_FREE 2 +#define __USER_LABEL_PREFIX__ +#define __FLT64X_EPSILON__ 1.08420217248550443400745280086994171e-19F64x +#define __STDC_HOSTED__ 1 +#define __LDBL_HAS_INFINITY__ 1 +#define __FLT32_DIG__ 6 +#define __FLT_EPSILON__ 1.19209289550781250000000000000000000e-7F +#define __GXX_WEAK__ 1 +#define __SHRT_WIDTH__ 16 +#define __LDBL_MIN__ 3.36210314311209350626267781732175260e-4932L +#define __DEC32_MAX__ 9.999999E96DF +#define __cpp_threadsafe_static_init 200806 +#define __FLT64X_DENORM_MIN__ 3.64519953188247460252840593361941982e-4951F64x +#define __FLT32X_HAS_INFINITY__ 1 +#define __INT32_MAX__ 0x7fffffff +#define __INT_WIDTH__ 32 +#define __SIZEOF_LONG__ 8 +#define __STDC_IEC_559__ 1 +#define __STDC_ISO_10646__ 201706L +#define __UINT16_C(c) c +#define __PTRDIFF_WIDTH__ 64 +#define __DECIMAL_DIG__ 21 +#define __FLT64_EPSILON__ 2.22044604925031308084726333618164062e-16F64 +#define __gnu_linux__ 1 +#define __INTMAX_WIDTH__ 64 +#define __FLT64_MIN_EXP__ (-1021) +#define __has_include_next(STR) __has_include_next__(STR) +#define __FLT64X_MIN_10_EXP__ (-4931) +#define __LDBL_HAS_QUIET_NAN__ 1 +#define __FLT64_MANT_DIG__ 53 +#define __GNUC__ 9 +#define __GXX_RTTI 1 +#define __pie__ 2 +#define __MMX__ 1 +#define __cpp_delegating_constructors 200604 +#define __FLT_HAS_DENORM__ 1 +#define __SIZEOF_LONG_DOUBLE__ 16 +#define __BIGGEST_ALIGNMENT__ 16 +#define __STDC_UTF_16__ 1 +#define __FLT64_MAX_10_EXP__ 308 +#define __FLT32_HAS_INFINITY__ 1 +#define __DBL_MAX__ double(1.79769313486231570814527423731704357e+308L) +#define __cpp_raw_strings 200710 +#define __INT_FAST32_MAX__ 0x7fffffffffffffffL +#define __DBL_HAS_INFINITY__ 1 +#define __HAVE_SPECULATION_SAFE_VALUE 1 +#define __DEC32_MIN_EXP__ (-94) +#define __INTPTR_WIDTH__ 64 +#define __FLT32X_HAS_DENORM__ 1 +#define __INT_FAST16_TYPE__ long int +#define __LDBL_HAS_DENORM__ 1 +#define __cplusplus 201402L +#define __cpp_ref_qualifiers 200710 +#define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL +#define __INT_LEAST32_MAX__ 0x7fffffff +#define __DEC32_MIN__ 1E-95DF +#define __DEPRECATED 1 +#define __cpp_rvalue_references 200610 +#define __DBL_MAX_EXP__ 1024 +#define __WCHAR_WIDTH__ 32 +#define __FLT32_MAX__ 3.40282346638528859811704183484516925e+38F32 +#define __DEC128_EPSILON__ 1E-33DL +#define __SSE2_MATH__ 1 +#define __ATOMIC_HLE_RELEASE 131072 +#define __PTRDIFF_MAX__ 0x7fffffffffffffffL +#define __amd64 1 +#define __ATOMIC_HLE_ACQUIRE 65536 +#define __FLT32_HAS_QUIET_NAN__ 1 +#define __GNUG__ 9 +#define __LONG_LONG_MAX__ 0x7fffffffffffffffLL +#define __SIZEOF_SIZE_T__ 8 +#define __cpp_nsdmi 200809 +#define __FLT64X_MIN_EXP__ (-16381) +#define __SIZEOF_WINT_T__ 4 +#define __LONG_LONG_WIDTH__ 64 +#define __cpp_initializer_lists 200806 +#define __FLT32_MAX_EXP__ 128 +#define __cpp_hex_float 201603 +#define __GCC_HAVE_DWARF2_CFI_ASM 1 +#define __GXX_ABI_VERSION 1013 +#define __FLT128_HAS_INFINITY__ 1 +#define __FLT_MIN_EXP__ (-125) +#define __cpp_lambdas 200907 +#define __FLT64X_HAS_QUIET_NAN__ 1 +#define __INT_FAST64_TYPE__ long int +#define __FLT64_DENORM_MIN__ 4.94065645841246544176568792868221372e-324F64 +#define __DBL_MIN__ double(2.22507385850720138309023271733240406e-308L) +#define __PIE__ 2 +#define __LP64__ 1 +#define __FLT32X_EPSILON__ 2.22044604925031308084726333618164062e-16F32x +#define __DECIMAL_BID_FORMAT__ 1 +#define __FLT64_MIN_10_EXP__ (-307) +#define __FLT64X_DECIMAL_DIG__ 21 +#define __DEC128_MIN__ 1E-6143DL +#define __REGISTER_PREFIX__ +#define __UINT16_MAX__ 0xffff +#define __FLT32_MIN__ 1.17549435082228750796873653722224568e-38F32 +#define __UINT8_TYPE__ unsigned char +#define __FLT_MANT_DIG__ 24 +#define __LDBL_DECIMAL_DIG__ 21 +#define __VERSION__ "9.2.1 20191008" +#define __UINT64_C(c) c ## UL +#define __cpp_unicode_characters 200704 +#define _STDC_PREDEF_H 1 +#define __cpp_decltype_auto 201304 +#define __GCC_ATOMIC_INT_LOCK_FREE 2 +#define __FLT128_MAX_EXP__ 16384 +#define __FLT32_MANT_DIG__ 24 +#define __FLOAT_WORD_ORDER__ __ORDER_LITTLE_ENDIAN__ +#define __STDC_IEC_559_COMPLEX__ 1 +#define __FLT128_HAS_DENORM__ 1 +#define __FLT128_DIG__ 33 +#define __SCHAR_WIDTH__ 8 +#define __INT32_C(c) c +#define __DEC64_EPSILON__ 1E-15DD +#define __ORDER_PDP_ENDIAN__ 3412 +#define __DEC128_MIN_EXP__ (-6142) +#define __FLT32_MAX_10_EXP__ 38 +#define __INT_FAST32_TYPE__ long int +#define __UINT_LEAST16_TYPE__ short unsigned int +#define __FLT64X_HAS_INFINITY__ 1 +#define unix 1 +#define __DBL_HAS_DENORM__ 1 +#define __INT16_MAX__ 0x7fff +#define __cpp_rtti 199711 +#define __SIZE_TYPE__ long unsigned int +#define __UINT64_MAX__ 0xffffffffffffffffUL +#define __FLT64X_DIG__ 18 +#define __INT8_TYPE__ signed char +#define __cpp_digit_separators 201309 +#define __ELF__ 1 +#define __GCC_ASM_FLAG_OUTPUTS__ 1 +#define __FLT_RADIX__ 2 +#define __INT_LEAST16_TYPE__ short int +#define __LDBL_EPSILON__ 1.08420217248550443400745280086994171e-19L +#define __UINTMAX_C(c) c ## UL +#define __GLIBCXX_BITSIZE_INT_N_0 128 +#define __k8 1 +#define __SIG_ATOMIC_MAX__ 0x7fffffff +#define __GCC_ATOMIC_WCHAR_T_LOCK_FREE 2 +#define __SIZEOF_PTRDIFF_T__ 8 +#define __FLT32X_MANT_DIG__ 53 +#define __x86_64__ 1 +#define __FLT32X_MIN_EXP__ (-1021) +#define __DEC32_SUBNORMAL_MIN__ 0.000001E-95DF +#define __INT_FAST16_MAX__ 0x7fffffffffffffffL +#define __FLT64_DIG__ 15 +#define __UINT_FAST32_MAX__ 0xffffffffffffffffUL +#define __UINT_LEAST64_TYPE__ long unsigned int +#define __FLT_HAS_QUIET_NAN__ 1 +#define __FLT_MAX_10_EXP__ 38 +#define __LONG_MAX__ 0x7fffffffffffffffL +#define __FLT64X_HAS_DENORM__ 1 +#define __DEC128_SUBNORMAL_MIN__ 0.000000000000000000000000000000001E-6143DL +#define __FLT_HAS_INFINITY__ 1 +#define __cpp_unicode_literals 200710 +#define __UINT_FAST16_TYPE__ long unsigned int +#define __DEC64_MAX__ 9.999999999999999E384DD +#define __INT_FAST32_WIDTH__ 64 +#define __CHAR16_TYPE__ short unsigned int +#define __PRAGMA_REDEFINE_EXTNAME 1 +#define __SIZE_WIDTH__ 64 +#define __SEG_FS 1 +#define __INT_LEAST16_MAX__ 0x7fff +#define __DEC64_MANT_DIG__ 16 +#define __INT64_MAX__ 0x7fffffffffffffffL +#define __UINT_LEAST32_MAX__ 0xffffffffU +#define __SEG_GS 1 +#define __FLT32_DENORM_MIN__ 1.40129846432481707092372958328991613e-45F32 +#define __GCC_ATOMIC_LONG_LOCK_FREE 2 +#define __SIG_ATOMIC_WIDTH__ 32 +#define __INT_LEAST64_TYPE__ long int +#define __INT16_TYPE__ short int +#define __INT_LEAST8_TYPE__ signed char +#define __DEC32_MAX_EXP__ 97 +#define __INT_FAST8_MAX__ 0x7f +#define __FLT128_MAX__ 1.18973149535723176508575932662800702e+4932F128 +#define __INTPTR_MAX__ 0x7fffffffffffffffL +#define __cpp_sized_deallocation 201309 +#define linux 1 +#define __cpp_range_based_for 200907 +#define __FLT64_HAS_QUIET_NAN__ 1 +#define __FLT32_MIN_10_EXP__ (-37) +#define __SSE2__ 1 +#define __EXCEPTIONS 1 +#define __LDBL_MANT_DIG__ 64 +#define __DBL_HAS_QUIET_NAN__ 1 +#define __FLT64_HAS_INFINITY__ 1 +#define __FLT64X_MAX__ 1.18973149535723176502126385303097021e+4932F64x +#define __SIG_ATOMIC_MIN__ (-__SIG_ATOMIC_MAX__ - 1) +#define __code_model_small__ 1 +#define __cpp_return_type_deduction 201304 +#define __k8__ 1 +#define __INTPTR_TYPE__ long int +#define __UINT16_TYPE__ short unsigned int +#define __WCHAR_TYPE__ int +#define __SIZEOF_FLOAT__ 4 +#define __pic__ 2 +#define __UINTPTR_MAX__ 0xffffffffffffffffUL +#define __INT_FAST64_WIDTH__ 64 +#define __DEC64_MIN_EXP__ (-382) +#define __cpp_decltype 200707 +#define __FLT32_DECIMAL_DIG__ 9 +#define __INT_FAST64_MAX__ 0x7fffffffffffffffL +#define __GCC_ATOMIC_TEST_AND_SET_TRUEVAL 1 +#define __FLT_DIG__ 6 +#define __FLT64X_MAX_EXP__ 16384 +#define __UINT_FAST64_TYPE__ long unsigned int +#define __INT_MAX__ 0x7fffffff +#define __amd64__ 1 +#define __INT64_TYPE__ long int +#define __FLT_MAX_EXP__ 128 +#define __ORDER_BIG_ENDIAN__ 4321 +#define __DBL_MANT_DIG__ 53 +#define __cpp_inheriting_constructors 201511 +#define __SIZEOF_FLOAT128__ 16 +#define __INT_LEAST64_MAX__ 0x7fffffffffffffffL +#define __DEC64_MIN__ 1E-383DD +#define __WINT_TYPE__ unsigned int +#define __UINT_LEAST32_TYPE__ unsigned int +#define __SIZEOF_SHORT__ 2 +#define __SSE__ 1 +#define __LDBL_MIN_EXP__ (-16381) +#define __FLT64_MAX__ 1.79769313486231570814527423731704357e+308F64 +#define __WINT_WIDTH__ 32 +#define __INT_LEAST8_MAX__ 0x7f +#define __FLT32X_MAX_10_EXP__ 308 +#define __SIZEOF_INT128__ 16 +#define __LDBL_MAX_10_EXP__ 4932 +#define __ATOMIC_RELAXED 0 +#define __DBL_EPSILON__ double(2.22044604925031308084726333618164062e-16L) +#define __FLT128_MIN__ 3.36210314311209350626267781732175260e-4932F128 +#define _LP64 1 +#define __UINT8_C(c) c +#define __FLT64_MAX_EXP__ 1024 +#define __INT_LEAST32_TYPE__ int +#define __SIZEOF_WCHAR_T__ 4 +#define __FLT128_HAS_QUIET_NAN__ 1 +#define __INT_FAST8_TYPE__ signed char +#define __FLT64X_MIN__ 3.36210314311209350626267781732175260e-4932F64x +#define __GNUC_STDC_INLINE__ 1 +#define __FLT64_HAS_DENORM__ 1 +#define __FLT32_EPSILON__ 1.19209289550781250000000000000000000e-7F32 +#define __DBL_DECIMAL_DIG__ 17 +#define __STDC_UTF_32__ 1 +#define __INT_FAST8_WIDTH__ 8 +#define __FXSR__ 1 +#define __DEC_EVAL_METHOD__ 2 +#define __FLT32X_MAX__ 1.79769313486231570814527423731704357e+308F32x +#define __cpp_runtime_arrays 198712 +#define __UINT64_TYPE__ long unsigned int +#define __UINT32_C(c) c ## U +#define __INTMAX_MAX__ 0x7fffffffffffffffL +#define __cpp_alias_templates 200704 +#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__ +#define __FLT_DENORM_MIN__ 1.40129846432481707092372958328991613e-45F +#define __INT8_MAX__ 0x7f +#define __LONG_WIDTH__ 64 +#define __PIC__ 2 +#define __UINT_FAST32_TYPE__ long unsigned int +#define __CHAR32_TYPE__ unsigned int +#define __FLT_MAX__ 3.40282346638528859811704183484516925e+38F +#define __cpp_constexpr 201304 +#define __INT32_TYPE__ int +#define __SIZEOF_DOUBLE__ 8 +#define __cpp_exceptions 199711 +#define __FLT_MIN_10_EXP__ (-37) +#define __FLT64_MIN__ 2.22507385850720138309023271733240406e-308F64 +#define __INT_LEAST32_WIDTH__ 32 +#define __INTMAX_TYPE__ long int +#define __DEC128_MAX_EXP__ 6145 +#define __FLT32X_HAS_QUIET_NAN__ 1 +#define __ATOMIC_CONSUME 1 +#define __GNUC_MINOR__ 2 +#define __GLIBCXX_TYPE_INT_N_0 __int128 +#define __INT_FAST16_WIDTH__ 64 +#define __UINTMAX_MAX__ 0xffffffffffffffffUL +#define __DEC32_MANT_DIG__ 7 +#define __FLT32X_DENORM_MIN__ 4.94065645841246544176568792868221372e-324F32x +#define __DBL_MAX_10_EXP__ 308 +#define __LDBL_DENORM_MIN__ 3.64519953188247460252840593361941982e-4951L +#define __INT16_C(c) c +#define __cpp_generic_lambdas 201304 +#define __STDC__ 1 +#define __FLT32X_DIG__ 15 +#define __PTRDIFF_TYPE__ long int +#define __ATOMIC_SEQ_CST 5 +#define __UINT32_TYPE__ unsigned int +#define __FLT32X_MIN_10_EXP__ (-307) +#define __UINTPTR_TYPE__ long unsigned int +#define __DEC64_SUBNORMAL_MIN__ 0.000000000000001E-383DD +#define __DEC128_MANT_DIG__ 34 +#define __LDBL_MIN_10_EXP__ (-4931) +#define __FLT128_EPSILON__ 1.92592994438723585305597794258492732e-34F128 +#define __SSE_MATH__ 1 +#define __SIZEOF_LONG_LONG__ 8 +#define __cpp_user_defined_literals 200809 +#define __FLT128_DECIMAL_DIG__ 36 +#define __GCC_ATOMIC_LLONG_LOCK_FREE 2 +#define __FLT32X_MIN__ 2.22507385850720138309023271733240406e-308F32x +#define __LDBL_DIG__ 18 +#define __FLT_DECIMAL_DIG__ 9 +#define __UINT_FAST16_MAX__ 0xffffffffffffffffUL +#define __GCC_ATOMIC_SHORT_LOCK_FREE 2 +#define __INT_LEAST64_WIDTH__ 64 +#define __UINT_FAST8_TYPE__ unsigned char +#define _GNU_SOURCE 1 +#define __cpp_init_captures 201304 +#define __ATOMIC_ACQ_REL 4 +#define __ATOMIC_RELEASE 3 diff --git a/options.h b/include/options.h similarity index 100% rename from options.h rename to include/options.h diff --git a/texteditor.h b/include/texteditor.h similarity index 100% rename from texteditor.h rename to include/texteditor.h diff --git a/treemodel.h b/include/treemodel.h similarity index 100% rename from treemodel.h rename to include/treemodel.h diff --git a/include/ui_getnumber.h b/include/ui_getnumber.h new file mode 100644 index 0000000..a8d765f --- /dev/null +++ b/include/ui_getnumber.h @@ -0,0 +1,66 @@ +/******************************************************************************** +** Form generated from reading UI file 'getnumber.ui' +** +** Created by: Qt User Interface Compiler version 5.12.4 +** +** WARNING! All changes made in this file will be lost when recompiling UI file! +********************************************************************************/ + +#ifndef UI_GETNUMBER_H +#define UI_GETNUMBER_H + +#include +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + +class Ui_getNumber +{ +public: + QDialogButtonBox *buttonBox; + QLineEdit *lineEdit; + QPushButton *pushButton; + + void setupUi(QDialog *getNumber) + { + if (getNumber->objectName().isEmpty()) + getNumber->setObjectName(QString::fromUtf8("getNumber")); + getNumber->resize(427, 118); + buttonBox = new QDialogButtonBox(getNumber); + buttonBox->setObjectName(QString::fromUtf8("buttonBox")); + buttonBox->setGeometry(QRect(0, 70, 411, 32)); + buttonBox->setOrientation(Qt::Horizontal); + buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok); + lineEdit = new QLineEdit(getNumber); + lineEdit->setObjectName(QString::fromUtf8("lineEdit")); + lineEdit->setGeometry(QRect(30, 20, 381, 32)); + pushButton = new QPushButton(getNumber); + pushButton->setObjectName(QString::fromUtf8("pushButton")); + pushButton->setGeometry(QRect(30, 70, 88, 34)); + + retranslateUi(getNumber); + QObject::connect(buttonBox, SIGNAL(accepted()), getNumber, SLOT(accept())); + QObject::connect(buttonBox, SIGNAL(rejected()), getNumber, SLOT(reject())); + + QMetaObject::connectSlotsByName(getNumber); + } // setupUi + + void retranslateUi(QDialog *getNumber) + { + getNumber->setWindowTitle(QApplication::translate("getNumber", "Dialog", nullptr)); + pushButton->setText(QApplication::translate("getNumber", "Test", nullptr)); + } // retranslateUi + +}; + +namespace Ui { + class getNumber: public Ui_getNumber {}; +} // namespace Ui + +QT_END_NAMESPACE + +#endif // UI_GETNUMBER_H diff --git a/include/ui_hp_infodialog.h b/include/ui_hp_infodialog.h new file mode 100644 index 0000000..95ea4fc --- /dev/null +++ b/include/ui_hp_infodialog.h @@ -0,0 +1,125 @@ +/******************************************************************************** +** Form generated from reading UI file 'hp_infodialog.ui' +** +** Created by: Qt User Interface Compiler version 5.12.4 +** +** WARNING! All changes made in this file will be lost when recompiling UI file! +********************************************************************************/ + +#ifndef UI_HP_INFODIALOG_H +#define UI_HP_INFODIALOG_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + +class Ui_hp_infoDialog +{ +public: + QVBoxLayout *verticalLayout; + QFrame *frame; + QHBoxLayout *horizontalLayout; + QFormLayout *formLayout; + QLabel *labelapp; + QLabel *appver; + QLabel *labelopp; + QLabel *oppver; + QLabel *labelser; + QLabel *serialnum; + QDialogButtonBox *buttonBox; + + void setupUi(QDialog *hp_infoDialog) + { + if (hp_infoDialog->objectName().isEmpty()) + hp_infoDialog->setObjectName(QString::fromUtf8("hp_infoDialog")); + hp_infoDialog->resize(411, 143); + verticalLayout = new QVBoxLayout(hp_infoDialog); + verticalLayout->setObjectName(QString::fromUtf8("verticalLayout")); + frame = new QFrame(hp_infoDialog); + frame->setObjectName(QString::fromUtf8("frame")); + frame->setFrameShape(QFrame::StyledPanel); + frame->setFrameShadow(QFrame::Raised); + horizontalLayout = new QHBoxLayout(frame); + horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout")); + formLayout = new QFormLayout(); + formLayout->setObjectName(QString::fromUtf8("formLayout")); + formLayout->setFormAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter); + labelapp = new QLabel(frame); + labelapp->setObjectName(QString::fromUtf8("labelapp")); + + formLayout->setWidget(0, QFormLayout::LabelRole, labelapp); + + appver = new QLabel(frame); + appver->setObjectName(QString::fromUtf8("appver")); + + formLayout->setWidget(0, QFormLayout::FieldRole, appver); + + labelopp = new QLabel(frame); + labelopp->setObjectName(QString::fromUtf8("labelopp")); + + formLayout->setWidget(1, QFormLayout::LabelRole, labelopp); + + oppver = new QLabel(frame); + oppver->setObjectName(QString::fromUtf8("oppver")); + + formLayout->setWidget(1, QFormLayout::FieldRole, oppver); + + labelser = new QLabel(frame); + labelser->setObjectName(QString::fromUtf8("labelser")); + + formLayout->setWidget(2, QFormLayout::LabelRole, labelser); + + serialnum = new QLabel(frame); + serialnum->setObjectName(QString::fromUtf8("serialnum")); + + formLayout->setWidget(2, QFormLayout::FieldRole, serialnum); + + + horizontalLayout->addLayout(formLayout); + + + verticalLayout->addWidget(frame); + + buttonBox = new QDialogButtonBox(hp_infoDialog); + buttonBox->setObjectName(QString::fromUtf8("buttonBox")); + buttonBox->setOrientation(Qt::Horizontal); + buttonBox->setStandardButtons(QDialogButtonBox::Ok); + + verticalLayout->addWidget(buttonBox); + + + retranslateUi(hp_infoDialog); + QObject::connect(buttonBox, SIGNAL(rejected()), hp_infoDialog, SLOT(reject())); + QObject::connect(buttonBox, SIGNAL(accepted()), hp_infoDialog, SLOT(accept())); + + QMetaObject::connectSlotsByName(hp_infoDialog); + } // setupUi + + void retranslateUi(QDialog *hp_infoDialog) + { + hp_infoDialog->setWindowTitle(QApplication::translate("hp_infoDialog", "HP Information", nullptr)); + labelapp->setText(QApplication::translate("hp_infoDialog", "Application version:", nullptr)); + appver->setText(QApplication::translate("hp_infoDialog", "-", nullptr)); + labelopp->setText(QApplication::translate("hp_infoDialog", "Operational system version:", nullptr)); + oppver->setText(QApplication::translate("hp_infoDialog", "-", nullptr)); + labelser->setText(QApplication::translate("hp_infoDialog", "Serial number:", nullptr)); + serialnum->setText(QApplication::translate("hp_infoDialog", "-", nullptr)); + } // retranslateUi + +}; + +namespace Ui { + class hp_infoDialog: public Ui_hp_infoDialog {}; +} // namespace Ui + +QT_END_NAMESPACE + +#endif // UI_HP_INFODIALOG_H diff --git a/include/ui_hp_mdiwindow.h b/include/ui_hp_mdiwindow.h new file mode 100644 index 0000000..38721d4 --- /dev/null +++ b/include/ui_hp_mdiwindow.h @@ -0,0 +1,64 @@ +/******************************************************************************** +** Form generated from reading UI file 'hp_mdiwindow.ui' +** +** Created by: Qt User Interface Compiler version 5.12.4 +** +** WARNING! All changes made in this file will be lost when recompiling UI file! +********************************************************************************/ + +#ifndef UI_HP_MDIWINDOW_H +#define UI_HP_MDIWINDOW_H + +#include +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + +class Ui_hp_MdiWindow +{ +public: + QWidget *centralwidget; + QVBoxLayout *verticalLayout; + QTextEdit *textEdit; + + void setupUi(QMainWindow *hp_MdiWindow) + { + if (hp_MdiWindow->objectName().isEmpty()) + hp_MdiWindow->setObjectName(QString::fromUtf8("hp_MdiWindow")); + hp_MdiWindow->setEnabled(true); + hp_MdiWindow->resize(575, 320); + hp_MdiWindow->setMinimumSize(QSize(400, 200)); + centralwidget = new QWidget(hp_MdiWindow); + centralwidget->setObjectName(QString::fromUtf8("centralwidget")); + verticalLayout = new QVBoxLayout(centralwidget); + verticalLayout->setObjectName(QString::fromUtf8("verticalLayout")); + textEdit = new QTextEdit(centralwidget); + textEdit->setObjectName(QString::fromUtf8("textEdit")); + + verticalLayout->addWidget(textEdit); + + hp_MdiWindow->setCentralWidget(centralwidget); + + retranslateUi(hp_MdiWindow); + + QMetaObject::connectSlotsByName(hp_MdiWindow); + } // setupUi + + void retranslateUi(QMainWindow *hp_MdiWindow) + { + hp_MdiWindow->setWindowTitle(QApplication::translate("hp_MdiWindow", "LogWindow", nullptr)); + } // retranslateUi + +}; + +namespace Ui { + class hp_MdiWindow: public Ui_hp_MdiWindow {}; +} // namespace Ui + +QT_END_NAMESPACE + +#endif // UI_HP_MDIWINDOW_H diff --git a/include/ui_hp_settingsdlg.h b/include/ui_hp_settingsdlg.h new file mode 100644 index 0000000..fd28f1d --- /dev/null +++ b/include/ui_hp_settingsdlg.h @@ -0,0 +1,339 @@ +/******************************************************************************** +** Form generated from reading UI file 'hp_settingsdlg.ui' +** +** Created by: Qt User Interface Compiler version 5.12.4 +** +** WARNING! All changes made in this file will be lost when recompiling UI file! +********************************************************************************/ + +#ifndef UI_HP_SETTINGSDLG_H +#define UI_HP_SETTINGSDLG_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + +class Ui_hp_SettingsDlg +{ +public: + QVBoxLayout *verticalLayout; + QTabWidget *tabWidget; + QWidget *hpSettings; + QLabel *label; + QComboBox *cb_angle; + QCheckBox *ch_signed; + QComboBox *cb_format; + QComboBox *cb_grouping; + QLabel *label_2; + QLabel *label_3; + QComboBox *cb_entry; + QLabel *label_4; + QComboBox *cb_integers; + QLabel *label_5; + QLabel *label_6; + QComboBox *cb_complex; + QComboBox *cb_language; + QLabel *label_7; + QLabel *label_8; + QComboBox *cb_font; + QCheckBox *ch_textbook; + QCheckBox *ch_menu; + QComboBox *cb_theme; + QLabel *label_17; + QComboBox *cb_precision; + QLineEdit *le_integer; + QDialogButtonBox *buttonBox; + + void setupUi(QDialog *hp_SettingsDlg) + { + if (hp_SettingsDlg->objectName().isEmpty()) + hp_SettingsDlg->setObjectName(QString::fromUtf8("hp_SettingsDlg")); + hp_SettingsDlg->setEnabled(true); + hp_SettingsDlg->resize(415, 455); + hp_SettingsDlg->setFocusPolicy(Qt::StrongFocus); + verticalLayout = new QVBoxLayout(hp_SettingsDlg); + verticalLayout->setObjectName(QString::fromUtf8("verticalLayout")); + tabWidget = new QTabWidget(hp_SettingsDlg); + tabWidget->setObjectName(QString::fromUtf8("tabWidget")); + hpSettings = new QWidget(); + hpSettings->setObjectName(QString::fromUtf8("hpSettings")); + label = new QLabel(hpSettings); + label->setObjectName(QString::fromUtf8("label")); + label->setGeometry(QRect(17, 20, 101, 30)); + label->setLayoutDirection(Qt::RightToLeft); + label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); + cb_angle = new QComboBox(hpSettings); + cb_angle->addItem(QString()); + cb_angle->addItem(QString()); + cb_angle->addItem(QString()); + cb_angle->setObjectName(QString::fromUtf8("cb_angle")); + cb_angle->setGeometry(QRect(130, 20, 131, 32)); + ch_signed = new QCheckBox(hpSettings); + ch_signed->setObjectName(QString::fromUtf8("ch_signed")); + ch_signed->setGeometry(QRect(310, 150, 41, 22)); + ch_signed->setLayoutDirection(Qt::RightToLeft); + cb_format = new QComboBox(hpSettings); + cb_format->addItem(QString()); + cb_format->addItem(QString()); + cb_format->addItem(QString()); + cb_format->addItem(QString()); + cb_format->addItem(QString()); + cb_format->addItem(QString()); + cb_format->setObjectName(QString::fromUtf8("cb_format")); + cb_format->setGeometry(QRect(130, 50, 131, 32)); + cb_grouping = new QComboBox(hpSettings); + cb_grouping->addItem(QString()); + cb_grouping->addItem(QString()); + cb_grouping->addItem(QString()); + cb_grouping->addItem(QString()); + cb_grouping->addItem(QString()); + cb_grouping->addItem(QString()); + cb_grouping->addItem(QString()); + cb_grouping->addItem(QString()); + cb_grouping->addItem(QString()); + cb_grouping->addItem(QString()); + cb_grouping->addItem(QString()); + cb_grouping->setObjectName(QString::fromUtf8("cb_grouping")); + cb_grouping->setGeometry(QRect(130, 81, 131, 32)); + label_2 = new QLabel(hpSettings); + label_2->setObjectName(QString::fromUtf8("label_2")); + label_2->setGeometry(QRect(20, 50, 101, 30)); + label_2->setLayoutDirection(Qt::RightToLeft); + label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); + label_3 = new QLabel(hpSettings); + label_3->setObjectName(QString::fromUtf8("label_3")); + label_3->setGeometry(QRect(20, 80, 101, 30)); + label_3->setLayoutDirection(Qt::RightToLeft); + label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); + cb_entry = new QComboBox(hpSettings); + cb_entry->addItem(QString()); + cb_entry->addItem(QString()); + cb_entry->addItem(QString()); + cb_entry->setObjectName(QString::fromUtf8("cb_entry")); + cb_entry->setGeometry(QRect(130, 112, 131, 32)); + label_4 = new QLabel(hpSettings); + label_4->setObjectName(QString::fromUtf8("label_4")); + label_4->setGeometry(QRect(20, 111, 101, 30)); + label_4->setLayoutDirection(Qt::RightToLeft); + label_4->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); + cb_integers = new QComboBox(hpSettings); + cb_integers->addItem(QString()); + cb_integers->addItem(QString()); + cb_integers->addItem(QString()); + cb_integers->addItem(QString()); + cb_integers->setObjectName(QString::fromUtf8("cb_integers")); + cb_integers->setGeometry(QRect(130, 144, 131, 32)); + label_5 = new QLabel(hpSettings); + label_5->setObjectName(QString::fromUtf8("label_5")); + label_5->setGeometry(QRect(20, 143, 101, 30)); + label_5->setLayoutDirection(Qt::RightToLeft); + label_5->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); + label_6 = new QLabel(hpSettings); + label_6->setObjectName(QString::fromUtf8("label_6")); + label_6->setGeometry(QRect(20, 175, 101, 30)); + label_6->setLayoutDirection(Qt::RightToLeft); + label_6->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); + cb_complex = new QComboBox(hpSettings); + cb_complex->addItem(QString()); + cb_complex->addItem(QString()); + cb_complex->setObjectName(QString::fromUtf8("cb_complex")); + cb_complex->setGeometry(QRect(130, 176, 131, 32)); + cb_language = new QComboBox(hpSettings); + cb_language->addItem(QString()); + cb_language->addItem(QString()); + cb_language->addItem(QString()); + cb_language->addItem(QString()); + cb_language->addItem(QString()); + cb_language->addItem(QString()); + cb_language->addItem(QString()); + cb_language->addItem(QString()); + cb_language->setObjectName(QString::fromUtf8("cb_language")); + cb_language->setGeometry(QRect(130, 208, 131, 32)); + label_7 = new QLabel(hpSettings); + label_7->setObjectName(QString::fromUtf8("label_7")); + label_7->setGeometry(QRect(20, 207, 101, 30)); + label_7->setLayoutDirection(Qt::RightToLeft); + label_7->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); + label_8 = new QLabel(hpSettings); + label_8->setObjectName(QString::fromUtf8("label_8")); + label_8->setGeometry(QRect(20, 239, 101, 30)); + label_8->setLayoutDirection(Qt::RightToLeft); + label_8->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); + cb_font = new QComboBox(hpSettings); + cb_font->addItem(QString()); + cb_font->addItem(QString()); + cb_font->addItem(QString()); + cb_font->setObjectName(QString::fromUtf8("cb_font")); + cb_font->setGeometry(QRect(130, 240, 131, 32)); + ch_textbook = new QCheckBox(hpSettings); + ch_textbook->setObjectName(QString::fromUtf8("ch_textbook")); + ch_textbook->setGeometry(QRect(8, 277, 141, 22)); + ch_textbook->setLayoutDirection(Qt::RightToLeft); + ch_menu = new QCheckBox(hpSettings); + ch_menu->setObjectName(QString::fromUtf8("ch_menu")); + ch_menu->setGeometry(QRect(151, 277, 141, 22)); + ch_menu->setLayoutDirection(Qt::RightToLeft); + cb_theme = new QComboBox(hpSettings); + cb_theme->addItem(QString()); + cb_theme->addItem(QString()); + cb_theme->setObjectName(QString::fromUtf8("cb_theme")); + cb_theme->setGeometry(QRect(130, 311, 131, 32)); + label_17 = new QLabel(hpSettings); + label_17->setObjectName(QString::fromUtf8("label_17")); + label_17->setGeometry(QRect(20, 310, 101, 30)); + label_17->setLayoutDirection(Qt::RightToLeft); + label_17->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); + cb_precision = new QComboBox(hpSettings); + cb_precision->addItem(QString()); + cb_precision->addItem(QString()); + cb_precision->addItem(QString()); + cb_precision->addItem(QString()); + cb_precision->addItem(QString()); + cb_precision->addItem(QString()); + cb_precision->addItem(QString()); + cb_precision->addItem(QString()); + cb_precision->addItem(QString()); + cb_precision->addItem(QString()); + cb_precision->addItem(QString()); + cb_precision->addItem(QString()); + cb_precision->setObjectName(QString::fromUtf8("cb_precision")); + cb_precision->setGeometry(QRect(270, 50, 51, 32)); + le_integer = new QLineEdit(hpSettings); + le_integer->setObjectName(QString::fromUtf8("le_integer")); + le_integer->setGeometry(QRect(266, 144, 41, 32)); + le_integer->setInputMethodHints(Qt::ImhDigitsOnly); + tabWidget->addTab(hpSettings, QString()); + + verticalLayout->addWidget(tabWidget); + + buttonBox = new QDialogButtonBox(hp_SettingsDlg); + buttonBox->setObjectName(QString::fromUtf8("buttonBox")); + buttonBox->setOrientation(Qt::Horizontal); + buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok|QDialogButtonBox::Reset); + + verticalLayout->addWidget(buttonBox); + + + retranslateUi(hp_SettingsDlg); + QObject::connect(buttonBox, SIGNAL(accepted()), hp_SettingsDlg, SLOT(accept())); + QObject::connect(buttonBox, SIGNAL(rejected()), hp_SettingsDlg, SLOT(reject())); + + tabWidget->setCurrentIndex(0); + cb_angle->setCurrentIndex(0); + + + QMetaObject::connectSlotsByName(hp_SettingsDlg); + } // setupUi + + void retranslateUi(QDialog *hp_SettingsDlg) + { + hp_SettingsDlg->setWindowTitle(QApplication::translate("hp_SettingsDlg", "Settings", nullptr)); + label->setText(QApplication::translate("hp_SettingsDlg", "Angle Measure:", nullptr)); + cb_angle->setItemText(0, QApplication::translate("hp_SettingsDlg", "Radians", nullptr)); + cb_angle->setItemText(1, QApplication::translate("hp_SettingsDlg", "Degrees", nullptr)); + cb_angle->setItemText(2, QApplication::translate("hp_SettingsDlg", "Gradians", nullptr)); + + cb_angle->setCurrentText(QApplication::translate("hp_SettingsDlg", "Radians", nullptr)); + ch_signed->setText(QApplication::translate("hp_SettingsDlg", "\302\261:", nullptr)); + cb_format->setItemText(0, QApplication::translate("hp_SettingsDlg", "Standard", nullptr)); + cb_format->setItemText(1, QApplication::translate("hp_SettingsDlg", "Fixed", nullptr)); + cb_format->setItemText(2, QApplication::translate("hp_SettingsDlg", "Scientific", nullptr)); + cb_format->setItemText(3, QApplication::translate("hp_SettingsDlg", "Engineering", nullptr)); + cb_format->setItemText(4, QApplication::translate("hp_SettingsDlg", "Floating", nullptr)); + cb_format->setItemText(5, QApplication::translate("hp_SettingsDlg", "Rounded", nullptr)); + + cb_format->setCurrentText(QApplication::translate("hp_SettingsDlg", "Standard", nullptr)); + cb_grouping->setItemText(0, QApplication::translate("hp_SettingsDlg", "123,456.789", nullptr)); + cb_grouping->setItemText(1, QApplication::translate("hp_SettingsDlg", "123'456.789", nullptr)); + cb_grouping->setItemText(2, QApplication::translate("hp_SettingsDlg", "123 456.789", nullptr)); + cb_grouping->setItemText(3, QApplication::translate("hp_SettingsDlg", "123456.789", nullptr)); + cb_grouping->setItemText(4, QApplication::translate("hp_SettingsDlg", "123.456,789", nullptr)); + cb_grouping->setItemText(5, QApplication::translate("hp_SettingsDlg", "123'456,789", nullptr)); + cb_grouping->setItemText(6, QApplication::translate("hp_SettingsDlg", "123 456,789", nullptr)); + cb_grouping->setItemText(7, QApplication::translate("hp_SettingsDlg", "123\"456.789", nullptr)); + cb_grouping->setItemText(8, QApplication::translate("hp_SettingsDlg", "123456,789", nullptr)); + cb_grouping->setItemText(9, QApplication::translate("hp_SettingsDlg", "1234,5678.901", nullptr)); + cb_grouping->setItemText(10, QApplication::translate("hp_SettingsDlg", "1,23,456.789", nullptr)); + + cb_grouping->setCurrentText(QApplication::translate("hp_SettingsDlg", "123,456.789", nullptr)); + label_2->setText(QApplication::translate("hp_SettingsDlg", "Number Format:", nullptr)); + label_3->setText(QApplication::translate("hp_SettingsDlg", "Digit Grouping:", nullptr)); + cb_entry->setItemText(0, QApplication::translate("hp_SettingsDlg", "Textbook", nullptr)); + cb_entry->setItemText(1, QApplication::translate("hp_SettingsDlg", "Algebraic", nullptr)); + cb_entry->setItemText(2, QApplication::translate("hp_SettingsDlg", "RPN", nullptr)); + + cb_entry->setCurrentText(QApplication::translate("hp_SettingsDlg", "Textbook", nullptr)); + label_4->setText(QApplication::translate("hp_SettingsDlg", "Entry:", nullptr)); + cb_integers->setItemText(0, QApplication::translate("hp_SettingsDlg", "Binary", nullptr)); + cb_integers->setItemText(1, QApplication::translate("hp_SettingsDlg", "Octal", nullptr)); + cb_integers->setItemText(2, QApplication::translate("hp_SettingsDlg", "Decimal", nullptr)); + cb_integers->setItemText(3, QApplication::translate("hp_SettingsDlg", "Hex", nullptr)); + + cb_integers->setCurrentText(QApplication::translate("hp_SettingsDlg", "Binary", nullptr)); + label_5->setText(QApplication::translate("hp_SettingsDlg", "Integers:", nullptr)); + label_6->setText(QApplication::translate("hp_SettingsDlg", "Complex:", nullptr)); + cb_complex->setItemText(0, QApplication::translate("hp_SettingsDlg", "a+b*i", nullptr)); + cb_complex->setItemText(1, QApplication::translate("hp_SettingsDlg", "(a,b)", nullptr)); + + cb_complex->setCurrentText(QApplication::translate("hp_SettingsDlg", "a+b*i", nullptr)); + cb_language->setItemText(0, QApplication::translate("hp_SettingsDlg", "Deutsch", nullptr)); + cb_language->setItemText(1, QApplication::translate("hp_SettingsDlg", "English", nullptr)); + cb_language->setItemText(2, QApplication::translate("hp_SettingsDlg", "Espanol", nullptr)); + cb_language->setItemText(3, QApplication::translate("hp_SettingsDlg", "Francais", nullptr)); + cb_language->setItemText(4, QApplication::translate("hp_SettingsDlg", "Nederlands", nullptr)); + cb_language->setItemText(5, QApplication::translate("hp_SettingsDlg", "Portugues", nullptr)); + cb_language->setItemText(6, QApplication::translate("hp_SettingsDlg", "New Item", nullptr)); + cb_language->setItemText(7, QApplication::translate("hp_SettingsDlg", "New Item", nullptr)); + + cb_language->setCurrentText(QApplication::translate("hp_SettingsDlg", "Deutsch", nullptr)); + label_7->setText(QApplication::translate("hp_SettingsDlg", "Language:", nullptr)); + label_8->setText(QApplication::translate("hp_SettingsDlg", "Font Size:", nullptr)); + cb_font->setItemText(0, QApplication::translate("hp_SettingsDlg", "Small Font", nullptr)); + cb_font->setItemText(1, QApplication::translate("hp_SettingsDlg", "Medium Font", nullptr)); + cb_font->setItemText(2, QApplication::translate("hp_SettingsDlg", "Large Font", nullptr)); + + cb_font->setCurrentText(QApplication::translate("hp_SettingsDlg", "Small Font", nullptr)); + ch_textbook->setText(QApplication::translate("hp_SettingsDlg", "Textbook Display:", nullptr)); + ch_menu->setText(QApplication::translate("hp_SettingsDlg", "Menu Display:", nullptr)); + cb_theme->setItemText(0, QApplication::translate("hp_SettingsDlg", "Light", nullptr)); + cb_theme->setItemText(1, QApplication::translate("hp_SettingsDlg", "Dark", nullptr)); + + cb_theme->setCurrentText(QApplication::translate("hp_SettingsDlg", "Light", nullptr)); + label_17->setText(QApplication::translate("hp_SettingsDlg", "Color Theme:", nullptr)); + cb_precision->setItemText(0, QApplication::translate("hp_SettingsDlg", "0", nullptr)); + cb_precision->setItemText(1, QApplication::translate("hp_SettingsDlg", "1", nullptr)); + cb_precision->setItemText(2, QApplication::translate("hp_SettingsDlg", "2", nullptr)); + cb_precision->setItemText(3, QApplication::translate("hp_SettingsDlg", "3", nullptr)); + cb_precision->setItemText(4, QApplication::translate("hp_SettingsDlg", "4", nullptr)); + cb_precision->setItemText(5, QApplication::translate("hp_SettingsDlg", "5", nullptr)); + cb_precision->setItemText(6, QApplication::translate("hp_SettingsDlg", "6", nullptr)); + cb_precision->setItemText(7, QApplication::translate("hp_SettingsDlg", "7", nullptr)); + cb_precision->setItemText(8, QApplication::translate("hp_SettingsDlg", "8", nullptr)); + cb_precision->setItemText(9, QApplication::translate("hp_SettingsDlg", "9", nullptr)); + cb_precision->setItemText(10, QApplication::translate("hp_SettingsDlg", "10", nullptr)); + cb_precision->setItemText(11, QApplication::translate("hp_SettingsDlg", "11", nullptr)); + + cb_precision->setCurrentText(QApplication::translate("hp_SettingsDlg", "0", nullptr)); + le_integer->setText(QApplication::translate("hp_SettingsDlg", "32", nullptr)); + tabWidget->setTabText(tabWidget->indexOf(hpSettings), QApplication::translate("hp_SettingsDlg", "Home Settings", nullptr)); + } // retranslateUi + +}; + +namespace Ui { + class hp_SettingsDlg: public Ui_hp_SettingsDlg {}; +} // namespace Ui + +QT_END_NAMESPACE + +#endif // UI_HP_SETTINGSDLG_H diff --git a/include/ui_mainwindow.h b/include/ui_mainwindow.h new file mode 100644 index 0000000..afe6f92 --- /dev/null +++ b/include/ui_mainwindow.h @@ -0,0 +1,574 @@ +/******************************************************************************** +** Form generated from reading UI file 'mainwindow.ui' +** +** Created by: Qt User Interface Compiler version 5.12.4 +** +** WARNING! All changes made in this file will be lost when recompiling UI file! +********************************************************************************/ + +#ifndef UI_MAINWINDOW_H +#define UI_MAINWINDOW_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + +class Ui_MainWindow +{ +public: + QAction *actionCut; + QAction *actionCopy; + QAction *actionPaste; + QAction *actionClose; + QAction *actionClose_all; + QAction *actionTile; + QAction *actionCascade; + QAction *actionNext; + QAction *actionMessages; + QAction *actionMonitor; + QAction *actionCalculators; + QAction *actionAbout_HP_Connect; + QAction *actionPreferences; + QAction *actionPrevious; + QAction *actionContent; + QAction *actionSave; + QAction *actionSave_All; + QAction *actionCreateNew; + QAction *actionExit; + QAction *actionOpen; + QAction *actionLog; + QAction *actionTest; + QAction *actionTreePreference; + QAction *actionTestSettings; + QAction *actionTestScreen; + QAction *actionRefresh; + QAction *actionSettings; + QAction *actionFileOpen; + QAction *actionFileDelete; + QAction *actionFileRename; + QAction *actionCalcOpen; + QAction *actionCalcDelete; + QAction *actionCalcRename; + QAction *actionNewFolder; + QAction *actionNew_Note; + QAction *actionNew_Program; + QWidget *centralWidget; + QHBoxLayout *horizontalLayout; + QMdiArea *mdiArea; + QMenuBar *menuBar; + QMenu *menuFile; + QMenu *menuEdit; + QMenu *menuWindow; + QMenu *menuHelp; + QDockWidget *dwCalculator; + QWidget *wCalculator; + QVBoxLayout *verticalLayout_3; + QTreeView *tvCalculators; + QToolBar *toolBar; + QDockWidget *dwContent; + QWidget *wContent; + QVBoxLayout *verticalLayout_2; + QTreeView *tvContent; + QDockWidget *dwMessenger; + QWidget *wMessage; + QVBoxLayout *verticalLayout; + QTextEdit *teMessage; + QDockWidget *dwMonitor; + QWidget *wMonitor; + QVBoxLayout *verticalLayout_4; + QGridLayout *wMonitorGrid; + QStatusBar *statusBar; + + void setupUi(QMainWindow *MainWindow) + { + if (MainWindow->objectName().isEmpty()) + MainWindow->setObjectName(QString::fromUtf8("MainWindow")); + MainWindow->resize(919, 584); + actionCut = new QAction(MainWindow); + actionCut->setObjectName(QString::fromUtf8("actionCut")); + QIcon icon; + QString iconThemeName = QString::fromUtf8("cut"); + if (QIcon::hasThemeIcon(iconThemeName)) { + icon = QIcon::fromTheme(iconThemeName); + } else { + icon.addFile(QString::fromUtf8(":/icons/cut_32x32.png"), QSize(), QIcon::Normal, QIcon::Off); + } + actionCut->setIcon(icon); + QFont font; + actionCut->setFont(font); + actionCopy = new QAction(MainWindow); + actionCopy->setObjectName(QString::fromUtf8("actionCopy")); + QIcon icon1; + iconThemeName = QString::fromUtf8("action_copy"); + if (QIcon::hasThemeIcon(iconThemeName)) { + icon1 = QIcon::fromTheme(iconThemeName); + } else { + icon1.addFile(QString::fromUtf8(":/icons/copy_32x32.png"), QSize(), QIcon::Normal, QIcon::Off); + } + actionCopy->setIcon(icon1); + actionCopy->setFont(font); + actionPaste = new QAction(MainWindow); + actionPaste->setObjectName(QString::fromUtf8("actionPaste")); + QIcon icon2; + icon2.addFile(QString::fromUtf8(":/icons/paste_32x32.png"), QSize(), QIcon::Normal, QIcon::Off); + actionPaste->setIcon(icon2); + actionClose = new QAction(MainWindow); + actionClose->setObjectName(QString::fromUtf8("actionClose")); + actionClose_all = new QAction(MainWindow); + actionClose_all->setObjectName(QString::fromUtf8("actionClose_all")); + actionTile = new QAction(MainWindow); + actionTile->setObjectName(QString::fromUtf8("actionTile")); + actionCascade = new QAction(MainWindow); + actionCascade->setObjectName(QString::fromUtf8("actionCascade")); + actionNext = new QAction(MainWindow); + actionNext->setObjectName(QString::fromUtf8("actionNext")); + actionMessages = new QAction(MainWindow); + actionMessages->setObjectName(QString::fromUtf8("actionMessages")); + QIcon icon3; + icon3.addFile(QString::fromUtf8(":/icons/chat_32x32.png"), QSize(), QIcon::Normal, QIcon::Off); + actionMessages->setIcon(icon3); + actionMonitor = new QAction(MainWindow); + actionMonitor->setObjectName(QString::fromUtf8("actionMonitor")); + QIcon icon4; + icon4.addFile(QString::fromUtf8(":/icons/monitor_32x32.png"), QSize(), QIcon::Normal, QIcon::Off); + actionMonitor->setIcon(icon4); + actionCalculators = new QAction(MainWindow); + actionCalculators->setObjectName(QString::fromUtf8("actionCalculators")); + QIcon icon5; + icon5.addFile(QString::fromUtf8(":/icons/calc_tree_32x32.png"), QSize(), QIcon::Normal, QIcon::Off); + actionCalculators->setIcon(icon5); + actionAbout_HP_Connect = new QAction(MainWindow); + actionAbout_HP_Connect->setObjectName(QString::fromUtf8("actionAbout_HP_Connect")); + QIcon icon6; + iconThemeName = QString::fromUtf8("about"); + if (QIcon::hasThemeIcon(iconThemeName)) { + icon6 = QIcon::fromTheme(iconThemeName); + } else { + icon6.addFile(QString::fromUtf8(":/icons/about_32x32.png"), QSize(), QIcon::Normal, QIcon::Off); + } + actionAbout_HP_Connect->setIcon(icon6); + actionAbout_HP_Connect->setFont(font); + actionPreferences = new QAction(MainWindow); + actionPreferences->setObjectName(QString::fromUtf8("actionPreferences")); + QIcon icon7; + icon7.addFile(QString::fromUtf8(":/icons/preferences_32x32.png"), QSize(), QIcon::Normal, QIcon::Off); + actionPreferences->setIcon(icon7); + actionPreferences->setFont(font); + actionPrevious = new QAction(MainWindow); + actionPrevious->setObjectName(QString::fromUtf8("actionPrevious")); + actionContent = new QAction(MainWindow); + actionContent->setObjectName(QString::fromUtf8("actionContent")); + QIcon icon8; + icon8.addFile(QString::fromUtf8(":/icons/content_32x32.png"), QSize(), QIcon::Normal, QIcon::Off); + actionContent->setIcon(icon8); + actionSave = new QAction(MainWindow); + actionSave->setObjectName(QString::fromUtf8("actionSave")); + QIcon icon9; + icon9.addFile(QString::fromUtf8(":/icons/save_32x32.png"), QSize(), QIcon::Normal, QIcon::Off); + actionSave->setIcon(icon9); + actionSave_All = new QAction(MainWindow); + actionSave_All->setObjectName(QString::fromUtf8("actionSave_All")); + QIcon icon10; + icon10.addFile(QString::fromUtf8(":/icons/save_all_32x32.png"), QSize(), QIcon::Normal, QIcon::Off); + actionSave_All->setIcon(icon10); + actionCreateNew = new QAction(MainWindow); + actionCreateNew->setObjectName(QString::fromUtf8("actionCreateNew")); + QIcon icon11; + icon11.addFile(QString::fromUtf8(":/icons/add_new_32x32.png"), QSize(), QIcon::Normal, QIcon::Off); + actionCreateNew->setIcon(icon11); + actionExit = new QAction(MainWindow); + actionExit->setObjectName(QString::fromUtf8("actionExit")); + QIcon icon12; + icon12.addFile(QString::fromUtf8(":/icons/delete_32x32.png"), QSize(), QIcon::Normal, QIcon::Off); + actionExit->setIcon(icon12); + actionOpen = new QAction(MainWindow); + actionOpen->setObjectName(QString::fromUtf8("actionOpen")); + QIcon icon13; + icon13.addFile(QString::fromUtf8(":/icons/add_icon_32x32.png"), QSize(), QIcon::Normal, QIcon::Off); + actionOpen->setIcon(icon13); + actionLog = new QAction(MainWindow); + actionLog->setObjectName(QString::fromUtf8("actionLog")); + QIcon icon14; + icon14.addFile(QString::fromUtf8(":/icons/note_32x32.png"), QSize(), QIcon::Normal, QIcon::Off); + actionLog->setIcon(icon14); + actionTest = new QAction(MainWindow); + actionTest->setObjectName(QString::fromUtf8("actionTest")); + QIcon icon15; + icon15.addFile(QString::fromUtf8(":/icons/clone_to_32x32.png"), QSize(), QIcon::Normal, QIcon::Off); + actionTest->setIcon(icon15); + actionTreePreference = new QAction(MainWindow); + actionTreePreference->setObjectName(QString::fromUtf8("actionTreePreference")); + actionTreePreference->setIcon(icon7); + actionTestSettings = new QAction(MainWindow); + actionTestSettings->setObjectName(QString::fromUtf8("actionTestSettings")); + actionTestSettings->setIcon(icon7); + actionTestScreen = new QAction(MainWindow); + actionTestScreen->setObjectName(QString::fromUtf8("actionTestScreen")); + QIcon icon16; + icon16.addFile(QString::fromUtf8(":/icons/add_background_32x32.png"), QSize(), QIcon::Normal, QIcon::Off); + actionTestScreen->setIcon(icon16); + actionRefresh = new QAction(MainWindow); + actionRefresh->setObjectName(QString::fromUtf8("actionRefresh")); + QIcon icon17; + icon17.addFile(QString::fromUtf8(":/icons/refresh_32x32.png"), QSize(), QIcon::Normal, QIcon::Off); + actionRefresh->setIcon(icon17); + actionSettings = new QAction(MainWindow); + actionSettings->setObjectName(QString::fromUtf8("actionSettings")); + actionSettings->setIcon(icon7); + actionFileOpen = new QAction(MainWindow); + actionFileOpen->setObjectName(QString::fromUtf8("actionFileOpen")); + QIcon icon18; + icon18.addFile(QString::fromUtf8(":/icons/open_16x16.png"), QSize(), QIcon::Normal, QIcon::On); + actionFileOpen->setIcon(icon18); + actionFileDelete = new QAction(MainWindow); + actionFileDelete->setObjectName(QString::fromUtf8("actionFileDelete")); + QIcon icon19; + icon19.addFile(QString::fromUtf8(":/icons/delete_16x16.png"), QSize(), QIcon::Normal, QIcon::On); + actionFileDelete->setIcon(icon19); + actionFileRename = new QAction(MainWindow); + actionFileRename->setObjectName(QString::fromUtf8("actionFileRename")); + QIcon icon20; + icon20.addFile(QString::fromUtf8(":/icons/rename_16x16.png"), QSize(), QIcon::Normal, QIcon::On); + actionFileRename->setIcon(icon20); + actionCalcOpen = new QAction(MainWindow); + actionCalcOpen->setObjectName(QString::fromUtf8("actionCalcOpen")); + actionCalcOpen->setIcon(icon18); + actionCalcDelete = new QAction(MainWindow); + actionCalcDelete->setObjectName(QString::fromUtf8("actionCalcDelete")); + actionCalcDelete->setIcon(icon19); + actionCalcRename = new QAction(MainWindow); + actionCalcRename->setObjectName(QString::fromUtf8("actionCalcRename")); + actionCalcRename->setIcon(icon20); + actionNewFolder = new QAction(MainWindow); + actionNewFolder->setObjectName(QString::fromUtf8("actionNewFolder")); + QIcon icon21; + icon21.addFile(QString::fromUtf8(":/icons/new_folder_16x16.png"), QSize(), QIcon::Normal, QIcon::Off); + actionNewFolder->setIcon(icon21); + actionNew_Note = new QAction(MainWindow); + actionNew_Note->setObjectName(QString::fromUtf8("actionNew_Note")); + actionNew_Program = new QAction(MainWindow); + actionNew_Program->setObjectName(QString::fromUtf8("actionNew_Program")); + centralWidget = new QWidget(MainWindow); + centralWidget->setObjectName(QString::fromUtf8("centralWidget")); + horizontalLayout = new QHBoxLayout(centralWidget); + horizontalLayout->setSpacing(6); + horizontalLayout->setContentsMargins(11, 11, 11, 11); + horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout")); + mdiArea = new QMdiArea(centralWidget); + mdiArea->setObjectName(QString::fromUtf8("mdiArea")); + QSizePolicy sizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Expanding); + sizePolicy.setHorizontalStretch(0); + sizePolicy.setVerticalStretch(0); + sizePolicy.setHeightForWidth(mdiArea->sizePolicy().hasHeightForWidth()); + mdiArea->setSizePolicy(sizePolicy); + mdiArea->setMinimumSize(QSize(500, 0)); + mdiArea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded); + mdiArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded); + + horizontalLayout->addWidget(mdiArea); + + MainWindow->setCentralWidget(centralWidget); + menuBar = new QMenuBar(MainWindow); + menuBar->setObjectName(QString::fromUtf8("menuBar")); + menuBar->setGeometry(QRect(0, 0, 919, 23)); + QFont font1; + font1.setPointSize(10); + menuBar->setFont(font1); + menuFile = new QMenu(menuBar); + menuFile->setObjectName(QString::fromUtf8("menuFile")); + menuEdit = new QMenu(menuBar); + menuEdit->setObjectName(QString::fromUtf8("menuEdit")); + menuWindow = new QMenu(menuBar); + menuWindow->setObjectName(QString::fromUtf8("menuWindow")); + menuHelp = new QMenu(menuBar); + menuHelp->setObjectName(QString::fromUtf8("menuHelp")); + MainWindow->setMenuBar(menuBar); + dwCalculator = new QDockWidget(MainWindow); + dwCalculator->setObjectName(QString::fromUtf8("dwCalculator")); + QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Expanding); + sizePolicy1.setHorizontalStretch(0); + sizePolicy1.setVerticalStretch(0); + sizePolicy1.setHeightForWidth(dwCalculator->sizePolicy().hasHeightForWidth()); + dwCalculator->setSizePolicy(sizePolicy1); + dwCalculator->setMinimumSize(QSize(200, 184)); + dwCalculator->setMaximumSize(QSize(524287, 524287)); + dwCalculator->setBaseSize(QSize(300, 200)); + wCalculator = new QWidget(); + wCalculator->setObjectName(QString::fromUtf8("wCalculator")); + sizePolicy1.setHeightForWidth(wCalculator->sizePolicy().hasHeightForWidth()); + wCalculator->setSizePolicy(sizePolicy1); + wCalculator->setMinimumSize(QSize(100, 150)); + verticalLayout_3 = new QVBoxLayout(wCalculator); + verticalLayout_3->setSpacing(6); + verticalLayout_3->setContentsMargins(11, 11, 11, 11); + verticalLayout_3->setObjectName(QString::fromUtf8("verticalLayout_3")); + tvCalculators = new QTreeView(wCalculator); + tvCalculators->setObjectName(QString::fromUtf8("tvCalculators")); + tvCalculators->setEnabled(true); + sizePolicy1.setHeightForWidth(tvCalculators->sizePolicy().hasHeightForWidth()); + tvCalculators->setSizePolicy(sizePolicy1); + tvCalculators->setContextMenuPolicy(Qt::ActionsContextMenu); + tvCalculators->setLineWidth(2); + tvCalculators->setMidLineWidth(1); + tvCalculators->header()->setVisible(false); + + verticalLayout_3->addWidget(tvCalculators); + + dwCalculator->setWidget(wCalculator); + MainWindow->addDockWidget(static_cast(1), dwCalculator); + toolBar = new QToolBar(MainWindow); + toolBar->setObjectName(QString::fromUtf8("toolBar")); + MainWindow->addToolBar(Qt::TopToolBarArea, toolBar); + dwContent = new QDockWidget(MainWindow); + dwContent->setObjectName(QString::fromUtf8("dwContent")); + sizePolicy1.setHeightForWidth(dwContent->sizePolicy().hasHeightForWidth()); + dwContent->setSizePolicy(sizePolicy1); + dwContent->setMinimumSize(QSize(300, 130)); + dwContent->setMaximumSize(QSize(524287, 524287)); + wContent = new QWidget(); + wContent->setObjectName(QString::fromUtf8("wContent")); + sizePolicy1.setHeightForWidth(wContent->sizePolicy().hasHeightForWidth()); + wContent->setSizePolicy(sizePolicy1); + verticalLayout_2 = new QVBoxLayout(wContent); + verticalLayout_2->setSpacing(6); + verticalLayout_2->setContentsMargins(11, 11, 11, 11); + verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2")); + tvContent = new QTreeView(wContent); + tvContent->setObjectName(QString::fromUtf8("tvContent")); + tvContent->setSelectionBehavior(QAbstractItemView::SelectItems); + tvContent->setIndentation(15); + tvContent->header()->setCascadingSectionResizes(true); + tvContent->header()->setMinimumSectionSize(47); + tvContent->header()->setDefaultSectionSize(150); + tvContent->header()->setHighlightSections(true); + tvContent->header()->setStretchLastSection(false); + + verticalLayout_2->addWidget(tvContent); + + dwContent->setWidget(wContent); + MainWindow->addDockWidget(static_cast(1), dwContent); + dwMessenger = new QDockWidget(MainWindow); + dwMessenger->setObjectName(QString::fromUtf8("dwMessenger")); + sizePolicy1.setHeightForWidth(dwMessenger->sizePolicy().hasHeightForWidth()); + dwMessenger->setSizePolicy(sizePolicy1); + dwMessenger->setMaximumSize(QSize(150, 524287)); + wMessage = new QWidget(); + wMessage->setObjectName(QString::fromUtf8("wMessage")); + sizePolicy1.setHeightForWidth(wMessage->sizePolicy().hasHeightForWidth()); + wMessage->setSizePolicy(sizePolicy1); + verticalLayout = new QVBoxLayout(wMessage); + verticalLayout->setSpacing(6); + verticalLayout->setContentsMargins(11, 11, 11, 11); + verticalLayout->setObjectName(QString::fromUtf8("verticalLayout")); + teMessage = new QTextEdit(wMessage); + teMessage->setObjectName(QString::fromUtf8("teMessage")); + + verticalLayout->addWidget(teMessage); + + dwMessenger->setWidget(wMessage); + MainWindow->addDockWidget(static_cast(2), dwMessenger); + dwMonitor = new QDockWidget(MainWindow); + dwMonitor->setObjectName(QString::fromUtf8("dwMonitor")); + sizePolicy1.setHeightForWidth(dwMonitor->sizePolicy().hasHeightForWidth()); + dwMonitor->setSizePolicy(sizePolicy1); + wMonitor = new QWidget(); + wMonitor->setObjectName(QString::fromUtf8("wMonitor")); + sizePolicy1.setHeightForWidth(wMonitor->sizePolicy().hasHeightForWidth()); + wMonitor->setSizePolicy(sizePolicy1); + verticalLayout_4 = new QVBoxLayout(wMonitor); + verticalLayout_4->setSpacing(6); + verticalLayout_4->setContentsMargins(11, 11, 11, 11); + verticalLayout_4->setObjectName(QString::fromUtf8("verticalLayout_4")); + wMonitorGrid = new QGridLayout(); + wMonitorGrid->setSpacing(6); + wMonitorGrid->setObjectName(QString::fromUtf8("wMonitorGrid")); + + verticalLayout_4->addLayout(wMonitorGrid); + + dwMonitor->setWidget(wMonitor); + MainWindow->addDockWidget(static_cast(2), dwMonitor); + statusBar = new QStatusBar(MainWindow); + statusBar->setObjectName(QString::fromUtf8("statusBar")); + QSizePolicy sizePolicy2(QSizePolicy::Preferred, QSizePolicy::Preferred); + sizePolicy2.setHorizontalStretch(100); + sizePolicy2.setVerticalStretch(20); + sizePolicy2.setHeightForWidth(statusBar->sizePolicy().hasHeightForWidth()); + statusBar->setSizePolicy(sizePolicy2); + statusBar->setMinimumSize(QSize(100, 20)); + statusBar->setAutoFillBackground(true); + MainWindow->setStatusBar(statusBar); + + menuBar->addAction(menuFile->menuAction()); + menuBar->addAction(menuEdit->menuAction()); + menuBar->addAction(menuWindow->menuAction()); + menuBar->addAction(menuHelp->menuAction()); + menuFile->addAction(actionExit); + menuEdit->addAction(actionCut); + menuEdit->addAction(actionCopy); + menuEdit->addAction(actionPaste); + menuEdit->addSeparator(); + menuEdit->addAction(actionPreferences); + menuWindow->addAction(actionClose); + menuWindow->addAction(actionClose_all); + menuWindow->addSeparator(); + menuWindow->addAction(actionTile); + menuWindow->addAction(actionCascade); + menuWindow->addSeparator(); + menuWindow->addAction(actionNext); + menuWindow->addAction(actionPrevious); + menuWindow->addSeparator(); + menuWindow->addAction(actionMessages); + menuWindow->addAction(actionMonitor); + menuWindow->addAction(actionCalculators); + menuWindow->addAction(actionContent); + menuWindow->addAction(actionLog); + menuHelp->addAction(actionAbout_HP_Connect); + toolBar->addAction(actionCalculators); + toolBar->addAction(actionContent); + toolBar->addAction(actionSave); + toolBar->addAction(actionSave_All); + toolBar->addAction(actionCreateNew); + toolBar->addSeparator(); + toolBar->addAction(actionMonitor); + toolBar->addAction(actionMessages); + toolBar->addSeparator(); + toolBar->addAction(actionOpen); + toolBar->addSeparator(); + toolBar->addAction(actionTest); + toolBar->addAction(actionTestSettings); + toolBar->addAction(actionTestScreen); + toolBar->addAction(actionRefresh); + + retranslateUi(MainWindow); + + QMetaObject::connectSlotsByName(MainWindow); + } // setupUi + + void retranslateUi(QMainWindow *MainWindow) + { + MainWindow->setWindowTitle(QApplication::translate("MainWindow", "Linux HP Connect", nullptr)); + actionCut->setText(QApplication::translate("MainWindow", "&Cut", nullptr)); + actionCopy->setText(QApplication::translate("MainWindow", "C&opy", nullptr)); + actionPaste->setText(QApplication::translate("MainWindow", "&Paste", nullptr)); + actionClose->setText(QApplication::translate("MainWindow", "&Close", nullptr)); + actionClose_all->setText(QApplication::translate("MainWindow", "C&lose all", nullptr)); + actionTile->setText(QApplication::translate("MainWindow", "&Tile", nullptr)); + actionCascade->setText(QApplication::translate("MainWindow", "Ca&scade", nullptr)); + actionNext->setText(QApplication::translate("MainWindow", "&Next", nullptr)); + actionMessages->setText(QApplication::translate("MainWindow", "&Messages", nullptr)); + actionMonitor->setText(QApplication::translate("MainWindow", "M&onitor", nullptr)); + actionCalculators->setText(QApplication::translate("MainWindow", "Calc&ulators", nullptr)); + actionAbout_HP_Connect->setText(QApplication::translate("MainWindow", "&About HP Connect", nullptr)); + actionPreferences->setText(QApplication::translate("MainWindow", "P&references", nullptr)); + actionPrevious->setText(QApplication::translate("MainWindow", "&Previous", nullptr)); + actionContent->setText(QApplication::translate("MainWindow", "Cont&ent", nullptr)); + actionSave->setText(QApplication::translate("MainWindow", "Save", nullptr)); + actionSave_All->setText(QApplication::translate("MainWindow", "Save All", nullptr)); + actionCreateNew->setText(QApplication::translate("MainWindow", "CreateNew", nullptr)); +#ifndef QT_NO_TOOLTIP + actionCreateNew->setToolTip(QApplication::translate("MainWindow", "Create New ", nullptr)); +#endif // QT_NO_TOOLTIP + actionExit->setText(QApplication::translate("MainWindow", "&Exit", nullptr)); + actionOpen->setText(QApplication::translate("MainWindow", "Open", nullptr)); + actionLog->setText(QApplication::translate("MainWindow", "Lo&g", nullptr)); + actionTest->setText(QApplication::translate("MainWindow", "Test", nullptr)); +#ifndef QT_NO_TOOLTIP + actionTest->setToolTip(QApplication::translate("MainWindow", "Test Button", nullptr)); +#endif // QT_NO_TOOLTIP + actionTreePreference->setText(QApplication::translate("MainWindow", "TreePreference", nullptr)); + actionTestSettings->setText(QApplication::translate("MainWindow", "TestSettings", nullptr)); + actionTestScreen->setText(QApplication::translate("MainWindow", "TestScreen", nullptr)); +#ifndef QT_NO_TOOLTIP + actionTestScreen->setToolTip(QApplication::translate("MainWindow", "Test get Screen Function", nullptr)); +#endif // QT_NO_TOOLTIP + actionRefresh->setText(QApplication::translate("MainWindow", "Refresh", nullptr)); + actionSettings->setText(QApplication::translate("MainWindow", "Settings", nullptr)); + actionFileOpen->setText(QApplication::translate("MainWindow", "&Open", nullptr)); +#ifndef QT_NO_TOOLTIP + actionFileOpen->setToolTip(QApplication::translate("MainWindow", "Open a file", nullptr)); +#endif // QT_NO_TOOLTIP +#ifndef QT_NO_SHORTCUT + actionFileOpen->setShortcut(QApplication::translate("MainWindow", "Alt+O", nullptr)); +#endif // QT_NO_SHORTCUT + actionFileDelete->setText(QApplication::translate("MainWindow", "&Delete", nullptr)); +#ifndef QT_NO_TOOLTIP + actionFileDelete->setToolTip(QApplication::translate("MainWindow", "Delete a file", nullptr)); +#endif // QT_NO_TOOLTIP +#ifndef QT_NO_SHORTCUT + actionFileDelete->setShortcut(QApplication::translate("MainWindow", "Alt+D", nullptr)); +#endif // QT_NO_SHORTCUT + actionFileRename->setText(QApplication::translate("MainWindow", "&Rename", nullptr)); +#ifndef QT_NO_TOOLTIP + actionFileRename->setToolTip(QApplication::translate("MainWindow", "Rename a file", nullptr)); +#endif // QT_NO_TOOLTIP +#ifndef QT_NO_SHORTCUT + actionFileRename->setShortcut(QApplication::translate("MainWindow", "Alt+R", nullptr)); +#endif // QT_NO_SHORTCUT + actionCalcOpen->setText(QApplication::translate("MainWindow", "&Open", nullptr)); +#ifndef QT_NO_TOOLTIP + actionCalcOpen->setToolTip(QApplication::translate("MainWindow", "Open a file", nullptr)); +#endif // QT_NO_TOOLTIP +#ifndef QT_NO_SHORTCUT + actionCalcOpen->setShortcut(QApplication::translate("MainWindow", "Alt+O", nullptr)); +#endif // QT_NO_SHORTCUT + actionCalcDelete->setText(QApplication::translate("MainWindow", "&Delete", nullptr)); +#ifndef QT_NO_TOOLTIP + actionCalcDelete->setToolTip(QApplication::translate("MainWindow", "Delete a file", nullptr)); +#endif // QT_NO_TOOLTIP +#ifndef QT_NO_SHORTCUT + actionCalcDelete->setShortcut(QApplication::translate("MainWindow", "Alt+D", nullptr)); +#endif // QT_NO_SHORTCUT + actionCalcRename->setText(QApplication::translate("MainWindow", "&Rename", nullptr)); +#ifndef QT_NO_TOOLTIP + actionCalcRename->setToolTip(QApplication::translate("MainWindow", "Rename a file", nullptr)); +#endif // QT_NO_TOOLTIP +#ifndef QT_NO_SHORTCUT + actionCalcRename->setShortcut(QApplication::translate("MainWindow", "Alt+R", nullptr)); +#endif // QT_NO_SHORTCUT + actionNewFolder->setText(QApplication::translate("MainWindow", "Folder", nullptr)); +#ifndef QT_NO_TOOLTIP + actionNewFolder->setToolTip(QApplication::translate("MainWindow", "Create a New Folder", nullptr)); +#endif // QT_NO_TOOLTIP + actionNew_Note->setText(QApplication::translate("MainWindow", "New Note", nullptr)); + actionNew_Program->setText(QApplication::translate("MainWindow", "New Program", nullptr)); + menuFile->setTitle(QApplication::translate("MainWindow", "Fi&le", nullptr)); + menuEdit->setTitle(QApplication::translate("MainWindow", "Edit", nullptr)); + menuWindow->setTitle(QApplication::translate("MainWindow", "Wi&ndow", nullptr)); + menuHelp->setTitle(QApplication::translate("MainWindow", "Help", nullptr)); +#ifndef QT_NO_TOOLTIP + tvCalculators->setToolTip(QApplication::translate("MainWindow", "

Calculator View

", nullptr)); +#endif // QT_NO_TOOLTIP + toolBar->setWindowTitle(QApplication::translate("MainWindow", "toolBar", nullptr)); +#ifndef QT_NO_TOOLTIP + tvContent->setToolTip(QApplication::translate("MainWindow", "

File View

", nullptr)); +#endif // QT_NO_TOOLTIP +#ifndef QT_NO_TOOLTIP + statusBar->setToolTip(QString()); +#endif // QT_NO_TOOLTIP + } // retranslateUi + +}; + +namespace Ui { + class MainWindow: public Ui_MainWindow {}; +} // namespace Ui + +QT_END_NAMESPACE + +#endif // UI_MAINWINDOW_H diff --git a/include/ui_options.h b/include/ui_options.h new file mode 100644 index 0000000..f64c0f2 --- /dev/null +++ b/include/ui_options.h @@ -0,0 +1,93 @@ +/******************************************************************************** +** Form generated from reading UI file 'options.ui' +** +** Created by: Qt User Interface Compiler version 5.12.4 +** +** WARNING! All changes made in this file will be lost when recompiling UI file! +********************************************************************************/ + +#ifndef UI_OPTIONS_H +#define UI_OPTIONS_H + +#include +#include +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + +class Ui_Options +{ +public: + QDialogButtonBox *buttonBox; + QFrame *frame; + QLineEdit *filePath; + QLabel *label; + QLabel *label_2; + + void setupUi(QDialog *Options) + { + if (Options->objectName().isEmpty()) + Options->setObjectName(QString::fromUtf8("Options")); + Options->resize(640, 480); + buttonBox = new QDialogButtonBox(Options); + buttonBox->setObjectName(QString::fromUtf8("buttonBox")); + buttonBox->setGeometry(QRect(10, 440, 621, 32)); + buttonBox->setOrientation(Qt::Horizontal); + buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok); + frame = new QFrame(Options); + frame->setObjectName(QString::fromUtf8("frame")); + frame->setGeometry(QRect(10, 20, 621, 91)); + frame->setFrameShape(QFrame::StyledPanel); + frame->setFrameShadow(QFrame::Raised); + filePath = new QLineEdit(frame); + filePath->setObjectName(QString::fromUtf8("filePath")); + filePath->setGeometry(QRect(80, 40, 521, 32)); + label = new QLabel(frame); + label->setObjectName(QString::fromUtf8("label")); + label->setGeometry(QRect(10, 30, 58, 51)); + label_2 = new QLabel(frame); + label_2->setObjectName(QString::fromUtf8("label_2")); + label_2->setGeometry(QRect(10, 10, 141, 18)); + + retranslateUi(Options); + QObject::connect(buttonBox, SIGNAL(accepted()), Options, SLOT(accept())); + QObject::connect(buttonBox, SIGNAL(rejected()), Options, SLOT(reject())); + + QMetaObject::connectSlotsByName(Options); + } // setupUi + + void retranslateUi(QDialog *Options) + { + Options->setWindowTitle(QApplication::translate("Options", "Dialog", nullptr)); +#ifndef QT_NO_TOOLTIP + frame->setToolTip(QString()); +#endif // QT_NO_TOOLTIP +#ifndef QT_NO_STATUSTIP + frame->setStatusTip(QString()); +#endif // QT_NO_STATUSTIP +#ifndef QT_NO_WHATSTHIS + frame->setWhatsThis(QString()); +#endif // QT_NO_WHATSTHIS +#ifndef QT_NO_ACCESSIBILITY + frame->setAccessibleName(QString()); +#endif // QT_NO_ACCESSIBILITY +#ifndef QT_NO_ACCESSIBILITY + frame->setAccessibleDescription(QString()); +#endif // QT_NO_ACCESSIBILITY + label->setText(QApplication::translate("Options", "File Path:", nullptr)); + label_2->setText(QApplication::translate("Options", "Environment", nullptr)); + } // retranslateUi + +}; + +namespace Ui { + class Options: public Ui_Options {}; +} // namespace Ui + +QT_END_NAMESPACE + +#endif // UI_OPTIONS_H diff --git a/include/ui_variableview.h b/include/ui_variableview.h new file mode 100644 index 0000000..69687c4 --- /dev/null +++ b/include/ui_variableview.h @@ -0,0 +1,59 @@ +/******************************************************************************** +** Form generated from reading UI file 'variableview.ui' +** +** Created by: Qt User Interface Compiler version 5.12.4 +** +** WARNING! All changes made in this file will be lost when recompiling UI file! +********************************************************************************/ + +#ifndef UI_VARIABLEVIEW_H +#define UI_VARIABLEVIEW_H + +#include +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + +class Ui_variableView +{ +public: + QVBoxLayout *verticalLayout; + QTableView *variableList; + + void setupUi(QWidget *variableView) + { + if (variableView->objectName().isEmpty()) + variableView->setObjectName(QString::fromUtf8("variableView")); + variableView->resize(347, 358); + verticalLayout = new QVBoxLayout(variableView); + verticalLayout->setObjectName(QString::fromUtf8("verticalLayout")); + variableList = new QTableView(variableView); + variableList->setObjectName(QString::fromUtf8("variableList")); + variableList->setEnabled(true); + + verticalLayout->addWidget(variableList); + + + retranslateUi(variableView); + + QMetaObject::connectSlotsByName(variableView); + } // setupUi + + void retranslateUi(QWidget *variableView) + { + variableView->setWindowTitle(QApplication::translate("variableView", "Form", nullptr)); + } // retranslateUi + +}; + +namespace Ui { + class variableView: public Ui_variableView {}; +} // namespace Ui + +QT_END_NAMESPACE + +#endif // UI_VARIABLEVIEW_H diff --git a/variableview.h b/include/variableview.h similarity index 100% rename from variableview.h rename to include/variableview.h diff --git a/vartablemodel.h b/include/vartablemodel.h similarity index 100% rename from vartablemodel.h rename to include/vartablemodel.h diff --git a/version.h b/include/version.h similarity index 100% rename from version.h rename to include/version.h diff --git a/mainwindow.cpp b/mainwindow.cpp index 7609e18..0c8de05 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -19,7 +19,7 @@ */ -#include "mainwindow.h" +#include #include "ui_mainwindow.h" #include @@ -40,7 +40,7 @@ #include "treemodel.h" #include "variableview.h" #include "texteditor.h" -#include "hp_mdiwindow.h" +#include "hp_mdilogwindow.h" #include "hptreeitem.h" #include "hpdata.h" #include "hp_mdivariableedit.h" @@ -346,6 +346,7 @@ void MainWindow::selectionChangedSlot(const QItemSelection & /*newSelection*/, c void MainWindow::clickedCalculator(QModelIndex index) { // QStandardItem * item = hpTreeModel->itemFromIndex(index); + qDebug()<<"MainWindow::clickedCalculator"; if (hpTreeModel!=nullptr) { hpTreeModel->clickAction(getMdi(),index); @@ -374,10 +375,34 @@ void MainWindow::clickedCalculator(QModelIndex index) { } - void MainWindow::eventSave() { + hp_MdiWindow * activechild; + + activechild = activeMdiChild(); qDebug()<<"Save Pressed"; + + if (activechild!=nullptr) { + if (activechild->save()) { + qDebug()<<"Save Succesfull"; + statusBar()->showMessage(tr("File saved"), 2000); + } + else { + qDebug()<<"Save not successfull"; + statusBar()->showMessage(tr("File not saved!"), 2000); + } + } + else { + qDebug()<<"No active window"; + } +} + +hp_MdiWindow * MainWindow::activeMdiChild() { + QMdiArea * mdi=getMdi(); + + if (QMdiSubWindow *activeSubWindow = mdi->activeSubWindow()) + return qobject_cast(activeSubWindow); + return nullptr; } void MainWindow::eventSaveAs() { @@ -387,17 +412,41 @@ void MainWindow::eventSaveAs() { void MainWindow::eventCreateFolder() { - return contentModel.createNewFolder(); + QString newName= QStringLiteral("New Folder"); + bool ok; + newName = QInputDialog::getText(this, tr("Enter new folder name"), + tr("Folder name:"), QLineEdit::Normal, + newName, &ok); + + contentModel.createNewFolder(newName); + + return; } void MainWindow::eventCreateNote() { - qDebug()<<"Create new note pressed"; + QString newName= QStringLiteral("New Note"); + bool ok; + newName = QInputDialog::getText(this, tr("Enter new Note name"), + tr("Note name:"), QLineEdit::Normal, + newName, &ok); + + contentModel.createNewNote(getMdi(),newName); + + return; } void MainWindow::eventCreateProgram() { - qDebug()<<"Create new program pressed"; + QString newName= QStringLiteral("New Program"); + bool ok; + newName = QInputDialog::getText(this, tr("Enter new Program name"), + tr("Program name:"), QLineEdit::Normal, + newName, &ok); + + contentModel.createNewProgram(getMdi(),newName); + + return; } @@ -612,7 +661,7 @@ void MainWindow::createTextWindow() { void MainWindow::createLogWindow() { if (!logWindow) - logWindow = new hp_MdiWindow(ui->mdiArea); + logWindow = new hp_MdiLogWindow(ui->mdiArea); else logWindow->show(); if (!logEdit) diff --git a/mainwindow.ui b/mainwindow.ui index e96c4e7..7309c1b 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -100,14 +100,6 @@ - - - - 0 - 0 - - - @@ -322,6 +314,26 @@ + + + + 100 + 20 + + + + + 100 + 20 + + + + + + + true + +