238 lines
10 KiB
C++
238 lines
10 KiB
C++
/********************************************************************************
|
|
** Form generated from reading UI file 'preferencesdlg.ui'
|
|
**
|
|
** Created by: Qt User Interface Compiler version 5.12.2
|
|
**
|
|
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
|
********************************************************************************/
|
|
|
|
#ifndef UI_PREFERENCESDLG_H
|
|
#define UI_PREFERENCESDLG_H
|
|
|
|
#include <QtCore/QVariant>
|
|
#include <QtWidgets/QApplication>
|
|
#include <QtWidgets/QButtonGroup>
|
|
#include <QtWidgets/QCheckBox>
|
|
#include <QtWidgets/QDialog>
|
|
#include <QtWidgets/QDialogButtonBox>
|
|
#include <QtWidgets/QHBoxLayout>
|
|
#include <QtWidgets/QLabel>
|
|
#include <QtWidgets/QLineEdit>
|
|
#include <QtWidgets/QPushButton>
|
|
#include <QtWidgets/QRadioButton>
|
|
#include <QtWidgets/QSpacerItem>
|
|
#include <QtWidgets/QVBoxLayout>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class Ui_PreferencesDlg
|
|
{
|
|
public:
|
|
QVBoxLayout *verticalLayout_3;
|
|
QCheckBox *mShowSecondsCheckbox;
|
|
QCheckBox *mAutosavePasswordCheckbox;
|
|
QCheckBox *mShowTrayIconCheckbox;
|
|
QCheckBox *mDarkThemeCheckbox;
|
|
QCheckBox *mCustomDatabaseFileCheckbox;
|
|
QPushButton *mSelectDatabaseButton;
|
|
QLabel *mDatabaseLocation;
|
|
QVBoxLayout *stopTrackingRuleLayout;
|
|
QHBoxLayout *horizontalLayout;
|
|
QCheckBox *mSmartStopTracking;
|
|
QLineEdit *mSmartStopIntervalInMinutes;
|
|
QLabel *label;
|
|
QHBoxLayout *horizontalLayout_3;
|
|
QSpacerItem *horizontalSpacer_2;
|
|
QVBoxLayout *verticalLayout_2;
|
|
QRadioButton *mAskQuestionOnStopRadiobutton;
|
|
QRadioButton *mAutomaticallyOnStopRadiobutton;
|
|
QVBoxLayout *startTrackingRuleLayout;
|
|
QHBoxLayout *horizontalLayout_4;
|
|
QCheckBox *mSmartStartTracking;
|
|
QLabel *label_2;
|
|
QDialogButtonBox *buttonBox;
|
|
QButtonGroup *buttonGroup;
|
|
|
|
void setupUi(QDialog *PreferencesDlg)
|
|
{
|
|
if (PreferencesDlg->objectName().isEmpty())
|
|
PreferencesDlg->setObjectName(QString::fromUtf8("PreferencesDlg"));
|
|
PreferencesDlg->resize(444, 374);
|
|
QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
|
sizePolicy.setHorizontalStretch(0);
|
|
sizePolicy.setVerticalStretch(0);
|
|
sizePolicy.setHeightForWidth(PreferencesDlg->sizePolicy().hasHeightForWidth());
|
|
PreferencesDlg->setSizePolicy(sizePolicy);
|
|
verticalLayout_3 = new QVBoxLayout(PreferencesDlg);
|
|
verticalLayout_3->setObjectName(QString::fromUtf8("verticalLayout_3"));
|
|
mShowSecondsCheckbox = new QCheckBox(PreferencesDlg);
|
|
mShowSecondsCheckbox->setObjectName(QString::fromUtf8("mShowSecondsCheckbox"));
|
|
|
|
verticalLayout_3->addWidget(mShowSecondsCheckbox);
|
|
|
|
mAutosavePasswordCheckbox = new QCheckBox(PreferencesDlg);
|
|
mAutosavePasswordCheckbox->setObjectName(QString::fromUtf8("mAutosavePasswordCheckbox"));
|
|
|
|
verticalLayout_3->addWidget(mAutosavePasswordCheckbox);
|
|
|
|
mShowTrayIconCheckbox = new QCheckBox(PreferencesDlg);
|
|
mShowTrayIconCheckbox->setObjectName(QString::fromUtf8("mShowTrayIconCheckbox"));
|
|
|
|
verticalLayout_3->addWidget(mShowTrayIconCheckbox);
|
|
|
|
mDarkThemeCheckbox = new QCheckBox(PreferencesDlg);
|
|
mDarkThemeCheckbox->setObjectName(QString::fromUtf8("mDarkThemeCheckbox"));
|
|
|
|
verticalLayout_3->addWidget(mDarkThemeCheckbox);
|
|
|
|
mCustomDatabaseFileCheckbox = new QCheckBox(PreferencesDlg);
|
|
mCustomDatabaseFileCheckbox->setObjectName(QString::fromUtf8("mCustomDatabaseFileCheckbox"));
|
|
|
|
verticalLayout_3->addWidget(mCustomDatabaseFileCheckbox);
|
|
|
|
mSelectDatabaseButton = new QPushButton(PreferencesDlg);
|
|
mSelectDatabaseButton->setObjectName(QString::fromUtf8("mSelectDatabaseButton"));
|
|
|
|
verticalLayout_3->addWidget(mSelectDatabaseButton);
|
|
|
|
mDatabaseLocation = new QLabel(PreferencesDlg);
|
|
mDatabaseLocation->setObjectName(QString::fromUtf8("mDatabaseLocation"));
|
|
QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Fixed);
|
|
sizePolicy1.setHorizontalStretch(0);
|
|
sizePolicy1.setVerticalStretch(0);
|
|
sizePolicy1.setHeightForWidth(mDatabaseLocation->sizePolicy().hasHeightForWidth());
|
|
mDatabaseLocation->setSizePolicy(sizePolicy1);
|
|
|
|
verticalLayout_3->addWidget(mDatabaseLocation);
|
|
|
|
stopTrackingRuleLayout = new QVBoxLayout();
|
|
stopTrackingRuleLayout->setSpacing(0);
|
|
stopTrackingRuleLayout->setObjectName(QString::fromUtf8("stopTrackingRuleLayout"));
|
|
horizontalLayout = new QHBoxLayout();
|
|
horizontalLayout->setSpacing(0);
|
|
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
|
|
mSmartStopTracking = new QCheckBox(PreferencesDlg);
|
|
mSmartStopTracking->setObjectName(QString::fromUtf8("mSmartStopTracking"));
|
|
QSizePolicy sizePolicy2(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
|
sizePolicy2.setHorizontalStretch(20);
|
|
sizePolicy2.setVerticalStretch(0);
|
|
sizePolicy2.setHeightForWidth(mSmartStopTracking->sizePolicy().hasHeightForWidth());
|
|
mSmartStopTracking->setSizePolicy(sizePolicy2);
|
|
mSmartStopTracking->setMinimumSize(QSize(240, 0));
|
|
|
|
horizontalLayout->addWidget(mSmartStopTracking);
|
|
|
|
mSmartStopIntervalInMinutes = new QLineEdit(PreferencesDlg);
|
|
mSmartStopIntervalInMinutes->setObjectName(QString::fromUtf8("mSmartStopIntervalInMinutes"));
|
|
mSmartStopIntervalInMinutes->setMaximumSize(QSize(50, 16777215));
|
|
|
|
horizontalLayout->addWidget(mSmartStopIntervalInMinutes);
|
|
|
|
label = new QLabel(PreferencesDlg);
|
|
label->setObjectName(QString::fromUtf8("label"));
|
|
label->setMargin(3);
|
|
|
|
horizontalLayout->addWidget(label);
|
|
|
|
|
|
stopTrackingRuleLayout->addLayout(horizontalLayout);
|
|
|
|
horizontalLayout_3 = new QHBoxLayout();
|
|
horizontalLayout_3->setObjectName(QString::fromUtf8("horizontalLayout_3"));
|
|
horizontalSpacer_2 = new QSpacerItem(20, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
|
|
|
|
horizontalLayout_3->addItem(horizontalSpacer_2);
|
|
|
|
verticalLayout_2 = new QVBoxLayout();
|
|
verticalLayout_2->setSpacing(10);
|
|
verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
|
|
mAskQuestionOnStopRadiobutton = new QRadioButton(PreferencesDlg);
|
|
buttonGroup = new QButtonGroup(PreferencesDlg);
|
|
buttonGroup->setObjectName(QString::fromUtf8("buttonGroup"));
|
|
buttonGroup->addButton(mAskQuestionOnStopRadiobutton);
|
|
mAskQuestionOnStopRadiobutton->setObjectName(QString::fromUtf8("mAskQuestionOnStopRadiobutton"));
|
|
|
|
verticalLayout_2->addWidget(mAskQuestionOnStopRadiobutton);
|
|
|
|
mAutomaticallyOnStopRadiobutton = new QRadioButton(PreferencesDlg);
|
|
buttonGroup->addButton(mAutomaticallyOnStopRadiobutton);
|
|
mAutomaticallyOnStopRadiobutton->setObjectName(QString::fromUtf8("mAutomaticallyOnStopRadiobutton"));
|
|
|
|
verticalLayout_2->addWidget(mAutomaticallyOnStopRadiobutton);
|
|
|
|
|
|
horizontalLayout_3->addLayout(verticalLayout_2);
|
|
|
|
|
|
stopTrackingRuleLayout->addLayout(horizontalLayout_3);
|
|
|
|
|
|
verticalLayout_3->addLayout(stopTrackingRuleLayout);
|
|
|
|
startTrackingRuleLayout = new QVBoxLayout();
|
|
startTrackingRuleLayout->setSpacing(0);
|
|
startTrackingRuleLayout->setObjectName(QString::fromUtf8("startTrackingRuleLayout"));
|
|
horizontalLayout_4 = new QHBoxLayout();
|
|
horizontalLayout_4->setObjectName(QString::fromUtf8("horizontalLayout_4"));
|
|
mSmartStartTracking = new QCheckBox(PreferencesDlg);
|
|
mSmartStartTracking->setObjectName(QString::fromUtf8("mSmartStartTracking"));
|
|
|
|
horizontalLayout_4->addWidget(mSmartStartTracking);
|
|
|
|
label_2 = new QLabel(PreferencesDlg);
|
|
label_2->setObjectName(QString::fromUtf8("label_2"));
|
|
|
|
horizontalLayout_4->addWidget(label_2);
|
|
|
|
|
|
startTrackingRuleLayout->addLayout(horizontalLayout_4);
|
|
|
|
|
|
verticalLayout_3->addLayout(startTrackingRuleLayout);
|
|
|
|
buttonBox = new QDialogButtonBox(PreferencesDlg);
|
|
buttonBox->setObjectName(QString::fromUtf8("buttonBox"));
|
|
buttonBox->setOrientation(Qt::Horizontal);
|
|
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
|
|
buttonBox->setCenterButtons(true);
|
|
|
|
verticalLayout_3->addWidget(buttonBox);
|
|
|
|
|
|
retranslateUi(PreferencesDlg);
|
|
QObject::connect(buttonBox, SIGNAL(accepted()), PreferencesDlg, SLOT(accept()));
|
|
QObject::connect(buttonBox, SIGNAL(rejected()), PreferencesDlg, SLOT(reject()));
|
|
QObject::connect(buttonGroup, SIGNAL(buttonClicked(int)), PreferencesDlg, SLOT(smartStopWayChanged()));
|
|
|
|
QMetaObject::connectSlotsByName(PreferencesDlg);
|
|
} // setupUi
|
|
|
|
void retranslateUi(QDialog *PreferencesDlg)
|
|
{
|
|
PreferencesDlg->setWindowTitle(QApplication::translate("PreferencesDlg", "Dialog", nullptr));
|
|
mShowSecondsCheckbox->setText(QApplication::translate("PreferencesDlg", "Show seconds", nullptr));
|
|
mAutosavePasswordCheckbox->setText(QApplication::translate("PreferencesDlg", "Save password in keychain", nullptr));
|
|
mShowTrayIconCheckbox->setText(QApplication::translate("PreferencesDlg", "Show tray icon", nullptr));
|
|
mDarkThemeCheckbox->setText(QApplication::translate("PreferencesDlg", "Use dark theme", nullptr));
|
|
mCustomDatabaseFileCheckbox->setText(QApplication::translate("PreferencesDlg", "Use database at custom location (requires app restart)", nullptr));
|
|
mSelectDatabaseButton->setText(QApplication::translate("PreferencesDlg", "Select file...", nullptr));
|
|
mDatabaseLocation->setText(QApplication::translate("PreferencesDlg", "Location of used database", nullptr));
|
|
mSmartStopTracking->setText(QApplication::translate("PreferencesDlg", "Stop tracking if idle detected for", nullptr));
|
|
label->setText(QApplication::translate("PreferencesDlg", "minutes", nullptr));
|
|
mAskQuestionOnStopRadiobutton->setText(QApplication::translate("PreferencesDlg", "Ask question", nullptr));
|
|
mAutomaticallyOnStopRadiobutton->setText(QApplication::translate("PreferencesDlg", "Automatically", nullptr));
|
|
mSmartStartTracking->setText(QApplication::translate("PreferencesDlg", "Start tracking after stop on idle when user activity detected. \n"
|
|
"This option requires enabled automatic stop tracking on idle.", nullptr));
|
|
label_2->setText(QString());
|
|
} // retranslateUi
|
|
|
|
};
|
|
|
|
namespace Ui {
|
|
class PreferencesDlg: public Ui_PreferencesDlg {};
|
|
} // namespace Ui
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
#endif // UI_PREFERENCESDLG_H
|