qt 6.5.1 original

This commit is contained in:
kleuter
2023-10-29 23:33:08 +01:00
parent 71d22ab6b0
commit 85d238dfda
21202 changed files with 5499099 additions and 0 deletions

View File

@ -0,0 +1,71 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>Dialog</class>
<widget class="QDialog" name="Dialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle" >
<string>Dialog</string>
</property>
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="geometry" >
<rect>
<x>30</x>
<y>240</y>
<width>341</width>
<height>32</height>
</rect>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</widget>
<pixmapfunction></pixmapfunction>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>Dialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel" >
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>Dialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel" >
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel" >
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -0,0 +1,56 @@
/********************************************************************************
** Form generated from reading UI file 'Dialog_with_Buttons_Bottom.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef DIALOG_WITH_BUTTONS_BOTTOM_H
#define DIALOG_WITH_BUTTONS_BOTTOM_H
#include <QtCore/QVariant>
#include <QtWidgets/QAbstractButton>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
QT_BEGIN_NAMESPACE
class Ui_Dialog
{
public:
QDialogButtonBox *buttonBox;
void setupUi(QDialog *Dialog)
{
if (Dialog->objectName().isEmpty())
Dialog->setObjectName("Dialog");
Dialog->resize(400, 300);
buttonBox = new QDialogButtonBox(Dialog);
buttonBox->setObjectName("buttonBox");
buttonBox->setGeometry(QRect(30, 240, 341, 32));
buttonBox->setOrientation(Qt::Horizontal);
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
retranslateUi(Dialog);
QObject::connect(buttonBox, &QDialogButtonBox::accepted, Dialog, qOverload<>(&QDialog::accept));
QObject::connect(buttonBox, &QDialogButtonBox::rejected, Dialog, qOverload<>(&QDialog::reject));
QMetaObject::connectSlotsByName(Dialog);
} // setupUi
void retranslateUi(QDialog *Dialog)
{
Dialog->setWindowTitle(QCoreApplication::translate("Dialog", "Dialog", nullptr));
} // retranslateUi
};
namespace Ui {
class Dialog: public Ui_Dialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // DIALOG_WITH_BUTTONS_BOTTOM_H

View File

@ -0,0 +1,71 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>Dialog</class>
<widget class="QDialog" name="Dialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle" >
<string>Dialog</string>
</property>
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="geometry" >
<rect>
<x>290</x>
<y>20</y>
<width>81</width>
<height>241</height>
</rect>
</property>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</widget>
<pixmapfunction></pixmapfunction>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>Dialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel" >
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>Dialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel" >
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel" >
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -0,0 +1,56 @@
/********************************************************************************
** Form generated from reading UI file 'Dialog_with_Buttons_Right.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef DIALOG_WITH_BUTTONS_RIGHT_H
#define DIALOG_WITH_BUTTONS_RIGHT_H
#include <QtCore/QVariant>
#include <QtWidgets/QAbstractButton>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
QT_BEGIN_NAMESPACE
class Ui_Dialog
{
public:
QDialogButtonBox *buttonBox;
void setupUi(QDialog *Dialog)
{
if (Dialog->objectName().isEmpty())
Dialog->setObjectName("Dialog");
Dialog->resize(400, 300);
buttonBox = new QDialogButtonBox(Dialog);
buttonBox->setObjectName("buttonBox");
buttonBox->setGeometry(QRect(290, 20, 81, 241));
buttonBox->setOrientation(Qt::Vertical);
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
retranslateUi(Dialog);
QObject::connect(buttonBox, &QDialogButtonBox::accepted, Dialog, qOverload<>(&QDialog::accept));
QObject::connect(buttonBox, &QDialogButtonBox::rejected, Dialog, qOverload<>(&QDialog::reject));
QMetaObject::connectSlotsByName(Dialog);
} // setupUi
void retranslateUi(QDialog *Dialog)
{
Dialog->setWindowTitle(QCoreApplication::translate("Dialog", "Dialog", nullptr));
} // retranslateUi
};
namespace Ui {
class Dialog: public Ui_Dialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // DIALOG_WITH_BUTTONS_RIGHT_H

View File

@ -0,0 +1,18 @@
<ui version="4.0" >
<class>Dialog</class>
<widget class="QDialog" name="Dialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle" >
<string>Dialog</string>
</property>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,46 @@
/********************************************************************************
** Form generated from reading UI file 'Dialog_without_Buttons.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef DIALOG_WITHOUT_BUTTONS_H
#define DIALOG_WITHOUT_BUTTONS_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
QT_BEGIN_NAMESPACE
class Ui_Dialog
{
public:
void setupUi(QDialog *Dialog)
{
if (Dialog->objectName().isEmpty())
Dialog->setObjectName("Dialog");
Dialog->resize(400, 300);
retranslateUi(Dialog);
QMetaObject::connectSlotsByName(Dialog);
} // setupUi
void retranslateUi(QDialog *Dialog)
{
Dialog->setWindowTitle(QCoreApplication::translate("Dialog", "Dialog", nullptr));
} // retranslateUi
};
namespace Ui {
class Dialog: public Ui_Dialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // DIALOG_WITHOUT_BUTTONS_H

View File

@ -0,0 +1,27 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow" >
<property name="objectName" >
<string notr="true" >MainWindow</string>
</property>
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>600</height>
</rect>
</property>
<property name="windowTitle" >
<string>MainWindow</string>
</property>
<widget class="QMenuBar" name="menubar" />
<widget class="QWidget" name="centralwidget" />
<widget class="QStatusBar" name="statusbar" />
</widget>
<pixmapfunction></pixmapfunction>
<connections/>
</ui>

View File

@ -0,0 +1,61 @@
/********************************************************************************
** Form generated from reading UI file 'Main_Window.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef MAIN_WINDOW_H
#define MAIN_WINDOW_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QMenuBar>
#include <QtWidgets/QStatusBar>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_MainWindow
{
public:
QMenuBar *menubar;
QWidget *centralwidget;
QStatusBar *statusbar;
void setupUi(QMainWindow *MainWindow)
{
if (MainWindow->objectName().isEmpty())
MainWindow->setObjectName("MainWindow");
MainWindow->resize(800, 600);
menubar = new QMenuBar(MainWindow);
menubar->setObjectName("menubar");
MainWindow->setMenuBar(menubar);
centralwidget = new QWidget(MainWindow);
centralwidget->setObjectName("centralwidget");
MainWindow->setCentralWidget(centralwidget);
statusbar = new QStatusBar(MainWindow);
statusbar->setObjectName("statusbar");
MainWindow->setStatusBar(statusbar);
retranslateUi(MainWindow);
QMetaObject::connectSlotsByName(MainWindow);
} // setupUi
void retranslateUi(QMainWindow *MainWindow)
{
MainWindow->setWindowTitle(QCoreApplication::translate("MainWindow", "MainWindow", nullptr));
} // retranslateUi
};
namespace Ui {
class MainWindow: public Ui_MainWindow {};
} // namespace Ui
QT_END_NAMESPACE
#endif // MAIN_WINDOW_H

View File

@ -0,0 +1,44 @@
<ui version="4.0" >
<class>Form</class>
<widget class="QWidget" name="Form" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
<layout class="QVBoxLayout" >
<item>
<widget class="QLabel" name="Alabel" >
<property name="text" >
<string>A label.
One new line.
Another new line.
Last line.</string>
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox" >
<property name="title" >
<string>A Group Box</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton" >
<property name="text" >
<string>PushButton</string>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,77 @@
/********************************************************************************
** Form generated from reading UI file 'Widget.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef WIDGET_H
#define WIDGET_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QLabel>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_Form
{
public:
QVBoxLayout *vboxLayout;
QLabel *Alabel;
QGroupBox *groupBox;
QPushButton *pushButton;
void setupUi(QWidget *Form)
{
if (Form->objectName().isEmpty())
Form->setObjectName("Form");
Form->resize(400, 300);
vboxLayout = new QVBoxLayout(Form);
vboxLayout->setObjectName("vboxLayout");
Alabel = new QLabel(Form);
Alabel->setObjectName("Alabel");
vboxLayout->addWidget(Alabel);
groupBox = new QGroupBox(Form);
groupBox->setObjectName("groupBox");
vboxLayout->addWidget(groupBox);
pushButton = new QPushButton(Form);
pushButton->setObjectName("pushButton");
vboxLayout->addWidget(pushButton);
retranslateUi(Form);
QMetaObject::connectSlotsByName(Form);
} // setupUi
void retranslateUi(QWidget *Form)
{
Form->setWindowTitle(QCoreApplication::translate("Form", "Form", nullptr));
Alabel->setText(QCoreApplication::translate("Form", "A label.\n"
"One new line.\n"
"Another new line.\n"
"Last line.", nullptr));
groupBox->setTitle(QCoreApplication::translate("Form", "A Group Box", nullptr));
pushButton->setText(QCoreApplication::translate("Form", "PushButton", nullptr));
} // retranslateUi
};
namespace Ui {
class Form: public Ui_Form {};
} // namespace Ui
QT_END_NAMESPACE
#endif // WIDGET_H

View File

@ -0,0 +1,112 @@
<ui version="4.0" >
<class>AddLinkDialog</class>
<widget class="QDialog" name="AddLinkDialog" >
<property name="windowTitle" >
<string>Insert Link</string>
</property>
<property name="sizeGripEnabled" >
<bool>false</bool>
</property>
<property name="modal" >
<bool>true</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout" >
<item>
<layout class="QFormLayout" >
<item row="0" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Title:</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QLineEdit" name="titleInput" >
<property name="minimumSize" >
<size>
<width>337</width>
<height>0</height>
</size>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>URL:</string>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QLineEdit" name="urlInput" />
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer" >
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="Line" name="line" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>AddLinkDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel" >
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>AddLinkDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel" >
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel" >
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -0,0 +1,114 @@
/********************************************************************************
** Form generated from reading UI file 'addlinkdialog.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef ADDLINKDIALOG_H
#define ADDLINKDIALOG_H
#include <QtCore/QVariant>
#include <QtWidgets/QAbstractButton>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QFormLayout>
#include <QtWidgets/QFrame>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QVBoxLayout>
QT_BEGIN_NAMESPACE
class Ui_AddLinkDialog
{
public:
QVBoxLayout *verticalLayout;
QFormLayout *formLayout;
QLabel *label;
QLineEdit *titleInput;
QLabel *label_2;
QLineEdit *urlInput;
QSpacerItem *verticalSpacer;
QFrame *line;
QDialogButtonBox *buttonBox;
void setupUi(QDialog *AddLinkDialog)
{
if (AddLinkDialog->objectName().isEmpty())
AddLinkDialog->setObjectName("AddLinkDialog");
AddLinkDialog->setSizeGripEnabled(false);
AddLinkDialog->setModal(true);
verticalLayout = new QVBoxLayout(AddLinkDialog);
verticalLayout->setObjectName("verticalLayout");
formLayout = new QFormLayout();
formLayout->setObjectName("formLayout");
label = new QLabel(AddLinkDialog);
label->setObjectName("label");
formLayout->setWidget(0, QFormLayout::LabelRole, label);
titleInput = new QLineEdit(AddLinkDialog);
titleInput->setObjectName("titleInput");
titleInput->setMinimumSize(QSize(337, 0));
formLayout->setWidget(0, QFormLayout::FieldRole, titleInput);
label_2 = new QLabel(AddLinkDialog);
label_2->setObjectName("label_2");
formLayout->setWidget(1, QFormLayout::LabelRole, label_2);
urlInput = new QLineEdit(AddLinkDialog);
urlInput->setObjectName("urlInput");
formLayout->setWidget(1, QFormLayout::FieldRole, urlInput);
verticalLayout->addLayout(formLayout);
verticalSpacer = new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding);
verticalLayout->addItem(verticalSpacer);
line = new QFrame(AddLinkDialog);
line->setObjectName("line");
line->setFrameShape(QFrame::HLine);
line->setFrameShadow(QFrame::Sunken);
verticalLayout->addWidget(line);
buttonBox = new QDialogButtonBox(AddLinkDialog);
buttonBox->setObjectName("buttonBox");
buttonBox->setOrientation(Qt::Horizontal);
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
verticalLayout->addWidget(buttonBox);
retranslateUi(AddLinkDialog);
QObject::connect(buttonBox, &QDialogButtonBox::accepted, AddLinkDialog, qOverload<>(&QDialog::accept));
QObject::connect(buttonBox, &QDialogButtonBox::rejected, AddLinkDialog, qOverload<>(&QDialog::reject));
QMetaObject::connectSlotsByName(AddLinkDialog);
} // setupUi
void retranslateUi(QDialog *AddLinkDialog)
{
AddLinkDialog->setWindowTitle(QCoreApplication::translate("AddLinkDialog", "Insert Link", nullptr));
label->setText(QCoreApplication::translate("AddLinkDialog", "Title:", nullptr));
label_2->setText(QCoreApplication::translate("AddLinkDialog", "URL:", nullptr));
} // retranslateUi
};
namespace Ui {
class AddLinkDialog: public Ui_AddLinkDialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // ADDLINKDIALOG_H

View File

@ -0,0 +1,266 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>AddTorrentFile</class>
<widget class="QDialog" name="AddTorrentFile" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>464</width>
<height>385</height>
</rect>
</property>
<property name="windowTitle" >
<string>Add a torrent</string>
</property>
<property name="sizeGripEnabled" >
<bool>false</bool>
</property>
<property name="modal" >
<bool>true</bool>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>8</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QGroupBox" name="groupBox" >
<property name="title" >
<string>Select a torrent source</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>8</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="6" column="0" >
<widget class="QLabel" name="label_4" >
<property name="text" >
<string>Destination:</string>
</property>
</widget>
</item>
<item row="0" column="1" colspan="2" >
<widget class="QLineEdit" name="torrentFile" />
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>Tracker URL:</string>
</property>
</widget>
</item>
<item row="0" column="3" >
<widget class="QPushButton" name="browseTorrents" >
<property name="text" >
<string>Browse</string>
</property>
<property name="default" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="5" column="0" >
<widget class="QLabel" name="label_5" >
<property name="text" >
<string>File(s):</string>
</property>
<property name="alignment" >
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
</widget>
</item>
<item row="4" column="0" >
<widget class="QLabel" name="label_3" >
<property name="text" >
<string>Size:</string>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="label_6" >
<property name="text" >
<string>Creator:</string>
</property>
</widget>
</item>
<item row="5" column="1" colspan="3" >
<widget class="QTextEdit" name="torrentContents" >
<property name="focusPolicy" >
<enum>Qt::NoFocus</enum>
</property>
<property name="tabChangesFocus" >
<bool>true</bool>
</property>
<property name="lineWrapMode" >
<enum>QTextEdit::NoWrap</enum>
</property>
<property name="readOnly" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="6" column="1" colspan="2" >
<widget class="QLineEdit" name="destinationFolder" >
<property name="focusPolicy" >
<enum>Qt::StrongFocus</enum>
</property>
</widget>
</item>
<item row="1" column="1" colspan="3" >
<widget class="QLabel" name="announceUrl" >
<property name="text" >
<string>&lt;none></string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Torrent file:</string>
</property>
</widget>
</item>
<item row="6" column="3" >
<widget class="QPushButton" name="browseDestination" >
<property name="text" >
<string>Browse</string>
</property>
</widget>
</item>
<item row="3" column="0" >
<widget class="QLabel" name="label_7" >
<property name="text" >
<string>Comment:</string>
</property>
</widget>
</item>
<item row="3" column="1" colspan="3" >
<widget class="QLabel" name="commentLabel" >
<property name="text" >
<string>&lt;none></string>
</property>
</widget>
</item>
<item row="2" column="1" colspan="3" >
<widget class="QLabel" name="creatorLabel" >
<property name="text" >
<string>&lt;none></string>
</property>
</widget>
</item>
<item row="4" column="1" colspan="3" >
<widget class="QLabel" name="sizeLabel" >
<property name="text" >
<string>0</string>
</property>
</widget>
</item>
</layout>
<widget class="QWidget" name="widget" >
<property name="geometry" >
<rect>
<x>10</x>
<y>40</y>
<width>364</width>
<height>33</height>
</rect>
</property>
</widget>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>131</width>
<height>31</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="okButton" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>&amp;OK</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="cancelButton" >
<property name="text" >
<string>&amp;Cancel</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<pixmapfunction></pixmapfunction>
<tabstops>
<tabstop>torrentFile</tabstop>
<tabstop>browseTorrents</tabstop>
<tabstop>torrentContents</tabstop>
<tabstop>destinationFolder</tabstop>
<tabstop>browseDestination</tabstop>
<tabstop>okButton</tabstop>
<tabstop>cancelButton</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
<sender>okButton</sender>
<signal>clicked()</signal>
<receiver>AddTorrentFile</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>278</x>
<y>253</y>
</hint>
<hint type="destinationlabel" >
<x>96</x>
<y>254</y>
</hint>
</hints>
</connection>
<connection>
<sender>cancelButton</sender>
<signal>clicked()</signal>
<receiver>AddTorrentFile</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel" >
<x>369</x>
<y>253</y>
</hint>
<hint type="destinationlabel" >
<x>179</x>
<y>282</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -0,0 +1,239 @@
/********************************************************************************
** Form generated from reading UI file 'addtorrentform.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef ADDTORRENTFORM_H
#define ADDTORRENTFORM_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QTextEdit>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_AddTorrentFile
{
public:
QVBoxLayout *vboxLayout;
QGroupBox *groupBox;
QWidget *widget;
QGridLayout *gridLayout;
QLabel *label_4;
QLineEdit *torrentFile;
QLabel *label_2;
QPushButton *browseTorrents;
QLabel *label_5;
QLabel *label_3;
QLabel *label_6;
QTextEdit *torrentContents;
QLineEdit *destinationFolder;
QLabel *announceUrl;
QLabel *label;
QPushButton *browseDestination;
QLabel *label_7;
QLabel *commentLabel;
QLabel *creatorLabel;
QLabel *sizeLabel;
QHBoxLayout *hboxLayout;
QSpacerItem *spacerItem;
QPushButton *okButton;
QPushButton *cancelButton;
void setupUi(QDialog *AddTorrentFile)
{
if (AddTorrentFile->objectName().isEmpty())
AddTorrentFile->setObjectName("AddTorrentFile");
AddTorrentFile->resize(464, 385);
AddTorrentFile->setSizeGripEnabled(false);
AddTorrentFile->setModal(true);
vboxLayout = new QVBoxLayout(AddTorrentFile);
#ifndef Q_OS_MAC
vboxLayout->setSpacing(6);
#endif
vboxLayout->setContentsMargins(8, 8, 8, 8);
vboxLayout->setObjectName("vboxLayout");
groupBox = new QGroupBox(AddTorrentFile);
groupBox->setObjectName("groupBox");
widget = new QWidget(groupBox);
widget->setObjectName("widget");
widget->setGeometry(QRect(10, 40, 364, 33));
gridLayout = new QGridLayout(groupBox);
#ifndef Q_OS_MAC
gridLayout->setSpacing(6);
#endif
gridLayout->setContentsMargins(8, 8, 8, 8);
gridLayout->setObjectName("gridLayout");
label_4 = new QLabel(groupBox);
label_4->setObjectName("label_4");
gridLayout->addWidget(label_4, 6, 0, 1, 1);
torrentFile = new QLineEdit(groupBox);
torrentFile->setObjectName("torrentFile");
gridLayout->addWidget(torrentFile, 0, 1, 1, 2);
label_2 = new QLabel(groupBox);
label_2->setObjectName("label_2");
gridLayout->addWidget(label_2, 1, 0, 1, 1);
browseTorrents = new QPushButton(groupBox);
browseTorrents->setObjectName("browseTorrents");
gridLayout->addWidget(browseTorrents, 0, 3, 1, 1);
label_5 = new QLabel(groupBox);
label_5->setObjectName("label_5");
label_5->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
gridLayout->addWidget(label_5, 5, 0, 1, 1);
label_3 = new QLabel(groupBox);
label_3->setObjectName("label_3");
gridLayout->addWidget(label_3, 4, 0, 1, 1);
label_6 = new QLabel(groupBox);
label_6->setObjectName("label_6");
gridLayout->addWidget(label_6, 2, 0, 1, 1);
torrentContents = new QTextEdit(groupBox);
torrentContents->setObjectName("torrentContents");
torrentContents->setFocusPolicy(Qt::NoFocus);
torrentContents->setTabChangesFocus(true);
torrentContents->setLineWrapMode(QTextEdit::NoWrap);
torrentContents->setReadOnly(true);
gridLayout->addWidget(torrentContents, 5, 1, 1, 3);
destinationFolder = new QLineEdit(groupBox);
destinationFolder->setObjectName("destinationFolder");
destinationFolder->setFocusPolicy(Qt::StrongFocus);
gridLayout->addWidget(destinationFolder, 6, 1, 1, 2);
announceUrl = new QLabel(groupBox);
announceUrl->setObjectName("announceUrl");
gridLayout->addWidget(announceUrl, 1, 1, 1, 3);
label = new QLabel(groupBox);
label->setObjectName("label");
gridLayout->addWidget(label, 0, 0, 1, 1);
browseDestination = new QPushButton(groupBox);
browseDestination->setObjectName("browseDestination");
gridLayout->addWidget(browseDestination, 6, 3, 1, 1);
label_7 = new QLabel(groupBox);
label_7->setObjectName("label_7");
gridLayout->addWidget(label_7, 3, 0, 1, 1);
commentLabel = new QLabel(groupBox);
commentLabel->setObjectName("commentLabel");
gridLayout->addWidget(commentLabel, 3, 1, 1, 3);
creatorLabel = new QLabel(groupBox);
creatorLabel->setObjectName("creatorLabel");
gridLayout->addWidget(creatorLabel, 2, 1, 1, 3);
sizeLabel = new QLabel(groupBox);
sizeLabel->setObjectName("sizeLabel");
gridLayout->addWidget(sizeLabel, 4, 1, 1, 3);
vboxLayout->addWidget(groupBox);
hboxLayout = new QHBoxLayout();
#ifndef Q_OS_MAC
hboxLayout->setSpacing(6);
#endif
hboxLayout->setContentsMargins(0, 0, 0, 0);
hboxLayout->setObjectName("hboxLayout");
spacerItem = new QSpacerItem(131, 31, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout->addItem(spacerItem);
okButton = new QPushButton(AddTorrentFile);
okButton->setObjectName("okButton");
okButton->setEnabled(false);
hboxLayout->addWidget(okButton);
cancelButton = new QPushButton(AddTorrentFile);
cancelButton->setObjectName("cancelButton");
hboxLayout->addWidget(cancelButton);
vboxLayout->addLayout(hboxLayout);
QWidget::setTabOrder(torrentFile, browseTorrents);
QWidget::setTabOrder(browseTorrents, torrentContents);
QWidget::setTabOrder(torrentContents, destinationFolder);
QWidget::setTabOrder(destinationFolder, browseDestination);
QWidget::setTabOrder(browseDestination, okButton);
QWidget::setTabOrder(okButton, cancelButton);
retranslateUi(AddTorrentFile);
QObject::connect(okButton, &QPushButton::clicked, AddTorrentFile, qOverload<>(&QDialog::accept));
QObject::connect(cancelButton, &QPushButton::clicked, AddTorrentFile, qOverload<>(&QDialog::reject));
browseTorrents->setDefault(true);
QMetaObject::connectSlotsByName(AddTorrentFile);
} // setupUi
void retranslateUi(QDialog *AddTorrentFile)
{
AddTorrentFile->setWindowTitle(QCoreApplication::translate("AddTorrentFile", "Add a torrent", nullptr));
groupBox->setTitle(QCoreApplication::translate("AddTorrentFile", "Select a torrent source", nullptr));
label_4->setText(QCoreApplication::translate("AddTorrentFile", "Destination:", nullptr));
label_2->setText(QCoreApplication::translate("AddTorrentFile", "Tracker URL:", nullptr));
browseTorrents->setText(QCoreApplication::translate("AddTorrentFile", "Browse", nullptr));
label_5->setText(QCoreApplication::translate("AddTorrentFile", "File(s):", nullptr));
label_3->setText(QCoreApplication::translate("AddTorrentFile", "Size:", nullptr));
label_6->setText(QCoreApplication::translate("AddTorrentFile", "Creator:", nullptr));
announceUrl->setText(QCoreApplication::translate("AddTorrentFile", "<none>", nullptr));
label->setText(QCoreApplication::translate("AddTorrentFile", "Torrent file:", nullptr));
browseDestination->setText(QCoreApplication::translate("AddTorrentFile", "Browse", nullptr));
label_7->setText(QCoreApplication::translate("AddTorrentFile", "Comment:", nullptr));
commentLabel->setText(QCoreApplication::translate("AddTorrentFile", "<none>", nullptr));
creatorLabel->setText(QCoreApplication::translate("AddTorrentFile", "<none>", nullptr));
sizeLabel->setText(QCoreApplication::translate("AddTorrentFile", "0", nullptr));
okButton->setText(QCoreApplication::translate("AddTorrentFile", "&OK", nullptr));
cancelButton->setText(QCoreApplication::translate("AddTorrentFile", "&Cancel", nullptr));
} // retranslateUi
};
namespace Ui {
class AddTorrentFile: public Ui_AddTorrentFile {};
} // namespace Ui
QT_END_NAMESPACE
#endif // ADDTORRENTFORM_H

View File

@ -0,0 +1,129 @@
<ui version="4.0" >
<class>Dialog</class>
<widget class="QDialog" name="Dialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>389</width>
<height>243</height>
</rect>
</property>
<property name="windowTitle" >
<string>Http authentication required</string>
</property>
<layout class="QGridLayout" >
<item row="0" column="0" colspan="2" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>You need to supply a Username and a Password to access this site</string>
</property>
<property name="wordWrap" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>Username:</string>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QLineEdit" name="userEdit" />
</item>
<item row="3" column="0" >
<widget class="QLabel" name="label_3" >
<property name="text" >
<string>Password:</string>
</property>
</widget>
</item>
<item row="3" column="1" >
<widget class="QLineEdit" name="passwordEdit" />
</item>
<item row="5" column="0" colspan="2" >
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label_4" >
<property name="text" >
<string>Site:</string>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QLabel" name="siteDescription" >
<property name="font" >
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text" >
<string>%1 at %2</string>
</property>
<property name="wordWrap" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="4" column="0" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>Dialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel" >
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>Dialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel" >
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel" >
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -0,0 +1,122 @@
/********************************************************************************
** Form generated from reading UI file 'authenticationdialog.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef AUTHENTICATIONDIALOG_H
#define AUTHENTICATIONDIALOG_H
#include <QtCore/QVariant>
#include <QtWidgets/QAbstractButton>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QSpacerItem>
QT_BEGIN_NAMESPACE
class Ui_Dialog
{
public:
QGridLayout *gridLayout;
QLabel *label;
QLabel *label_2;
QLineEdit *userEdit;
QLabel *label_3;
QLineEdit *passwordEdit;
QDialogButtonBox *buttonBox;
QLabel *label_4;
QLabel *siteDescription;
QSpacerItem *spacerItem;
void setupUi(QDialog *Dialog)
{
if (Dialog->objectName().isEmpty())
Dialog->setObjectName("Dialog");
Dialog->resize(389, 243);
gridLayout = new QGridLayout(Dialog);
gridLayout->setObjectName("gridLayout");
label = new QLabel(Dialog);
label->setObjectName("label");
label->setWordWrap(false);
gridLayout->addWidget(label, 0, 0, 1, 2);
label_2 = new QLabel(Dialog);
label_2->setObjectName("label_2");
gridLayout->addWidget(label_2, 2, 0, 1, 1);
userEdit = new QLineEdit(Dialog);
userEdit->setObjectName("userEdit");
gridLayout->addWidget(userEdit, 2, 1, 1, 1);
label_3 = new QLabel(Dialog);
label_3->setObjectName("label_3");
gridLayout->addWidget(label_3, 3, 0, 1, 1);
passwordEdit = new QLineEdit(Dialog);
passwordEdit->setObjectName("passwordEdit");
gridLayout->addWidget(passwordEdit, 3, 1, 1, 1);
buttonBox = new QDialogButtonBox(Dialog);
buttonBox->setObjectName("buttonBox");
buttonBox->setOrientation(Qt::Horizontal);
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
gridLayout->addWidget(buttonBox, 5, 0, 1, 2);
label_4 = new QLabel(Dialog);
label_4->setObjectName("label_4");
gridLayout->addWidget(label_4, 1, 0, 1, 1);
siteDescription = new QLabel(Dialog);
siteDescription->setObjectName("siteDescription");
QFont font;
font.setBold(true);
siteDescription->setFont(font);
siteDescription->setWordWrap(true);
gridLayout->addWidget(siteDescription, 1, 1, 1, 1);
spacerItem = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout->addItem(spacerItem, 4, 0, 1, 1);
retranslateUi(Dialog);
QObject::connect(buttonBox, &QDialogButtonBox::accepted, Dialog, qOverload<>(&QDialog::accept));
QObject::connect(buttonBox, &QDialogButtonBox::rejected, Dialog, qOverload<>(&QDialog::reject));
QMetaObject::connectSlotsByName(Dialog);
} // setupUi
void retranslateUi(QDialog *Dialog)
{
Dialog->setWindowTitle(QCoreApplication::translate("Dialog", "Http authentication required", nullptr));
label->setText(QCoreApplication::translate("Dialog", "You need to supply a Username and a Password to access this site", nullptr));
label_2->setText(QCoreApplication::translate("Dialog", "Username:", nullptr));
label_3->setText(QCoreApplication::translate("Dialog", "Password:", nullptr));
label_4->setText(QCoreApplication::translate("Dialog", "Site:", nullptr));
siteDescription->setText(QCoreApplication::translate("Dialog", "%1 at %2", nullptr));
} // retranslateUi
};
namespace Ui {
class Dialog: public Ui_Dialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // AUTHENTICATIONDIALOG_H

View File

@ -0,0 +1,208 @@
<ui version="4.0" >
<class>BackSide</class>
<widget class="QWidget" name="BackSide" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>378</width>
<height>385</height>
</rect>
</property>
<property name="windowTitle" >
<string>BackSide</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2" >
<item>
<widget class="QGroupBox" name="groupBox" >
<property name="title" >
<string>Settings</string>
</property>
<property name="flat" >
<bool>true</bool>
</property>
<property name="checkable" >
<bool>true</bool>
</property>
<layout class="QGridLayout" name="gridLayout" >
<item row="0" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Title:</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QLineEdit" name="hostName" >
<property name="text" >
<string>Pad Navigator Example</string>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>Modified:</string>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="label_3" >
<property name="text" >
<string>Extent</string>
</property>
</widget>
</item>
<item row="2" column="1" >
<layout class="QHBoxLayout" name="horizontalLayout" >
<item>
<widget class="QSlider" name="horizontalSlider" >
<property name="value" >
<number>42</number>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox" >
<property name="value" >
<number>42</number>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="1" >
<widget class="QDateTimeEdit" name="dateTimeEdit" />
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2" >
<property name="title" >
<string>Other input</string>
</property>
<property name="flat" >
<bool>true</bool>
</property>
<property name="checkable" >
<bool>true</bool>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2" >
<item>
<widget class="QTreeWidget" name="treeWidget" >
<column>
<property name="text" >
<string>Widgets On Graphics View</string>
</property>
</column>
<item>
<property name="text" >
<string>QGraphicsProxyWidget</string>
</property>
<item>
<property name="text" >
<string>QGraphicsWidget</string>
</property>
<item>
<property name="text" >
<string>QObject</string>
</property>
</item>
<item>
<property name="text" >
<string>QGraphicsItem</string>
</property>
</item>
<item>
<property name="text" >
<string>QGraphicsLayoutItem</string>
</property>
</item>
</item>
</item>
<item>
<property name="text" >
<string>QGraphicsGridLayout</string>
</property>
<item>
<property name="text" >
<string>QGraphicsLayout</string>
</property>
<item>
<property name="text" >
<string>QGraphicsLayoutItem</string>
</property>
</item>
</item>
</item>
<item>
<property name="text" >
<string>QGraphicsLinearLayout</string>
</property>
<item>
<property name="text" >
<string>QGraphicsLayout</string>
</property>
<item>
<property name="text" >
<string>QGraphicsLayoutItem</string>
</property>
</item>
</item>
</item>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<tabstops>
<tabstop>groupBox</tabstop>
<tabstop>hostName</tabstop>
<tabstop>dateTimeEdit</tabstop>
<tabstop>horizontalSlider</tabstop>
<tabstop>spinBox</tabstop>
<tabstop>groupBox_2</tabstop>
<tabstop>treeWidget</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
<sender>horizontalSlider</sender>
<signal>valueChanged(int)</signal>
<receiver>spinBox</receiver>
<slot>setValue(int)</slot>
<hints>
<hint type="sourcelabel" >
<x>184</x>
<y>125</y>
</hint>
<hint type="destinationlabel" >
<x>275</x>
<y>127</y>
</hint>
</hints>
</connection>
<connection>
<sender>spinBox</sender>
<signal>valueChanged(int)</signal>
<receiver>horizontalSlider</receiver>
<slot>setValue(int)</slot>
<hints>
<hint type="sourcelabel" >
<x>272</x>
<y>114</y>
</hint>
<hint type="destinationlabel" >
<x>190</x>
<y>126</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -0,0 +1,193 @@
/********************************************************************************
** Form generated from reading UI file 'backside.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef BACKSIDE_H
#define BACKSIDE_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDateTimeEdit>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QSlider>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QTreeWidget>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_BackSide
{
public:
QVBoxLayout *verticalLayout_2;
QGroupBox *groupBox;
QGridLayout *gridLayout;
QLabel *label;
QLineEdit *hostName;
QLabel *label_2;
QLabel *label_3;
QHBoxLayout *horizontalLayout;
QSlider *horizontalSlider;
QSpinBox *spinBox;
QDateTimeEdit *dateTimeEdit;
QGroupBox *groupBox_2;
QHBoxLayout *horizontalLayout_2;
QTreeWidget *treeWidget;
void setupUi(QWidget *BackSide)
{
if (BackSide->objectName().isEmpty())
BackSide->setObjectName("BackSide");
BackSide->resize(378, 385);
verticalLayout_2 = new QVBoxLayout(BackSide);
verticalLayout_2->setObjectName("verticalLayout_2");
groupBox = new QGroupBox(BackSide);
groupBox->setObjectName("groupBox");
groupBox->setFlat(true);
groupBox->setCheckable(true);
gridLayout = new QGridLayout(groupBox);
gridLayout->setObjectName("gridLayout");
label = new QLabel(groupBox);
label->setObjectName("label");
gridLayout->addWidget(label, 0, 0, 1, 1);
hostName = new QLineEdit(groupBox);
hostName->setObjectName("hostName");
gridLayout->addWidget(hostName, 0, 1, 1, 1);
label_2 = new QLabel(groupBox);
label_2->setObjectName("label_2");
gridLayout->addWidget(label_2, 1, 0, 1, 1);
label_3 = new QLabel(groupBox);
label_3->setObjectName("label_3");
gridLayout->addWidget(label_3, 2, 0, 1, 1);
horizontalLayout = new QHBoxLayout();
horizontalLayout->setObjectName("horizontalLayout");
horizontalSlider = new QSlider(groupBox);
horizontalSlider->setObjectName("horizontalSlider");
horizontalSlider->setValue(42);
horizontalSlider->setOrientation(Qt::Horizontal);
horizontalLayout->addWidget(horizontalSlider);
spinBox = new QSpinBox(groupBox);
spinBox->setObjectName("spinBox");
spinBox->setValue(42);
horizontalLayout->addWidget(spinBox);
gridLayout->addLayout(horizontalLayout, 2, 1, 1, 1);
dateTimeEdit = new QDateTimeEdit(groupBox);
dateTimeEdit->setObjectName("dateTimeEdit");
gridLayout->addWidget(dateTimeEdit, 1, 1, 1, 1);
verticalLayout_2->addWidget(groupBox);
groupBox_2 = new QGroupBox(BackSide);
groupBox_2->setObjectName("groupBox_2");
groupBox_2->setFlat(true);
groupBox_2->setCheckable(true);
horizontalLayout_2 = new QHBoxLayout(groupBox_2);
horizontalLayout_2->setObjectName("horizontalLayout_2");
treeWidget = new QTreeWidget(groupBox_2);
QTreeWidgetItem *__qtreewidgetitem = new QTreeWidgetItem(treeWidget);
QTreeWidgetItem *__qtreewidgetitem1 = new QTreeWidgetItem(__qtreewidgetitem);
new QTreeWidgetItem(__qtreewidgetitem1);
new QTreeWidgetItem(__qtreewidgetitem1);
new QTreeWidgetItem(__qtreewidgetitem1);
QTreeWidgetItem *__qtreewidgetitem2 = new QTreeWidgetItem(treeWidget);
QTreeWidgetItem *__qtreewidgetitem3 = new QTreeWidgetItem(__qtreewidgetitem2);
new QTreeWidgetItem(__qtreewidgetitem3);
QTreeWidgetItem *__qtreewidgetitem4 = new QTreeWidgetItem(treeWidget);
QTreeWidgetItem *__qtreewidgetitem5 = new QTreeWidgetItem(__qtreewidgetitem4);
new QTreeWidgetItem(__qtreewidgetitem5);
treeWidget->setObjectName("treeWidget");
horizontalLayout_2->addWidget(treeWidget);
verticalLayout_2->addWidget(groupBox_2);
QWidget::setTabOrder(groupBox, hostName);
QWidget::setTabOrder(hostName, dateTimeEdit);
QWidget::setTabOrder(dateTimeEdit, horizontalSlider);
QWidget::setTabOrder(horizontalSlider, spinBox);
QWidget::setTabOrder(spinBox, groupBox_2);
QWidget::setTabOrder(groupBox_2, treeWidget);
retranslateUi(BackSide);
QObject::connect(horizontalSlider, &QSlider::valueChanged, spinBox, &QSpinBox::setValue);
QObject::connect(spinBox, &QSpinBox::valueChanged, horizontalSlider, &QSlider::setValue);
QMetaObject::connectSlotsByName(BackSide);
} // setupUi
void retranslateUi(QWidget *BackSide)
{
BackSide->setWindowTitle(QCoreApplication::translate("BackSide", "BackSide", nullptr));
groupBox->setTitle(QCoreApplication::translate("BackSide", "Settings", nullptr));
label->setText(QCoreApplication::translate("BackSide", "Title:", nullptr));
hostName->setText(QCoreApplication::translate("BackSide", "Pad Navigator Example", nullptr));
label_2->setText(QCoreApplication::translate("BackSide", "Modified:", nullptr));
label_3->setText(QCoreApplication::translate("BackSide", "Extent", nullptr));
groupBox_2->setTitle(QCoreApplication::translate("BackSide", "Other input", nullptr));
QTreeWidgetItem *___qtreewidgetitem = treeWidget->headerItem();
___qtreewidgetitem->setText(0, QCoreApplication::translate("BackSide", "Widgets On Graphics View", nullptr));
const bool __sortingEnabled = treeWidget->isSortingEnabled();
treeWidget->setSortingEnabled(false);
QTreeWidgetItem *___qtreewidgetitem1 = treeWidget->topLevelItem(0);
___qtreewidgetitem1->setText(0, QCoreApplication::translate("BackSide", "QGraphicsProxyWidget", nullptr));
QTreeWidgetItem *___qtreewidgetitem2 = ___qtreewidgetitem1->child(0);
___qtreewidgetitem2->setText(0, QCoreApplication::translate("BackSide", "QGraphicsWidget", nullptr));
QTreeWidgetItem *___qtreewidgetitem3 = ___qtreewidgetitem2->child(0);
___qtreewidgetitem3->setText(0, QCoreApplication::translate("BackSide", "QObject", nullptr));
QTreeWidgetItem *___qtreewidgetitem4 = ___qtreewidgetitem2->child(1);
___qtreewidgetitem4->setText(0, QCoreApplication::translate("BackSide", "QGraphicsItem", nullptr));
QTreeWidgetItem *___qtreewidgetitem5 = ___qtreewidgetitem2->child(2);
___qtreewidgetitem5->setText(0, QCoreApplication::translate("BackSide", "QGraphicsLayoutItem", nullptr));
QTreeWidgetItem *___qtreewidgetitem6 = treeWidget->topLevelItem(1);
___qtreewidgetitem6->setText(0, QCoreApplication::translate("BackSide", "QGraphicsGridLayout", nullptr));
QTreeWidgetItem *___qtreewidgetitem7 = ___qtreewidgetitem6->child(0);
___qtreewidgetitem7->setText(0, QCoreApplication::translate("BackSide", "QGraphicsLayout", nullptr));
QTreeWidgetItem *___qtreewidgetitem8 = ___qtreewidgetitem7->child(0);
___qtreewidgetitem8->setText(0, QCoreApplication::translate("BackSide", "QGraphicsLayoutItem", nullptr));
QTreeWidgetItem *___qtreewidgetitem9 = treeWidget->topLevelItem(2);
___qtreewidgetitem9->setText(0, QCoreApplication::translate("BackSide", "QGraphicsLinearLayout", nullptr));
QTreeWidgetItem *___qtreewidgetitem10 = ___qtreewidgetitem9->child(0);
___qtreewidgetitem10->setText(0, QCoreApplication::translate("BackSide", "QGraphicsLayout", nullptr));
QTreeWidgetItem *___qtreewidgetitem11 = ___qtreewidgetitem10->child(0);
___qtreewidgetitem11->setText(0, QCoreApplication::translate("BackSide", "QGraphicsLayoutItem", nullptr));
treeWidget->setSortingEnabled(__sortingEnabled);
} // retranslateUi
};
namespace Ui {
class BackSide: public Ui_BackSide {};
} // namespace Ui
QT_END_NAMESPACE
#endif // BACKSIDE_H

View File

@ -0,0 +1,199 @@
<ui version="4.0" >
<comment>
* Copyright (C) 2016 The Qt Company Ltd.
* SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
</comment>
<exportmacro></exportmacro>
<class>databaseTranslationDialog</class>
<widget class="QDialog" name="databaseTranslationDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>425</width>
<height>370</height>
</rect>
</property>
<property name="windowTitle" >
<string>Qt Linguist - Batch Translation</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QGroupBox" name="groupBox" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>4</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string>Options</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QCheckBox" name="ckOnlyUntranslated" >
<property name="text" >
<string>Only translate entries with no translation</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="ckMarkFinished" >
<property name="text" >
<string>Set translated entries to finished</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>1</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" >
<string>Phrase book preference</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QListView" name="phrasebookList" >
<property name="uniformItemSizes" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QPushButton" name="moveUpButton" >
<property name="text" >
<string>Move up</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="moveDownButton" >
<property name="text" >
<string>Move down</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="label" >
<property name="text" >
<string>The batch translator will search through the selected phrasebooks in the order given above.</string>
</property>
<property name="wordWrap" >
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="runButton" >
<property name="text" >
<string>&amp;Run</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="cancelButton" >
<property name="text" >
<string>&amp;Cancel</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<pixmapfunction></pixmapfunction>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,213 @@
/*
* Copyright (C) 2016 The Qt Company Ltd.
* SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
*/
/********************************************************************************
** Form generated from reading UI file 'batchtranslation.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef BATCHTRANSLATION_H
#define BATCHTRANSLATION_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QDialog>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QListView>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QVBoxLayout>
QT_BEGIN_NAMESPACE
class Ui_databaseTranslationDialog
{
public:
QVBoxLayout *vboxLayout;
QGroupBox *groupBox;
QVBoxLayout *vboxLayout1;
QCheckBox *ckOnlyUntranslated;
QCheckBox *ckMarkFinished;
QGroupBox *groupBox_2;
QVBoxLayout *vboxLayout2;
QHBoxLayout *hboxLayout;
QListView *phrasebookList;
QVBoxLayout *vboxLayout3;
QPushButton *moveUpButton;
QPushButton *moveDownButton;
QSpacerItem *spacerItem;
QLabel *label;
QHBoxLayout *hboxLayout1;
QSpacerItem *spacerItem1;
QPushButton *runButton;
QPushButton *cancelButton;
void setupUi(QDialog *databaseTranslationDialog)
{
if (databaseTranslationDialog->objectName().isEmpty())
databaseTranslationDialog->setObjectName("databaseTranslationDialog");
databaseTranslationDialog->resize(425, 370);
vboxLayout = new QVBoxLayout(databaseTranslationDialog);
#ifndef Q_OS_MAC
vboxLayout->setSpacing(6);
#endif
#ifndef Q_OS_MAC
vboxLayout->setContentsMargins(9, 9, 9, 9);
#endif
vboxLayout->setObjectName("vboxLayout");
groupBox = new QGroupBox(databaseTranslationDialog);
groupBox->setObjectName("groupBox");
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(groupBox->sizePolicy().hasHeightForWidth());
groupBox->setSizePolicy(sizePolicy);
vboxLayout1 = new QVBoxLayout(groupBox);
#ifndef Q_OS_MAC
vboxLayout1->setSpacing(6);
#endif
#ifndef Q_OS_MAC
vboxLayout1->setContentsMargins(9, 9, 9, 9);
#endif
vboxLayout1->setObjectName("vboxLayout1");
ckOnlyUntranslated = new QCheckBox(groupBox);
ckOnlyUntranslated->setObjectName("ckOnlyUntranslated");
ckOnlyUntranslated->setChecked(true);
vboxLayout1->addWidget(ckOnlyUntranslated);
ckMarkFinished = new QCheckBox(groupBox);
ckMarkFinished->setObjectName("ckMarkFinished");
ckMarkFinished->setChecked(true);
vboxLayout1->addWidget(ckMarkFinished);
vboxLayout->addWidget(groupBox);
groupBox_2 = new QGroupBox(databaseTranslationDialog);
groupBox_2->setObjectName("groupBox_2");
QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Minimum);
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(groupBox_2->sizePolicy().hasHeightForWidth());
groupBox_2->setSizePolicy(sizePolicy1);
vboxLayout2 = new QVBoxLayout(groupBox_2);
#ifndef Q_OS_MAC
vboxLayout2->setSpacing(6);
#endif
#ifndef Q_OS_MAC
vboxLayout2->setContentsMargins(9, 9, 9, 9);
#endif
vboxLayout2->setObjectName("vboxLayout2");
hboxLayout = new QHBoxLayout();
#ifndef Q_OS_MAC
hboxLayout->setSpacing(6);
#endif
#ifndef Q_OS_MAC
hboxLayout->setContentsMargins(0, 0, 0, 0);
#endif
hboxLayout->setObjectName("hboxLayout");
phrasebookList = new QListView(groupBox_2);
phrasebookList->setObjectName("phrasebookList");
phrasebookList->setUniformItemSizes(true);
hboxLayout->addWidget(phrasebookList);
vboxLayout3 = new QVBoxLayout();
#ifndef Q_OS_MAC
vboxLayout3->setSpacing(6);
#endif
vboxLayout3->setContentsMargins(0, 0, 0, 0);
vboxLayout3->setObjectName("vboxLayout3");
moveUpButton = new QPushButton(groupBox_2);
moveUpButton->setObjectName("moveUpButton");
vboxLayout3->addWidget(moveUpButton);
moveDownButton = new QPushButton(groupBox_2);
moveDownButton->setObjectName("moveDownButton");
vboxLayout3->addWidget(moveDownButton);
spacerItem = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
vboxLayout3->addItem(spacerItem);
hboxLayout->addLayout(vboxLayout3);
vboxLayout2->addLayout(hboxLayout);
label = new QLabel(groupBox_2);
label->setObjectName("label");
label->setWordWrap(true);
vboxLayout2->addWidget(label);
vboxLayout->addWidget(groupBox_2);
hboxLayout1 = new QHBoxLayout();
#ifndef Q_OS_MAC
hboxLayout1->setSpacing(6);
#endif
hboxLayout1->setContentsMargins(0, 0, 0, 0);
hboxLayout1->setObjectName("hboxLayout1");
spacerItem1 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout1->addItem(spacerItem1);
runButton = new QPushButton(databaseTranslationDialog);
runButton->setObjectName("runButton");
hboxLayout1->addWidget(runButton);
cancelButton = new QPushButton(databaseTranslationDialog);
cancelButton->setObjectName("cancelButton");
hboxLayout1->addWidget(cancelButton);
vboxLayout->addLayout(hboxLayout1);
retranslateUi(databaseTranslationDialog);
QMetaObject::connectSlotsByName(databaseTranslationDialog);
} // setupUi
void retranslateUi(QDialog *databaseTranslationDialog)
{
databaseTranslationDialog->setWindowTitle(QCoreApplication::translate("databaseTranslationDialog", "Qt Linguist - Batch Translation", nullptr));
groupBox->setTitle(QCoreApplication::translate("databaseTranslationDialog", "Options", nullptr));
ckOnlyUntranslated->setText(QCoreApplication::translate("databaseTranslationDialog", "Only translate entries with no translation", nullptr));
ckMarkFinished->setText(QCoreApplication::translate("databaseTranslationDialog", "Set translated entries to finished", nullptr));
groupBox_2->setTitle(QCoreApplication::translate("databaseTranslationDialog", "Phrase book preference", nullptr));
moveUpButton->setText(QCoreApplication::translate("databaseTranslationDialog", "Move up", nullptr));
moveDownButton->setText(QCoreApplication::translate("databaseTranslationDialog", "Move down", nullptr));
label->setText(QCoreApplication::translate("databaseTranslationDialog", "The batch translator will search through the selected phrasebooks in the order given above.", nullptr));
runButton->setText(QCoreApplication::translate("databaseTranslationDialog", "&Run", nullptr));
cancelButton->setText(QCoreApplication::translate("databaseTranslationDialog", "&Cancel", nullptr));
} // retranslateUi
};
namespace Ui {
class databaseTranslationDialog: public Ui_databaseTranslationDialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // BATCHTRANSLATION_H

View File

@ -0,0 +1,161 @@
<ui version="4.0" >
<class>BookmarkDialog</class>
<widget class="QDialog" name="BookmarkDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>450</width>
<height>135</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle" >
<string>Add Bookmark</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3" >
<item>
<layout class="QHBoxLayout" name="horizontalLayout" >
<item>
<layout class="QVBoxLayout" name="verticalLayout_2" >
<item>
<widget class="QLabel" name="label" >
<property name="text" >
<string>Bookmark:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>Add in Folder:</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout" >
<item>
<widget class="QLineEdit" name="bookmarkEdit" />
</item>
<item>
<widget class="QComboBox" name="bookmarkFolders" />
</item>
</layout>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3" >
<item>
<widget class="QToolButton" name="toolButton" >
<property name="minimumSize" >
<size>
<width>25</width>
<height>20</height>
</size>
</property>
<property name="text" >
<string>+</string>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="BookmarkWidget" name="bookmarkWidget" >
<property name="enabled" >
<bool>true</bool>
</property>
<property name="sizePolicy" >
<sizepolicy vsizetype="Ignored" hsizetype="Expanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<column>
<property name="text" >
<string>1</string>
</property>
</column>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4" >
<item>
<widget class="QPushButton" name="newFolderButton" >
<property name="text" >
<string>New Folder</string>
</property>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>BookmarkWidget</class>
<extends>QTreeWidget</extends>
<header>bookmarkwidget.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>BookmarkDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel" >
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>BookmarkDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel" >
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel" >
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -0,0 +1,169 @@
/********************************************************************************
** Form generated from reading UI file 'bookmarkdialog.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef BOOKMARKDIALOG_H
#define BOOKMARKDIALOG_H
#include <QtCore/QVariant>
#include <QtWidgets/QAbstractButton>
#include <QtWidgets/QApplication>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QFrame>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QToolButton>
#include <QtWidgets/QVBoxLayout>
#include "bookmarkwidget.h"
QT_BEGIN_NAMESPACE
class Ui_BookmarkDialog
{
public:
QVBoxLayout *verticalLayout_3;
QHBoxLayout *horizontalLayout;
QVBoxLayout *verticalLayout_2;
QLabel *label;
QLabel *label_2;
QVBoxLayout *verticalLayout;
QLineEdit *bookmarkEdit;
QComboBox *bookmarkFolders;
QHBoxLayout *horizontalLayout_3;
QToolButton *toolButton;
QFrame *line;
BookmarkWidget *bookmarkWidget;
QHBoxLayout *horizontalLayout_4;
QPushButton *newFolderButton;
QDialogButtonBox *buttonBox;
void setupUi(QDialog *BookmarkDialog)
{
if (BookmarkDialog->objectName().isEmpty())
BookmarkDialog->setObjectName("BookmarkDialog");
BookmarkDialog->resize(450, 135);
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(BookmarkDialog->sizePolicy().hasHeightForWidth());
BookmarkDialog->setSizePolicy(sizePolicy);
verticalLayout_3 = new QVBoxLayout(BookmarkDialog);
verticalLayout_3->setObjectName("verticalLayout_3");
horizontalLayout = new QHBoxLayout();
horizontalLayout->setObjectName("horizontalLayout");
verticalLayout_2 = new QVBoxLayout();
verticalLayout_2->setObjectName("verticalLayout_2");
label = new QLabel(BookmarkDialog);
label->setObjectName("label");
verticalLayout_2->addWidget(label);
label_2 = new QLabel(BookmarkDialog);
label_2->setObjectName("label_2");
verticalLayout_2->addWidget(label_2);
horizontalLayout->addLayout(verticalLayout_2);
verticalLayout = new QVBoxLayout();
verticalLayout->setObjectName("verticalLayout");
bookmarkEdit = new QLineEdit(BookmarkDialog);
bookmarkEdit->setObjectName("bookmarkEdit");
verticalLayout->addWidget(bookmarkEdit);
bookmarkFolders = new QComboBox(BookmarkDialog);
bookmarkFolders->setObjectName("bookmarkFolders");
verticalLayout->addWidget(bookmarkFolders);
horizontalLayout->addLayout(verticalLayout);
verticalLayout_3->addLayout(horizontalLayout);
horizontalLayout_3 = new QHBoxLayout();
horizontalLayout_3->setObjectName("horizontalLayout_3");
toolButton = new QToolButton(BookmarkDialog);
toolButton->setObjectName("toolButton");
toolButton->setMinimumSize(QSize(25, 20));
horizontalLayout_3->addWidget(toolButton);
line = new QFrame(BookmarkDialog);
line->setObjectName("line");
line->setFrameShape(QFrame::HLine);
line->setFrameShadow(QFrame::Sunken);
horizontalLayout_3->addWidget(line);
verticalLayout_3->addLayout(horizontalLayout_3);
bookmarkWidget = new BookmarkWidget(BookmarkDialog);
bookmarkWidget->setObjectName("bookmarkWidget");
bookmarkWidget->setEnabled(true);
QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Ignored);
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(bookmarkWidget->sizePolicy().hasHeightForWidth());
bookmarkWidget->setSizePolicy(sizePolicy1);
verticalLayout_3->addWidget(bookmarkWidget);
horizontalLayout_4 = new QHBoxLayout();
horizontalLayout_4->setObjectName("horizontalLayout_4");
newFolderButton = new QPushButton(BookmarkDialog);
newFolderButton->setObjectName("newFolderButton");
horizontalLayout_4->addWidget(newFolderButton);
buttonBox = new QDialogButtonBox(BookmarkDialog);
buttonBox->setObjectName("buttonBox");
buttonBox->setOrientation(Qt::Horizontal);
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
horizontalLayout_4->addWidget(buttonBox);
verticalLayout_3->addLayout(horizontalLayout_4);
retranslateUi(BookmarkDialog);
QObject::connect(buttonBox, &QDialogButtonBox::accepted, BookmarkDialog, qOverload<>(&QDialog::accept));
QObject::connect(buttonBox, &QDialogButtonBox::rejected, BookmarkDialog, qOverload<>(&QDialog::reject));
QMetaObject::connectSlotsByName(BookmarkDialog);
} // setupUi
void retranslateUi(QDialog *BookmarkDialog)
{
BookmarkDialog->setWindowTitle(QCoreApplication::translate("BookmarkDialog", "Add Bookmark", nullptr));
label->setText(QCoreApplication::translate("BookmarkDialog", "Bookmark:", nullptr));
label_2->setText(QCoreApplication::translate("BookmarkDialog", "Add in Folder:", nullptr));
toolButton->setText(QCoreApplication::translate("BookmarkDialog", "+", nullptr));
QTreeWidgetItem *___qtreewidgetitem = bookmarkWidget->headerItem();
___qtreewidgetitem->setText(0, QCoreApplication::translate("BookmarkDialog", "1", nullptr));
newFolderButton->setText(QCoreApplication::translate("BookmarkDialog", "New Folder", nullptr));
} // retranslateUi
};
namespace Ui {
class BookmarkDialog: public Ui_BookmarkDialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // BOOKMARKDIALOG_H

View File

@ -0,0 +1,149 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>BookWindow</class>
<widget class="QMainWindow" name="BookWindow" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>601</width>
<height>420</height>
</rect>
</property>
<property name="windowTitle" >
<string>Books</string>
</property>
<widget class="QWidget" name="centralWidget" >
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QGroupBox" name="groupBox" >
<property name="title" >
<string>Books</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QTableView" name="bookTable" >
<property name="selectionBehavior" >
<enum>QAbstractItemView::SelectRows</enum>
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2" >
<property name="title" >
<string>Details</string>
</property>
<layout class="QFormLayout" >
<item row="0" column="0" >
<widget class="QLabel" name="label_5" >
<property name="text" >
<string>&lt;b>Title:&lt;/b></string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QLineEdit" name="titleEdit" >
<property name="enabled" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label_2_2_2_2" >
<property name="text" >
<string>&lt;b>Author: &lt;/b></string>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QComboBox" name="authorEdit" >
<property name="enabled" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="label_3" >
<property name="text" >
<string>&lt;b>Genre:&lt;/b></string>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QComboBox" name="genreEdit" >
<property name="enabled" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="3" column="0" >
<widget class="QLabel" name="label_4" >
<property name="text" >
<string>&lt;b>Year:&lt;/b></string>
</property>
</widget>
</item>
<item row="3" column="1" >
<widget class="QSpinBox" name="yearEdit" >
<property name="enabled" >
<bool>true</bool>
</property>
<property name="prefix" >
<string/>
</property>
<property name="maximum" >
<number>2100</number>
</property>
<property name="minimum" >
<number>-1000</number>
</property>
</widget>
</item>
<item row="4" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>&lt;b>Rating:&lt;/b></string>
</property>
</widget>
</item>
<item row="4" column="1" >
<widget class="QSpinBox" name="ratingEdit" >
<property name="maximum" >
<number>5</number>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</widget>
<pixmapfunction></pixmapfunction>
<tabstops>
<tabstop>bookTable</tabstop>
<tabstop>titleEdit</tabstop>
<tabstop>authorEdit</tabstop>
<tabstop>genreEdit</tabstop>
<tabstop>yearEdit</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,179 @@
/********************************************************************************
** Form generated from reading UI file 'bookwindow.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef BOOKWINDOW_H
#define BOOKWINDOW_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QFormLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QTableView>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_BookWindow
{
public:
QWidget *centralWidget;
QVBoxLayout *vboxLayout;
QGroupBox *groupBox;
QVBoxLayout *vboxLayout1;
QTableView *bookTable;
QGroupBox *groupBox_2;
QFormLayout *formLayout;
QLabel *label_5;
QLineEdit *titleEdit;
QLabel *label_2_2_2_2;
QComboBox *authorEdit;
QLabel *label_3;
QComboBox *genreEdit;
QLabel *label_4;
QSpinBox *yearEdit;
QLabel *label;
QSpinBox *ratingEdit;
void setupUi(QMainWindow *BookWindow)
{
if (BookWindow->objectName().isEmpty())
BookWindow->setObjectName("BookWindow");
BookWindow->resize(601, 420);
centralWidget = new QWidget(BookWindow);
centralWidget->setObjectName("centralWidget");
vboxLayout = new QVBoxLayout(centralWidget);
#ifndef Q_OS_MAC
vboxLayout->setSpacing(6);
#endif
#ifndef Q_OS_MAC
vboxLayout->setContentsMargins(9, 9, 9, 9);
#endif
vboxLayout->setObjectName("vboxLayout");
groupBox = new QGroupBox(centralWidget);
groupBox->setObjectName("groupBox");
vboxLayout1 = new QVBoxLayout(groupBox);
#ifndef Q_OS_MAC
vboxLayout1->setSpacing(6);
#endif
#ifndef Q_OS_MAC
vboxLayout1->setContentsMargins(9, 9, 9, 9);
#endif
vboxLayout1->setObjectName("vboxLayout1");
bookTable = new QTableView(groupBox);
bookTable->setObjectName("bookTable");
bookTable->setSelectionBehavior(QAbstractItemView::SelectRows);
vboxLayout1->addWidget(bookTable);
groupBox_2 = new QGroupBox(groupBox);
groupBox_2->setObjectName("groupBox_2");
formLayout = new QFormLayout(groupBox_2);
formLayout->setObjectName("formLayout");
label_5 = new QLabel(groupBox_2);
label_5->setObjectName("label_5");
formLayout->setWidget(0, QFormLayout::LabelRole, label_5);
titleEdit = new QLineEdit(groupBox_2);
titleEdit->setObjectName("titleEdit");
titleEdit->setEnabled(true);
formLayout->setWidget(0, QFormLayout::FieldRole, titleEdit);
label_2_2_2_2 = new QLabel(groupBox_2);
label_2_2_2_2->setObjectName("label_2_2_2_2");
formLayout->setWidget(1, QFormLayout::LabelRole, label_2_2_2_2);
authorEdit = new QComboBox(groupBox_2);
authorEdit->setObjectName("authorEdit");
authorEdit->setEnabled(true);
formLayout->setWidget(1, QFormLayout::FieldRole, authorEdit);
label_3 = new QLabel(groupBox_2);
label_3->setObjectName("label_3");
formLayout->setWidget(2, QFormLayout::LabelRole, label_3);
genreEdit = new QComboBox(groupBox_2);
genreEdit->setObjectName("genreEdit");
genreEdit->setEnabled(true);
formLayout->setWidget(2, QFormLayout::FieldRole, genreEdit);
label_4 = new QLabel(groupBox_2);
label_4->setObjectName("label_4");
formLayout->setWidget(3, QFormLayout::LabelRole, label_4);
yearEdit = new QSpinBox(groupBox_2);
yearEdit->setObjectName("yearEdit");
yearEdit->setEnabled(true);
yearEdit->setMaximum(2100);
yearEdit->setMinimum(-1000);
formLayout->setWidget(3, QFormLayout::FieldRole, yearEdit);
label = new QLabel(groupBox_2);
label->setObjectName("label");
formLayout->setWidget(4, QFormLayout::LabelRole, label);
ratingEdit = new QSpinBox(groupBox_2);
ratingEdit->setObjectName("ratingEdit");
ratingEdit->setMaximum(5);
formLayout->setWidget(4, QFormLayout::FieldRole, ratingEdit);
vboxLayout1->addWidget(groupBox_2);
vboxLayout->addWidget(groupBox);
BookWindow->setCentralWidget(centralWidget);
QWidget::setTabOrder(bookTable, titleEdit);
QWidget::setTabOrder(titleEdit, authorEdit);
QWidget::setTabOrder(authorEdit, genreEdit);
QWidget::setTabOrder(genreEdit, yearEdit);
retranslateUi(BookWindow);
QMetaObject::connectSlotsByName(BookWindow);
} // setupUi
void retranslateUi(QMainWindow *BookWindow)
{
BookWindow->setWindowTitle(QCoreApplication::translate("BookWindow", "Books", nullptr));
groupBox->setTitle(QCoreApplication::translate("BookWindow", "Books", nullptr));
groupBox_2->setTitle(QCoreApplication::translate("BookWindow", "Details", nullptr));
label_5->setText(QCoreApplication::translate("BookWindow", "<b>Title:</b>", nullptr));
label_2_2_2_2->setText(QCoreApplication::translate("BookWindow", "<b>Author: </b>", nullptr));
label_3->setText(QCoreApplication::translate("BookWindow", "<b>Genre:</b>", nullptr));
label_4->setText(QCoreApplication::translate("BookWindow", "<b>Year:</b>", nullptr));
yearEdit->setPrefix(QString());
label->setText(QCoreApplication::translate("BookWindow", "<b>Rating:</b>", nullptr));
} // retranslateUi
};
namespace Ui {
class BookWindow: public Ui_BookWindow {};
} // namespace Ui
QT_END_NAMESPACE
#endif // BOOKWINDOW_H

View File

@ -0,0 +1,199 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>Browser</class>
<widget class="QWidget" name="Browser" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>765</width>
<height>515</height>
</rect>
</property>
<property name="windowTitle" >
<string>Qt SQL Browser</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>8</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QSplitter" name="splitter_2" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<widget class="ConnectionWidget" name="connectionWidget" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>13</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
<widget class="QTableView" name="table" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>2</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="contextMenuPolicy" >
<enum>Qt::ActionsContextMenu</enum>
</property>
<property name="selectionBehavior" >
<enum>QAbstractItemView::SelectRows</enum>
</property>
</widget>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>3</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>180</height>
</size>
</property>
<property name="title" >
<string>SQL Query</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QTextEdit" name="sqlEdit" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>3</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>0</width>
<height>18</height>
</size>
</property>
<property name="baseSize" >
<size>
<width>0</width>
<height>120</height>
</size>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="clearButton" >
<property name="text" >
<string>&amp;Clear</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="submitButton" >
<property name="text" >
<string>&amp;Submit</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
<action name="insertRowAction" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>&amp;Insert Row</string>
</property>
<property name="statusTip" >
<string>Inserts a new Row</string>
</property>
</action>
<action name="deleteRowAction" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>&amp;Delete Row</string>
</property>
<property name="statusTip" >
<string>Deletes the current Row</string>
</property>
</action>
</widget>
<pixmapfunction></pixmapfunction>
<customwidgets>
<customwidget>
<class>ConnectionWidget</class>
<extends>QTreeView</extends>
<header>connectionwidget.h</header>
<container>0</container>
<pixmap></pixmap>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>sqlEdit</tabstop>
<tabstop>clearButton</tabstop>
<tabstop>submitButton</tabstop>
<tabstop>connectionWidget</tabstop>
<tabstop>table</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,180 @@
/********************************************************************************
** Form generated from reading UI file 'browserwidget.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef BROWSERWIDGET_H
#define BROWSERWIDGET_H
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSplitter>
#include <QtWidgets/QTableView>
#include <QtWidgets/QTextEdit>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
#include "connectionwidget.h"
QT_BEGIN_NAMESPACE
class Ui_Browser
{
public:
QAction *insertRowAction;
QAction *deleteRowAction;
QVBoxLayout *vboxLayout;
QSplitter *splitter_2;
ConnectionWidget *connectionWidget;
QTableView *table;
QGroupBox *groupBox;
QVBoxLayout *vboxLayout1;
QTextEdit *sqlEdit;
QHBoxLayout *hboxLayout;
QSpacerItem *spacerItem;
QPushButton *clearButton;
QPushButton *submitButton;
void setupUi(QWidget *Browser)
{
if (Browser->objectName().isEmpty())
Browser->setObjectName("Browser");
Browser->resize(765, 515);
insertRowAction = new QAction(Browser);
insertRowAction->setObjectName("insertRowAction");
insertRowAction->setEnabled(false);
deleteRowAction = new QAction(Browser);
deleteRowAction->setObjectName("deleteRowAction");
deleteRowAction->setEnabled(false);
vboxLayout = new QVBoxLayout(Browser);
#ifndef Q_OS_MAC
vboxLayout->setSpacing(6);
#endif
vboxLayout->setContentsMargins(8, 8, 8, 8);
vboxLayout->setObjectName("vboxLayout");
splitter_2 = new QSplitter(Browser);
splitter_2->setObjectName("splitter_2");
QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(splitter_2->sizePolicy().hasHeightForWidth());
splitter_2->setSizePolicy(sizePolicy);
splitter_2->setOrientation(Qt::Horizontal);
connectionWidget = new ConnectionWidget(splitter_2);
connectionWidget->setObjectName("connectionWidget");
QSizePolicy sizePolicy1(QSizePolicy::Ignored, QSizePolicy::Expanding);
sizePolicy1.setHorizontalStretch(1);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(connectionWidget->sizePolicy().hasHeightForWidth());
connectionWidget->setSizePolicy(sizePolicy1);
splitter_2->addWidget(connectionWidget);
table = new QTableView(splitter_2);
table->setObjectName("table");
QSizePolicy sizePolicy2(QSizePolicy::Expanding, QSizePolicy::Expanding);
sizePolicy2.setHorizontalStretch(2);
sizePolicy2.setVerticalStretch(0);
sizePolicy2.setHeightForWidth(table->sizePolicy().hasHeightForWidth());
table->setSizePolicy(sizePolicy2);
table->setContextMenuPolicy(Qt::ActionsContextMenu);
table->setSelectionBehavior(QAbstractItemView::SelectRows);
splitter_2->addWidget(table);
vboxLayout->addWidget(splitter_2);
groupBox = new QGroupBox(Browser);
groupBox->setObjectName("groupBox");
QSizePolicy sizePolicy3(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding);
sizePolicy3.setHorizontalStretch(0);
sizePolicy3.setVerticalStretch(0);
sizePolicy3.setHeightForWidth(groupBox->sizePolicy().hasHeightForWidth());
groupBox->setSizePolicy(sizePolicy3);
groupBox->setMaximumSize(QSize(16777215, 180));
vboxLayout1 = new QVBoxLayout(groupBox);
#ifndef Q_OS_MAC
vboxLayout1->setSpacing(6);
#endif
#ifndef Q_OS_MAC
vboxLayout1->setContentsMargins(9, 9, 9, 9);
#endif
vboxLayout1->setObjectName("vboxLayout1");
sqlEdit = new QTextEdit(groupBox);
sqlEdit->setObjectName("sqlEdit");
QSizePolicy sizePolicy4(QSizePolicy::Expanding, QSizePolicy::MinimumExpanding);
sizePolicy4.setHorizontalStretch(0);
sizePolicy4.setVerticalStretch(0);
sizePolicy4.setHeightForWidth(sqlEdit->sizePolicy().hasHeightForWidth());
sqlEdit->setSizePolicy(sizePolicy4);
sqlEdit->setMinimumSize(QSize(0, 18));
sqlEdit->setBaseSize(QSize(0, 120));
vboxLayout1->addWidget(sqlEdit);
hboxLayout = new QHBoxLayout();
#ifndef Q_OS_MAC
hboxLayout->setSpacing(6);
#endif
hboxLayout->setContentsMargins(1, 1, 1, 1);
hboxLayout->setObjectName("hboxLayout");
spacerItem = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout->addItem(spacerItem);
clearButton = new QPushButton(groupBox);
clearButton->setObjectName("clearButton");
hboxLayout->addWidget(clearButton);
submitButton = new QPushButton(groupBox);
submitButton->setObjectName("submitButton");
hboxLayout->addWidget(submitButton);
vboxLayout1->addLayout(hboxLayout);
vboxLayout->addWidget(groupBox);
QWidget::setTabOrder(sqlEdit, clearButton);
QWidget::setTabOrder(clearButton, submitButton);
QWidget::setTabOrder(submitButton, connectionWidget);
QWidget::setTabOrder(connectionWidget, table);
retranslateUi(Browser);
QMetaObject::connectSlotsByName(Browser);
} // setupUi
void retranslateUi(QWidget *Browser)
{
Browser->setWindowTitle(QCoreApplication::translate("Browser", "Qt SQL Browser", nullptr));
insertRowAction->setText(QCoreApplication::translate("Browser", "&Insert Row", nullptr));
#if QT_CONFIG(statustip)
insertRowAction->setStatusTip(QCoreApplication::translate("Browser", "Inserts a new Row", nullptr));
#endif // QT_CONFIG(statustip)
deleteRowAction->setText(QCoreApplication::translate("Browser", "&Delete Row", nullptr));
#if QT_CONFIG(statustip)
deleteRowAction->setStatusTip(QCoreApplication::translate("Browser", "Deletes the current Row", nullptr));
#endif // QT_CONFIG(statustip)
groupBox->setTitle(QCoreApplication::translate("Browser", "SQL Query", nullptr));
clearButton->setText(QCoreApplication::translate("Browser", "&Clear", nullptr));
submitButton->setText(QCoreApplication::translate("Browser", "&Submit", nullptr));
} // retranslateUi
};
namespace Ui {
class Browser: public Ui_Browser {};
} // namespace Ui
QT_END_NAMESPACE
#endif // BROWSERWIDGET_H

View File

@ -0,0 +1,83 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Dialog</class>
<widget class="QDialog" name="Dialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QTreeWidget" name="treeWidget">
<column>
<property name="text">
<string/>
</property>
</column>
<column>
<property name="text">
<string>4</string>
</property>
</column>
<column>
<property name="text">
<string/>
</property>
</column>
</widget>
</item>
<item row="1" column="0">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>Dialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>Dialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -0,0 +1,74 @@
/********************************************************************************
** Form generated from reading UI file 'bug18156QTreeWidget.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef BUG18156QTREEWIDGET_H
#define BUG18156QTREEWIDGET_H
#include <QtCore/QVariant>
#include <QtWidgets/QAbstractButton>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QTreeWidget>
QT_BEGIN_NAMESPACE
class Ui_Dialog
{
public:
QGridLayout *gridLayout;
QTreeWidget *treeWidget;
QDialogButtonBox *buttonBox;
void setupUi(QDialog *Dialog)
{
if (Dialog->objectName().isEmpty())
Dialog->setObjectName("Dialog");
Dialog->resize(400, 300);
gridLayout = new QGridLayout(Dialog);
gridLayout->setObjectName("gridLayout");
treeWidget = new QTreeWidget(Dialog);
treeWidget->headerItem()->setText(0, QString());
treeWidget->headerItem()->setText(2, QString());
treeWidget->setObjectName("treeWidget");
gridLayout->addWidget(treeWidget, 0, 0, 1, 1);
buttonBox = new QDialogButtonBox(Dialog);
buttonBox->setObjectName("buttonBox");
buttonBox->setOrientation(Qt::Horizontal);
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
gridLayout->addWidget(buttonBox, 1, 0, 1, 1);
retranslateUi(Dialog);
QObject::connect(buttonBox, &QDialogButtonBox::accepted, Dialog, qOverload<>(&QDialog::accept));
QObject::connect(buttonBox, &QDialogButtonBox::rejected, Dialog, qOverload<>(&QDialog::reject));
QMetaObject::connectSlotsByName(Dialog);
} // setupUi
void retranslateUi(QDialog *Dialog)
{
Dialog->setWindowTitle(QCoreApplication::translate("Dialog", "Dialog", nullptr));
QTreeWidgetItem *___qtreewidgetitem = treeWidget->headerItem();
___qtreewidgetitem->setText(1, QCoreApplication::translate("Dialog", "4", nullptr));
} // retranslateUi
};
namespace Ui {
class Dialog: public Ui_Dialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // BUG18156QTREEWIDGET_H

View File

@ -0,0 +1,270 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>545</width>
<height>471</height>
</rect>
</property>
<property name="windowTitle">
<string>Easing curves</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0" colspan="2">
<widget class="QListWidget" name="easingCurvePicker">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>120</height>
</size>
</property>
<property name="verticalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="movement">
<enum>QListView::Static</enum>
</property>
<property name="isWrapping" stdset="0">
<bool>false</bool>
</property>
<property name="viewMode">
<enum>QListView::IconMode</enum>
</property>
<property name="selectionRectVisible">
<bool>false</bool>
</property>
</widget>
</item>
<item row="1" column="0">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="title">
<string>Path type</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QRadioButton" name="lineRadio">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>40</height>
</size>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="text">
<string>Line</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
<attribute name="buttonGroup">
<string>buttonGroup</string>
</attribute>
</widget>
</item>
<item row="1" column="0">
<widget class="QRadioButton" name="circleRadio">
<property name="maximumSize">
<size>
<width>16777215</width>
<height>40</height>
</size>
</property>
<property name="text">
<string>Circle</string>
</property>
<attribute name="buttonGroup">
<string>buttonGroup</string>
</attribute>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Properties</string>
</property>
<layout class="QFormLayout" name="formLayout">
<property name="fieldGrowthPolicy">
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
</property>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="text">
<string>Period</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QDoubleSpinBox" name="periodSpinBox">
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="minimum">
<double>-1.000000000000000</double>
</property>
<property name="singleStep">
<double>0.100000000000000</double>
</property>
<property name="value">
<double>-1.000000000000000</double>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QDoubleSpinBox" name="amplitudeSpinBox">
<property name="enabled">
<bool>false</bool>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="minimum">
<double>-1.000000000000000</double>
</property>
<property name="singleStep">
<double>0.100000000000000</double>
</property>
<property name="value">
<double>-1.000000000000000</double>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_3">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="text">
<string>Overshoot</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QDoubleSpinBox" name="overshootSpinBox">
<property name="enabled">
<bool>false</bool>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="minimum">
<double>-1.000000000000000</double>
</property>
<property name="singleStep">
<double>0.100000000000000</double>
</property>
<property name="value">
<double>-1.000000000000000</double>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_2">
<property name="minimumSize">
<size>
<width>0</width>
<height>30</height>
</size>
</property>
<property name="text">
<string>Amplitude</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="1" column="1">
<widget class="QGraphicsView" name="graphicsView">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
<buttongroups>
<buttongroup name="buttonGroup"/>
</buttongroups>
</ui>

View File

@ -0,0 +1,216 @@
/********************************************************************************
** Form generated from reading UI file 'buttongroup.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef BUTTONGROUP_H
#define BUTTONGROUP_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QDoubleSpinBox>
#include <QtWidgets/QFormLayout>
#include <QtWidgets/QGraphicsView>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QLabel>
#include <QtWidgets/QListWidget>
#include <QtWidgets/QRadioButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_Form
{
public:
QGridLayout *gridLayout;
QListWidget *easingCurvePicker;
QVBoxLayout *verticalLayout;
QGroupBox *groupBox_2;
QGridLayout *gridLayout_2;
QRadioButton *lineRadio;
QRadioButton *circleRadio;
QGroupBox *groupBox;
QFormLayout *formLayout;
QLabel *label;
QDoubleSpinBox *periodSpinBox;
QDoubleSpinBox *amplitudeSpinBox;
QLabel *label_3;
QDoubleSpinBox *overshootSpinBox;
QLabel *label_2;
QSpacerItem *verticalSpacer;
QGraphicsView *graphicsView;
QButtonGroup *buttonGroup;
void setupUi(QWidget *Form)
{
if (Form->objectName().isEmpty())
Form->setObjectName("Form");
Form->resize(545, 471);
gridLayout = new QGridLayout(Form);
gridLayout->setObjectName("gridLayout");
easingCurvePicker = new QListWidget(Form);
easingCurvePicker->setObjectName("easingCurvePicker");
QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(easingCurvePicker->sizePolicy().hasHeightForWidth());
easingCurvePicker->setSizePolicy(sizePolicy);
easingCurvePicker->setMaximumSize(QSize(16777215, 120));
easingCurvePicker->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
easingCurvePicker->setMovement(QListView::Static);
easingCurvePicker->setProperty("isWrapping", QVariant(false));
easingCurvePicker->setViewMode(QListView::IconMode);
easingCurvePicker->setSelectionRectVisible(false);
gridLayout->addWidget(easingCurvePicker, 0, 0, 1, 2);
verticalLayout = new QVBoxLayout();
verticalLayout->setObjectName("verticalLayout");
groupBox_2 = new QGroupBox(Form);
groupBox_2->setObjectName("groupBox_2");
groupBox_2->setMaximumSize(QSize(16777215, 16777215));
gridLayout_2 = new QGridLayout(groupBox_2);
gridLayout_2->setObjectName("gridLayout_2");
lineRadio = new QRadioButton(groupBox_2);
buttonGroup = new QButtonGroup(Form);
buttonGroup->setObjectName("buttonGroup");
buttonGroup->addButton(lineRadio);
lineRadio->setObjectName("lineRadio");
lineRadio->setMaximumSize(QSize(16777215, 40));
lineRadio->setLayoutDirection(Qt::LeftToRight);
lineRadio->setChecked(true);
gridLayout_2->addWidget(lineRadio, 0, 0, 1, 1);
circleRadio = new QRadioButton(groupBox_2);
buttonGroup->addButton(circleRadio);
circleRadio->setObjectName("circleRadio");
circleRadio->setMaximumSize(QSize(16777215, 40));
gridLayout_2->addWidget(circleRadio, 1, 0, 1, 1);
verticalLayout->addWidget(groupBox_2);
groupBox = new QGroupBox(Form);
groupBox->setObjectName("groupBox");
QSizePolicy sizePolicy1(QSizePolicy::Fixed, QSizePolicy::Preferred);
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(groupBox->sizePolicy().hasHeightForWidth());
groupBox->setSizePolicy(sizePolicy1);
formLayout = new QFormLayout(groupBox);
formLayout->setObjectName("formLayout");
formLayout->setFieldGrowthPolicy(QFormLayout::AllNonFixedFieldsGrow);
label = new QLabel(groupBox);
label->setObjectName("label");
QSizePolicy sizePolicy2(QSizePolicy::Preferred, QSizePolicy::Preferred);
sizePolicy2.setHorizontalStretch(0);
sizePolicy2.setVerticalStretch(0);
sizePolicy2.setHeightForWidth(label->sizePolicy().hasHeightForWidth());
label->setSizePolicy(sizePolicy2);
label->setMinimumSize(QSize(0, 30));
formLayout->setWidget(0, QFormLayout::LabelRole, label);
periodSpinBox = new QDoubleSpinBox(groupBox);
periodSpinBox->setObjectName("periodSpinBox");
periodSpinBox->setEnabled(false);
QSizePolicy sizePolicy3(QSizePolicy::Minimum, QSizePolicy::Fixed);
sizePolicy3.setHorizontalStretch(0);
sizePolicy3.setVerticalStretch(0);
sizePolicy3.setHeightForWidth(periodSpinBox->sizePolicy().hasHeightForWidth());
periodSpinBox->setSizePolicy(sizePolicy3);
periodSpinBox->setMinimumSize(QSize(0, 30));
periodSpinBox->setMinimum(-1.000000000000000);
periodSpinBox->setSingleStep(0.100000000000000);
periodSpinBox->setValue(-1.000000000000000);
formLayout->setWidget(0, QFormLayout::FieldRole, periodSpinBox);
amplitudeSpinBox = new QDoubleSpinBox(groupBox);
amplitudeSpinBox->setObjectName("amplitudeSpinBox");
amplitudeSpinBox->setEnabled(false);
amplitudeSpinBox->setMinimumSize(QSize(0, 30));
amplitudeSpinBox->setMinimum(-1.000000000000000);
amplitudeSpinBox->setSingleStep(0.100000000000000);
amplitudeSpinBox->setValue(-1.000000000000000);
formLayout->setWidget(2, QFormLayout::FieldRole, amplitudeSpinBox);
label_3 = new QLabel(groupBox);
label_3->setObjectName("label_3");
label_3->setMinimumSize(QSize(0, 30));
formLayout->setWidget(4, QFormLayout::LabelRole, label_3);
overshootSpinBox = new QDoubleSpinBox(groupBox);
overshootSpinBox->setObjectName("overshootSpinBox");
overshootSpinBox->setEnabled(false);
overshootSpinBox->setMinimumSize(QSize(0, 30));
overshootSpinBox->setMinimum(-1.000000000000000);
overshootSpinBox->setSingleStep(0.100000000000000);
overshootSpinBox->setValue(-1.000000000000000);
formLayout->setWidget(4, QFormLayout::FieldRole, overshootSpinBox);
label_2 = new QLabel(groupBox);
label_2->setObjectName("label_2");
label_2->setMinimumSize(QSize(0, 30));
formLayout->setWidget(2, QFormLayout::LabelRole, label_2);
verticalLayout->addWidget(groupBox);
verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
verticalLayout->addItem(verticalSpacer);
gridLayout->addLayout(verticalLayout, 1, 0, 1, 1);
graphicsView = new QGraphicsView(Form);
graphicsView->setObjectName("graphicsView");
QSizePolicy sizePolicy4(QSizePolicy::Expanding, QSizePolicy::Expanding);
sizePolicy4.setHorizontalStretch(0);
sizePolicy4.setVerticalStretch(0);
sizePolicy4.setHeightForWidth(graphicsView->sizePolicy().hasHeightForWidth());
graphicsView->setSizePolicy(sizePolicy4);
gridLayout->addWidget(graphicsView, 1, 1, 1, 1);
retranslateUi(Form);
QMetaObject::connectSlotsByName(Form);
} // setupUi
void retranslateUi(QWidget *Form)
{
Form->setWindowTitle(QCoreApplication::translate("Form", "Easing curves", nullptr));
groupBox_2->setTitle(QCoreApplication::translate("Form", "Path type", nullptr));
lineRadio->setText(QCoreApplication::translate("Form", "Line", nullptr));
circleRadio->setText(QCoreApplication::translate("Form", "Circle", nullptr));
groupBox->setTitle(QCoreApplication::translate("Form", "Properties", nullptr));
label->setText(QCoreApplication::translate("Form", "Period", nullptr));
label_3->setText(QCoreApplication::translate("Form", "Overshoot", nullptr));
label_2->setText(QCoreApplication::translate("Form", "Amplitude", nullptr));
} // retranslateUi
};
namespace Ui {
class Form: public Ui_Form {};
} // namespace Ui
QT_END_NAMESPACE
#endif // BUTTONGROUP_H

View File

@ -0,0 +1,406 @@
<ui version="4.0" >
<class>Calculator</class>
<widget class="QWidget" name="Calculator" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>314</width>
<height>301</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>314</width>
<height>301</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>314</width>
<height>301</height>
</size>
</property>
<property name="windowTitle" >
<string>Calculator</string>
</property>
<widget class="QToolButton" name="backspaceButton" >
<property name="geometry" >
<rect>
<x>10</x>
<y>50</y>
<width>91</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>Backspace</string>
</property>
</widget>
<widget class="QToolButton" name="clearButton" >
<property name="geometry" >
<rect>
<x>110</x>
<y>50</y>
<width>91</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>Clear</string>
</property>
</widget>
<widget class="QToolButton" name="clearAllButton" >
<property name="geometry" >
<rect>
<x>210</x>
<y>50</y>
<width>91</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>Clear All</string>
</property>
</widget>
<widget class="QToolButton" name="clearMemoryButton" >
<property name="geometry" >
<rect>
<x>10</x>
<y>100</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>MC</string>
</property>
</widget>
<widget class="QToolButton" name="readMemoryButton" >
<property name="geometry" >
<rect>
<x>10</x>
<y>150</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>MR</string>
</property>
</widget>
<widget class="QToolButton" name="setMemoryButton" >
<property name="geometry" >
<rect>
<x>10</x>
<y>200</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>MS</string>
</property>
</widget>
<widget class="QToolButton" name="addToMemoryButton" >
<property name="geometry" >
<rect>
<x>10</x>
<y>250</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>M+</string>
</property>
</widget>
<widget class="QToolButton" name="sevenButton" >
<property name="geometry" >
<rect>
<x>60</x>
<y>100</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>7</string>
</property>
</widget>
<widget class="QToolButton" name="eightButton" >
<property name="geometry" >
<rect>
<x>110</x>
<y>100</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>8</string>
</property>
</widget>
<widget class="QToolButton" name="nineButton" >
<property name="geometry" >
<rect>
<x>160</x>
<y>100</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>9</string>
</property>
</widget>
<widget class="QToolButton" name="fourButton" >
<property name="geometry" >
<rect>
<x>60</x>
<y>150</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>4</string>
</property>
</widget>
<widget class="QToolButton" name="fiveButton" >
<property name="geometry" >
<rect>
<x>110</x>
<y>150</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>5</string>
</property>
</widget>
<widget class="QToolButton" name="sixButton" >
<property name="geometry" >
<rect>
<x>160</x>
<y>150</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>6</string>
</property>
</widget>
<widget class="QToolButton" name="oneButton" >
<property name="geometry" >
<rect>
<x>60</x>
<y>200</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>1</string>
</property>
</widget>
<widget class="QToolButton" name="twoButton" >
<property name="geometry" >
<rect>
<x>110</x>
<y>200</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>2</string>
</property>
</widget>
<widget class="QToolButton" name="threeButton" >
<property name="geometry" >
<rect>
<x>160</x>
<y>200</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>3</string>
</property>
</widget>
<widget class="QToolButton" name="zeroButton" >
<property name="geometry" >
<rect>
<x>60</x>
<y>250</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>0</string>
</property>
</widget>
<widget class="QToolButton" name="pointButton" >
<property name="geometry" >
<rect>
<x>110</x>
<y>250</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>.</string>
</property>
</widget>
<widget class="QToolButton" name="changeSignButton" >
<property name="geometry" >
<rect>
<x>160</x>
<y>250</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>+-</string>
</property>
</widget>
<widget class="QToolButton" name="plusButton" >
<property name="geometry" >
<rect>
<x>210</x>
<y>250</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>+</string>
</property>
</widget>
<widget class="QToolButton" name="divisionButton" >
<property name="geometry" >
<rect>
<x>210</x>
<y>100</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>/</string>
</property>
</widget>
<widget class="QToolButton" name="timesButton" >
<property name="geometry" >
<rect>
<x>210</x>
<y>150</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>*</string>
</property>
</widget>
<widget class="QToolButton" name="minusButton" >
<property name="geometry" >
<rect>
<x>210</x>
<y>200</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>-</string>
</property>
</widget>
<widget class="QToolButton" name="squareRootButton" >
<property name="geometry" >
<rect>
<x>260</x>
<y>100</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>Sqrt</string>
</property>
</widget>
<widget class="QToolButton" name="powerButton" >
<property name="geometry" >
<rect>
<x>260</x>
<y>150</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>x^2</string>
</property>
</widget>
<widget class="QToolButton" name="reciprocalButton" >
<property name="geometry" >
<rect>
<x>260</x>
<y>200</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>1/x</string>
</property>
</widget>
<widget class="QToolButton" name="equalButton" >
<property name="geometry" >
<rect>
<x>260</x>
<y>250</y>
<width>41</width>
<height>41</height>
</rect>
</property>
<property name="text" >
<string>=</string>
</property>
</widget>
<widget class="QLineEdit" name="display" >
<property name="geometry" >
<rect>
<x>10</x>
<y>10</y>
<width>291</width>
<height>31</height>
</rect>
</property>
<property name="maxLength" >
<number>15</number>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="readOnly" >
<bool>true</bool>
</property>
</widget>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,197 @@
/********************************************************************************
** Form generated from reading UI file 'calculator.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef CALCULATOR_H
#define CALCULATOR_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QToolButton>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_Calculator
{
public:
QToolButton *backspaceButton;
QToolButton *clearButton;
QToolButton *clearAllButton;
QToolButton *clearMemoryButton;
QToolButton *readMemoryButton;
QToolButton *setMemoryButton;
QToolButton *addToMemoryButton;
QToolButton *sevenButton;
QToolButton *eightButton;
QToolButton *nineButton;
QToolButton *fourButton;
QToolButton *fiveButton;
QToolButton *sixButton;
QToolButton *oneButton;
QToolButton *twoButton;
QToolButton *threeButton;
QToolButton *zeroButton;
QToolButton *pointButton;
QToolButton *changeSignButton;
QToolButton *plusButton;
QToolButton *divisionButton;
QToolButton *timesButton;
QToolButton *minusButton;
QToolButton *squareRootButton;
QToolButton *powerButton;
QToolButton *reciprocalButton;
QToolButton *equalButton;
QLineEdit *display;
void setupUi(QWidget *Calculator)
{
if (Calculator->objectName().isEmpty())
Calculator->setObjectName("Calculator");
Calculator->resize(314, 301);
QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(Calculator->sizePolicy().hasHeightForWidth());
Calculator->setSizePolicy(sizePolicy);
Calculator->setMinimumSize(QSize(314, 301));
Calculator->setMaximumSize(QSize(314, 301));
backspaceButton = new QToolButton(Calculator);
backspaceButton->setObjectName("backspaceButton");
backspaceButton->setGeometry(QRect(10, 50, 91, 41));
clearButton = new QToolButton(Calculator);
clearButton->setObjectName("clearButton");
clearButton->setGeometry(QRect(110, 50, 91, 41));
clearAllButton = new QToolButton(Calculator);
clearAllButton->setObjectName("clearAllButton");
clearAllButton->setGeometry(QRect(210, 50, 91, 41));
clearMemoryButton = new QToolButton(Calculator);
clearMemoryButton->setObjectName("clearMemoryButton");
clearMemoryButton->setGeometry(QRect(10, 100, 41, 41));
readMemoryButton = new QToolButton(Calculator);
readMemoryButton->setObjectName("readMemoryButton");
readMemoryButton->setGeometry(QRect(10, 150, 41, 41));
setMemoryButton = new QToolButton(Calculator);
setMemoryButton->setObjectName("setMemoryButton");
setMemoryButton->setGeometry(QRect(10, 200, 41, 41));
addToMemoryButton = new QToolButton(Calculator);
addToMemoryButton->setObjectName("addToMemoryButton");
addToMemoryButton->setGeometry(QRect(10, 250, 41, 41));
sevenButton = new QToolButton(Calculator);
sevenButton->setObjectName("sevenButton");
sevenButton->setGeometry(QRect(60, 100, 41, 41));
eightButton = new QToolButton(Calculator);
eightButton->setObjectName("eightButton");
eightButton->setGeometry(QRect(110, 100, 41, 41));
nineButton = new QToolButton(Calculator);
nineButton->setObjectName("nineButton");
nineButton->setGeometry(QRect(160, 100, 41, 41));
fourButton = new QToolButton(Calculator);
fourButton->setObjectName("fourButton");
fourButton->setGeometry(QRect(60, 150, 41, 41));
fiveButton = new QToolButton(Calculator);
fiveButton->setObjectName("fiveButton");
fiveButton->setGeometry(QRect(110, 150, 41, 41));
sixButton = new QToolButton(Calculator);
sixButton->setObjectName("sixButton");
sixButton->setGeometry(QRect(160, 150, 41, 41));
oneButton = new QToolButton(Calculator);
oneButton->setObjectName("oneButton");
oneButton->setGeometry(QRect(60, 200, 41, 41));
twoButton = new QToolButton(Calculator);
twoButton->setObjectName("twoButton");
twoButton->setGeometry(QRect(110, 200, 41, 41));
threeButton = new QToolButton(Calculator);
threeButton->setObjectName("threeButton");
threeButton->setGeometry(QRect(160, 200, 41, 41));
zeroButton = new QToolButton(Calculator);
zeroButton->setObjectName("zeroButton");
zeroButton->setGeometry(QRect(60, 250, 41, 41));
pointButton = new QToolButton(Calculator);
pointButton->setObjectName("pointButton");
pointButton->setGeometry(QRect(110, 250, 41, 41));
changeSignButton = new QToolButton(Calculator);
changeSignButton->setObjectName("changeSignButton");
changeSignButton->setGeometry(QRect(160, 250, 41, 41));
plusButton = new QToolButton(Calculator);
plusButton->setObjectName("plusButton");
plusButton->setGeometry(QRect(210, 250, 41, 41));
divisionButton = new QToolButton(Calculator);
divisionButton->setObjectName("divisionButton");
divisionButton->setGeometry(QRect(210, 100, 41, 41));
timesButton = new QToolButton(Calculator);
timesButton->setObjectName("timesButton");
timesButton->setGeometry(QRect(210, 150, 41, 41));
minusButton = new QToolButton(Calculator);
minusButton->setObjectName("minusButton");
minusButton->setGeometry(QRect(210, 200, 41, 41));
squareRootButton = new QToolButton(Calculator);
squareRootButton->setObjectName("squareRootButton");
squareRootButton->setGeometry(QRect(260, 100, 41, 41));
powerButton = new QToolButton(Calculator);
powerButton->setObjectName("powerButton");
powerButton->setGeometry(QRect(260, 150, 41, 41));
reciprocalButton = new QToolButton(Calculator);
reciprocalButton->setObjectName("reciprocalButton");
reciprocalButton->setGeometry(QRect(260, 200, 41, 41));
equalButton = new QToolButton(Calculator);
equalButton->setObjectName("equalButton");
equalButton->setGeometry(QRect(260, 250, 41, 41));
display = new QLineEdit(Calculator);
display->setObjectName("display");
display->setGeometry(QRect(10, 10, 291, 31));
display->setMaxLength(15);
display->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
display->setReadOnly(true);
retranslateUi(Calculator);
QMetaObject::connectSlotsByName(Calculator);
} // setupUi
void retranslateUi(QWidget *Calculator)
{
Calculator->setWindowTitle(QCoreApplication::translate("Calculator", "Calculator", nullptr));
backspaceButton->setText(QCoreApplication::translate("Calculator", "Backspace", nullptr));
clearButton->setText(QCoreApplication::translate("Calculator", "Clear", nullptr));
clearAllButton->setText(QCoreApplication::translate("Calculator", "Clear All", nullptr));
clearMemoryButton->setText(QCoreApplication::translate("Calculator", "MC", nullptr));
readMemoryButton->setText(QCoreApplication::translate("Calculator", "MR", nullptr));
setMemoryButton->setText(QCoreApplication::translate("Calculator", "MS", nullptr));
addToMemoryButton->setText(QCoreApplication::translate("Calculator", "M+", nullptr));
sevenButton->setText(QCoreApplication::translate("Calculator", "7", nullptr));
eightButton->setText(QCoreApplication::translate("Calculator", "8", nullptr));
nineButton->setText(QCoreApplication::translate("Calculator", "9", nullptr));
fourButton->setText(QCoreApplication::translate("Calculator", "4", nullptr));
fiveButton->setText(QCoreApplication::translate("Calculator", "5", nullptr));
sixButton->setText(QCoreApplication::translate("Calculator", "6", nullptr));
oneButton->setText(QCoreApplication::translate("Calculator", "1", nullptr));
twoButton->setText(QCoreApplication::translate("Calculator", "2", nullptr));
threeButton->setText(QCoreApplication::translate("Calculator", "3", nullptr));
zeroButton->setText(QCoreApplication::translate("Calculator", "0", nullptr));
pointButton->setText(QCoreApplication::translate("Calculator", ".", nullptr));
changeSignButton->setText(QCoreApplication::translate("Calculator", "+-", nullptr));
plusButton->setText(QCoreApplication::translate("Calculator", "+", nullptr));
divisionButton->setText(QCoreApplication::translate("Calculator", "/", nullptr));
timesButton->setText(QCoreApplication::translate("Calculator", "*", nullptr));
minusButton->setText(QCoreApplication::translate("Calculator", "-", nullptr));
squareRootButton->setText(QCoreApplication::translate("Calculator", "Sqrt", nullptr));
powerButton->setText(QCoreApplication::translate("Calculator", "x^2", nullptr));
reciprocalButton->setText(QCoreApplication::translate("Calculator", "1/x", nullptr));
equalButton->setText(QCoreApplication::translate("Calculator", "=", nullptr));
} // retranslateUi
};
namespace Ui {
class Calculator: public Ui_Calculator {};
} // namespace Ui
QT_END_NAMESPACE
#endif // CALCULATOR_H

View File

@ -0,0 +1,303 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>CalculatorForm</class>
<widget class="QWidget" name="CalculatorForm" >
<property name="objectName" >
<string notr="true" >CalculatorForm</string>
</property>
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>276</width>
<height>98</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle" >
<string>Calculator Builder</string>
</property>
<layout class="QGridLayout" >
<property name="objectName" >
<string notr="true" />
</property>
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<layout class="QHBoxLayout" >
<property name="objectName" >
<string notr="true" />
</property>
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QVBoxLayout" >
<property name="objectName" >
<string notr="true" />
</property>
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="label" >
<property name="objectName" >
<string notr="true" >label</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>1</y>
<width>45</width>
<height>19</height>
</rect>
</property>
<property name="text" >
<string>Input 1</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="inputSpinBox1" >
<property name="objectName" >
<string notr="true" >inputSpinBox1</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>26</y>
<width>45</width>
<height>25</height>
</rect>
</property>
<property name="mouseTracking" >
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="label_3" >
<property name="objectName" >
<string notr="true" >label_3</string>
</property>
<property name="geometry" >
<rect>
<x>54</x>
<y>1</y>
<width>7</width>
<height>52</height>
</rect>
</property>
<property name="text" >
<string>+</string>
</property>
<property name="alignment" >
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" >
<property name="objectName" >
<string notr="true" />
</property>
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="label_2" >
<property name="objectName" >
<string notr="true" >label_2</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>1</y>
<width>45</width>
<height>19</height>
</rect>
</property>
<property name="text" >
<string>Input 2</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="inputSpinBox2" >
<property name="objectName" >
<string notr="true" >inputSpinBox2</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>26</y>
<width>45</width>
<height>25</height>
</rect>
</property>
<property name="mouseTracking" >
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="label_3_2" >
<property name="objectName" >
<string notr="true" >label_3_2</string>
</property>
<property name="geometry" >
<rect>
<x>120</x>
<y>1</y>
<width>7</width>
<height>52</height>
</rect>
</property>
<property name="text" >
<string>=</string>
</property>
<property name="alignment" >
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" >
<property name="objectName" >
<string notr="true" />
</property>
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="label_2_2_2" >
<property name="objectName" >
<string notr="true" >label_2_2_2</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>1</y>
<width>37</width>
<height>17</height>
</rect>
</property>
<property name="text" >
<string>Output</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="outputWidget" >
<property name="objectName" >
<string notr="true" >outputWidget</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>24</y>
<width>37</width>
<height>27</height>
</rect>
</property>
<property name="frameShape" >
<enum>QFrame::Box</enum>
</property>
<property name="frameShadow" >
<enum>QFrame::Sunken</enum>
</property>
<property name="text" >
<string>0</string>
</property>
<property name="alignment" >
<set>Qt::AlignAbsolute|Qt::AlignBottom|Qt::AlignCenter|Qt::AlignHCenter|Qt::AlignHorizontal_Mask|Qt::AlignJustify|Qt::AlignLeading|Qt::AlignLeft|Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing|Qt::AlignVCenter|Qt::AlignVertical_Mask</set>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item row="1" column="0" >
<spacer>
<property name="objectName" >
<string notr="true" >verticalSpacer</string>
</property>
<property name="geometry" >
<rect>
<x>85</x>
<y>69</y>
<width>20</width>
<height>20</height>
</rect>
</property>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1" >
<spacer>
<property name="objectName" >
<string notr="true" >horizontalSpacer</string>
</property>
<property name="geometry" >
<rect>
<x>188</x>
<y>26</y>
<width>79</width>
<height>20</height>
</rect>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<pixmapfunction></pixmapfunction>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,190 @@
/********************************************************************************
** Form generated from reading UI file 'calculatorform.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef CALCULATORFORM_H
#define CALCULATORFORM_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_CalculatorForm
{
public:
QGridLayout *gridLayout;
QHBoxLayout *hboxLayout;
QVBoxLayout *vboxLayout;
QLabel *label;
QSpinBox *inputSpinBox1;
QLabel *label_3;
QVBoxLayout *vboxLayout1;
QLabel *label_2;
QSpinBox *inputSpinBox2;
QLabel *label_3_2;
QVBoxLayout *vboxLayout2;
QLabel *label_2_2_2;
QLabel *outputWidget;
QSpacerItem *spacerItem;
QSpacerItem *spacerItem1;
void setupUi(QWidget *CalculatorForm)
{
if (CalculatorForm->objectName().isEmpty())
CalculatorForm->setObjectName("CalculatorForm");
CalculatorForm->resize(276, 98);
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(CalculatorForm->sizePolicy().hasHeightForWidth());
CalculatorForm->setSizePolicy(sizePolicy);
gridLayout = new QGridLayout(CalculatorForm);
#ifndef Q_OS_MAC
gridLayout->setSpacing(6);
#endif
#ifndef Q_OS_MAC
gridLayout->setContentsMargins(9, 9, 9, 9);
#endif
gridLayout->setObjectName("gridLayout");
gridLayout->setObjectName(QString::fromUtf8(""));
hboxLayout = new QHBoxLayout();
#ifndef Q_OS_MAC
hboxLayout->setSpacing(6);
#endif
hboxLayout->setContentsMargins(1, 1, 1, 1);
hboxLayout->setObjectName("hboxLayout");
hboxLayout->setObjectName(QString::fromUtf8(""));
vboxLayout = new QVBoxLayout();
#ifndef Q_OS_MAC
vboxLayout->setSpacing(6);
#endif
vboxLayout->setContentsMargins(1, 1, 1, 1);
vboxLayout->setObjectName("vboxLayout");
vboxLayout->setObjectName(QString::fromUtf8(""));
label = new QLabel(CalculatorForm);
label->setObjectName("label");
label->setGeometry(QRect(1, 1, 45, 19));
vboxLayout->addWidget(label);
inputSpinBox1 = new QSpinBox(CalculatorForm);
inputSpinBox1->setObjectName("inputSpinBox1");
inputSpinBox1->setGeometry(QRect(1, 26, 45, 25));
inputSpinBox1->setMouseTracking(true);
vboxLayout->addWidget(inputSpinBox1);
hboxLayout->addLayout(vboxLayout);
label_3 = new QLabel(CalculatorForm);
label_3->setObjectName("label_3");
label_3->setGeometry(QRect(54, 1, 7, 52));
label_3->setAlignment(Qt::AlignCenter);
hboxLayout->addWidget(label_3);
vboxLayout1 = new QVBoxLayout();
#ifndef Q_OS_MAC
vboxLayout1->setSpacing(6);
#endif
vboxLayout1->setContentsMargins(1, 1, 1, 1);
vboxLayout1->setObjectName("vboxLayout1");
vboxLayout1->setObjectName(QString::fromUtf8(""));
label_2 = new QLabel(CalculatorForm);
label_2->setObjectName("label_2");
label_2->setGeometry(QRect(1, 1, 45, 19));
vboxLayout1->addWidget(label_2);
inputSpinBox2 = new QSpinBox(CalculatorForm);
inputSpinBox2->setObjectName("inputSpinBox2");
inputSpinBox2->setGeometry(QRect(1, 26, 45, 25));
inputSpinBox2->setMouseTracking(true);
vboxLayout1->addWidget(inputSpinBox2);
hboxLayout->addLayout(vboxLayout1);
label_3_2 = new QLabel(CalculatorForm);
label_3_2->setObjectName("label_3_2");
label_3_2->setGeometry(QRect(120, 1, 7, 52));
label_3_2->setAlignment(Qt::AlignCenter);
hboxLayout->addWidget(label_3_2);
vboxLayout2 = new QVBoxLayout();
#ifndef Q_OS_MAC
vboxLayout2->setSpacing(6);
#endif
vboxLayout2->setContentsMargins(1, 1, 1, 1);
vboxLayout2->setObjectName("vboxLayout2");
vboxLayout2->setObjectName(QString::fromUtf8(""));
label_2_2_2 = new QLabel(CalculatorForm);
label_2_2_2->setObjectName("label_2_2_2");
label_2_2_2->setGeometry(QRect(1, 1, 37, 17));
vboxLayout2->addWidget(label_2_2_2);
outputWidget = new QLabel(CalculatorForm);
outputWidget->setObjectName("outputWidget");
outputWidget->setGeometry(QRect(1, 24, 37, 27));
outputWidget->setFrameShape(QFrame::Box);
outputWidget->setFrameShadow(QFrame::Sunken);
outputWidget->setAlignment(Qt::AlignAbsolute|Qt::AlignBottom|Qt::AlignCenter|Qt::AlignHCenter|Qt::AlignHorizontal_Mask|Qt::AlignJustify|Qt::AlignLeading|Qt::AlignLeft|Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing|Qt::AlignVCenter|Qt::AlignVertical_Mask);
vboxLayout2->addWidget(outputWidget);
hboxLayout->addLayout(vboxLayout2);
gridLayout->addLayout(hboxLayout, 0, 0, 1, 1);
spacerItem = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout->addItem(spacerItem, 1, 0, 1, 1);
spacerItem1 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout->addItem(spacerItem1, 0, 1, 1, 1);
retranslateUi(CalculatorForm);
QMetaObject::connectSlotsByName(CalculatorForm);
} // setupUi
void retranslateUi(QWidget *CalculatorForm)
{
CalculatorForm->setWindowTitle(QCoreApplication::translate("CalculatorForm", "Calculator Builder", nullptr));
label->setText(QCoreApplication::translate("CalculatorForm", "Input 1", nullptr));
label_3->setText(QCoreApplication::translate("CalculatorForm", "+", nullptr));
label_2->setText(QCoreApplication::translate("CalculatorForm", "Input 2", nullptr));
label_3_2->setText(QCoreApplication::translate("CalculatorForm", "=", nullptr));
label_2_2_2->setText(QCoreApplication::translate("CalculatorForm", "Output", nullptr));
outputWidget->setText(QCoreApplication::translate("CalculatorForm", "0", nullptr));
} // retranslateUi
};
namespace Ui {
class CalculatorForm: public Ui_CalculatorForm {};
} // namespace Ui
QT_END_NAMESPACE
#endif // CALCULATORFORM_H

View File

@ -0,0 +1,85 @@
<ui version="4.0" >
<class>CertificateInfo</class>
<widget class="QDialog" name="CertificateInfo" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>397</height>
</rect>
</property>
<property name="windowTitle" >
<string>Display Certificate Information</string>
</property>
<layout class="QVBoxLayout" >
<item>
<widget class="QGroupBox" name="groupBox" >
<property name="title" >
<string>Certification Path</string>
</property>
<layout class="QHBoxLayout" >
<item>
<widget class="QListWidget" name="certificationPathView" />
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2" >
<property name="title" >
<string>Certificate Information</string>
</property>
<layout class="QHBoxLayout" >
<item>
<widget class="QListWidget" name="certificateInfoView" />
</item>
</layout>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="standardButtons" >
<set>QDialogButtonBox::Close</set>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>clicked(QAbstractButton*)</signal>
<receiver>CertificateInfo</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>343</x>
<y>374</y>
</hint>
<hint type="destinationlabel" >
<x>352</x>
<y>422</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -0,0 +1,107 @@
/********************************************************************************
** Form generated from reading UI file 'certificateinfo.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef CERTIFICATEINFO_H
#define CERTIFICATEINFO_H
#include <QtCore/QVariant>
#include <QtWidgets/QAbstractButton>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QListWidget>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QVBoxLayout>
QT_BEGIN_NAMESPACE
class Ui_CertificateInfo
{
public:
QVBoxLayout *vboxLayout;
QGroupBox *groupBox;
QHBoxLayout *hboxLayout;
QListWidget *certificationPathView;
QGroupBox *groupBox_2;
QHBoxLayout *hboxLayout1;
QListWidget *certificateInfoView;
QHBoxLayout *hboxLayout2;
QSpacerItem *spacerItem;
QDialogButtonBox *buttonBox;
void setupUi(QDialog *CertificateInfo)
{
if (CertificateInfo->objectName().isEmpty())
CertificateInfo->setObjectName("CertificateInfo");
CertificateInfo->resize(400, 397);
vboxLayout = new QVBoxLayout(CertificateInfo);
vboxLayout->setObjectName("vboxLayout");
groupBox = new QGroupBox(CertificateInfo);
groupBox->setObjectName("groupBox");
hboxLayout = new QHBoxLayout(groupBox);
hboxLayout->setObjectName("hboxLayout");
certificationPathView = new QListWidget(groupBox);
certificationPathView->setObjectName("certificationPathView");
hboxLayout->addWidget(certificationPathView);
vboxLayout->addWidget(groupBox);
groupBox_2 = new QGroupBox(CertificateInfo);
groupBox_2->setObjectName("groupBox_2");
hboxLayout1 = new QHBoxLayout(groupBox_2);
hboxLayout1->setObjectName("hboxLayout1");
certificateInfoView = new QListWidget(groupBox_2);
certificateInfoView->setObjectName("certificateInfoView");
hboxLayout1->addWidget(certificateInfoView);
vboxLayout->addWidget(groupBox_2);
hboxLayout2 = new QHBoxLayout();
hboxLayout2->setObjectName("hboxLayout2");
spacerItem = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout2->addItem(spacerItem);
buttonBox = new QDialogButtonBox(CertificateInfo);
buttonBox->setObjectName("buttonBox");
buttonBox->setStandardButtons(QDialogButtonBox::Close);
hboxLayout2->addWidget(buttonBox);
vboxLayout->addLayout(hboxLayout2);
retranslateUi(CertificateInfo);
QObject::connect(buttonBox, &QDialogButtonBox::clicked, CertificateInfo, qOverload<>(&QDialog::accept));
QMetaObject::connectSlotsByName(CertificateInfo);
} // setupUi
void retranslateUi(QDialog *CertificateInfo)
{
CertificateInfo->setWindowTitle(QCoreApplication::translate("CertificateInfo", "Display Certificate Information", nullptr));
groupBox->setTitle(QCoreApplication::translate("CertificateInfo", "Certification Path", nullptr));
groupBox_2->setTitle(QCoreApplication::translate("CertificateInfo", "Certificate Information", nullptr));
} // retranslateUi
};
namespace Ui {
class CertificateInfo: public Ui_CertificateInfo {};
} // namespace Ui
QT_END_NAMESPACE
#endif // CERTIFICATEINFO_H

View File

@ -0,0 +1,79 @@
<ui version="4.0" >
<class>ChatDialog</class>
<widget class="QDialog" name="ChatDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>513</width>
<height>349</height>
</rect>
</property>
<property name="windowTitle" >
<string>Chat</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QTextEdit" name="textEdit" >
<property name="focusPolicy" >
<enum>Qt::NoFocus</enum>
</property>
<property name="readOnly" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QListWidget" name="listWidget" >
<property name="maximumSize" >
<size>
<width>180</width>
<height>16777215</height>
</size>
</property>
<property name="focusPolicy" >
<enum>Qt::NoFocus</enum>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="label" >
<property name="text" >
<string>Message:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit" />
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,112 @@
/********************************************************************************
** Form generated from reading UI file 'chatdialog.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef CHATDIALOG_H
#define CHATDIALOG_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QListWidget>
#include <QtWidgets/QTextEdit>
#include <QtWidgets/QVBoxLayout>
QT_BEGIN_NAMESPACE
class Ui_ChatDialog
{
public:
QVBoxLayout *vboxLayout;
QHBoxLayout *hboxLayout;
QTextEdit *textEdit;
QListWidget *listWidget;
QHBoxLayout *hboxLayout1;
QLabel *label;
QLineEdit *lineEdit;
void setupUi(QDialog *ChatDialog)
{
if (ChatDialog->objectName().isEmpty())
ChatDialog->setObjectName("ChatDialog");
ChatDialog->resize(513, 349);
vboxLayout = new QVBoxLayout(ChatDialog);
#ifndef Q_OS_MAC
vboxLayout->setSpacing(6);
#endif
#ifndef Q_OS_MAC
vboxLayout->setContentsMargins(9, 9, 9, 9);
#endif
vboxLayout->setObjectName("vboxLayout");
hboxLayout = new QHBoxLayout();
#ifndef Q_OS_MAC
hboxLayout->setSpacing(6);
#endif
#ifndef Q_OS_MAC
hboxLayout->setContentsMargins(0, 0, 0, 0);
#endif
hboxLayout->setObjectName("hboxLayout");
textEdit = new QTextEdit(ChatDialog);
textEdit->setObjectName("textEdit");
textEdit->setFocusPolicy(Qt::NoFocus);
textEdit->setReadOnly(true);
hboxLayout->addWidget(textEdit);
listWidget = new QListWidget(ChatDialog);
listWidget->setObjectName("listWidget");
listWidget->setMaximumSize(QSize(180, 16777215));
listWidget->setFocusPolicy(Qt::NoFocus);
hboxLayout->addWidget(listWidget);
vboxLayout->addLayout(hboxLayout);
hboxLayout1 = new QHBoxLayout();
#ifndef Q_OS_MAC
hboxLayout1->setSpacing(6);
#endif
hboxLayout1->setContentsMargins(0, 0, 0, 0);
hboxLayout1->setObjectName("hboxLayout1");
label = new QLabel(ChatDialog);
label->setObjectName("label");
hboxLayout1->addWidget(label);
lineEdit = new QLineEdit(ChatDialog);
lineEdit->setObjectName("lineEdit");
hboxLayout1->addWidget(lineEdit);
vboxLayout->addLayout(hboxLayout1);
retranslateUi(ChatDialog);
QMetaObject::connectSlotsByName(ChatDialog);
} // setupUi
void retranslateUi(QDialog *ChatDialog)
{
ChatDialog->setWindowTitle(QCoreApplication::translate("ChatDialog", "Chat", nullptr));
label->setText(QCoreApplication::translate("ChatDialog", "Message:", nullptr));
} // retranslateUi
};
namespace Ui {
class ChatDialog: public Ui_ChatDialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // CHATDIALOG_H

View File

@ -0,0 +1,185 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>ChatMainWindow</class>
<widget class="QMainWindow" name="ChatMainWindow" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>600</height>
</rect>
</property>
<property name="windowTitle" >
<string>Qt D-Bus Chat</string>
</property>
<widget class="QWidget" name="centralwidget" >
<layout class="QHBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QTextBrowser" name="chatHistory" >
<property name="acceptDrops" >
<bool>false</bool>
</property>
<property name="toolTip" >
<string>Messages sent and received from other users</string>
</property>
<property name="acceptRichText" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="label" >
<property name="text" >
<string>Message:</string>
</property>
<property name="buddy" >
<cstring>messageLineEdit</cstring>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="messageLineEdit" />
</item>
<item>
<widget class="QPushButton" name="sendButton" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip" >
<string>Sends a message to other people</string>
</property>
<property name="whatsThis" >
<string/>
</property>
<property name="text" >
<string>Send</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>31</height>
</rect>
</property>
<widget class="QMenu" name="menuQuit" >
<property name="title" >
<string>Help</string>
</property>
<addaction name="actionAboutQt" />
</widget>
<widget class="QMenu" name="menuFile" >
<property name="title" >
<string>File</string>
</property>
<addaction name="actionChangeNickname" />
<addaction name="separator" />
<addaction name="actionQuit" />
</widget>
<addaction name="menuFile" />
<addaction name="menuQuit" />
</widget>
<widget class="QStatusBar" name="statusbar" />
<action name="actionQuit" >
<property name="text" >
<string>Quit</string>
</property>
<property name="shortcut" >
<string>Ctrl+Q</string>
</property>
</action>
<action name="actionAboutQt" >
<property name="text" >
<string>About Qt...</string>
</property>
</action>
<action name="actionChangeNickname" >
<property name="text" >
<string>Change nickname...</string>
</property>
<property name="shortcut" >
<string>Ctrl+N</string>
</property>
</action>
</widget>
<pixmapfunction></pixmapfunction>
<tabstops>
<tabstop>chatHistory</tabstop>
<tabstop>messageLineEdit</tabstop>
<tabstop>sendButton</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
<sender>messageLineEdit</sender>
<signal>returnPressed()</signal>
<receiver>sendButton</receiver>
<slot>animateClick()</slot>
<hints>
<hint type="sourcelabel" >
<x>299</x>
<y>554</y>
</hint>
<hint type="destinationlabel" >
<x>744</x>
<y>551</y>
</hint>
</hints>
</connection>
<connection>
<sender>actionQuit</sender>
<signal>triggered(bool)</signal>
<receiver>ChatMainWindow</receiver>
<slot>close()</slot>
<hints>
<hint type="sourcelabel" >
<x>-1</x>
<y>-1</y>
</hint>
<hint type="destinationlabel" >
<x>399</x>
<y>299</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -0,0 +1,183 @@
/********************************************************************************
** Form generated from reading UI file 'chatmainwindow.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef CHATMAINWINDOW_H
#define CHATMAINWINDOW_H
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QMenu>
#include <QtWidgets/QMenuBar>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QStatusBar>
#include <QtWidgets/QTextBrowser>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_ChatMainWindow
{
public:
QAction *actionQuit;
QAction *actionAboutQt;
QAction *actionChangeNickname;
QWidget *centralwidget;
QHBoxLayout *hboxLayout;
QVBoxLayout *vboxLayout;
QTextBrowser *chatHistory;
QHBoxLayout *hboxLayout1;
QLabel *label;
QLineEdit *messageLineEdit;
QPushButton *sendButton;
QMenuBar *menubar;
QMenu *menuQuit;
QMenu *menuFile;
QStatusBar *statusbar;
void setupUi(QMainWindow *ChatMainWindow)
{
if (ChatMainWindow->objectName().isEmpty())
ChatMainWindow->setObjectName("ChatMainWindow");
ChatMainWindow->resize(800, 600);
actionQuit = new QAction(ChatMainWindow);
actionQuit->setObjectName("actionQuit");
actionAboutQt = new QAction(ChatMainWindow);
actionAboutQt->setObjectName("actionAboutQt");
actionChangeNickname = new QAction(ChatMainWindow);
actionChangeNickname->setObjectName("actionChangeNickname");
centralwidget = new QWidget(ChatMainWindow);
centralwidget->setObjectName("centralwidget");
hboxLayout = new QHBoxLayout(centralwidget);
#ifndef Q_OS_MAC
hboxLayout->setSpacing(6);
#endif
#ifndef Q_OS_MAC
hboxLayout->setContentsMargins(9, 9, 9, 9);
#endif
hboxLayout->setObjectName("hboxLayout");
vboxLayout = new QVBoxLayout();
#ifndef Q_OS_MAC
vboxLayout->setSpacing(6);
#endif
#ifndef Q_OS_MAC
vboxLayout->setContentsMargins(0, 0, 0, 0);
#endif
vboxLayout->setObjectName("vboxLayout");
chatHistory = new QTextBrowser(centralwidget);
chatHistory->setObjectName("chatHistory");
chatHistory->setAcceptDrops(false);
chatHistory->setAcceptRichText(true);
vboxLayout->addWidget(chatHistory);
hboxLayout1 = new QHBoxLayout();
#ifndef Q_OS_MAC
hboxLayout1->setSpacing(6);
#endif
hboxLayout1->setContentsMargins(0, 0, 0, 0);
hboxLayout1->setObjectName("hboxLayout1");
label = new QLabel(centralwidget);
label->setObjectName("label");
hboxLayout1->addWidget(label);
messageLineEdit = new QLineEdit(centralwidget);
messageLineEdit->setObjectName("messageLineEdit");
hboxLayout1->addWidget(messageLineEdit);
sendButton = new QPushButton(centralwidget);
sendButton->setObjectName("sendButton");
QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(sendButton->sizePolicy().hasHeightForWidth());
sendButton->setSizePolicy(sizePolicy);
hboxLayout1->addWidget(sendButton);
vboxLayout->addLayout(hboxLayout1);
hboxLayout->addLayout(vboxLayout);
ChatMainWindow->setCentralWidget(centralwidget);
menubar = new QMenuBar(ChatMainWindow);
menubar->setObjectName("menubar");
menubar->setGeometry(QRect(0, 0, 800, 31));
menuQuit = new QMenu(menubar);
menuQuit->setObjectName("menuQuit");
menuFile = new QMenu(menubar);
menuFile->setObjectName("menuFile");
ChatMainWindow->setMenuBar(menubar);
statusbar = new QStatusBar(ChatMainWindow);
statusbar->setObjectName("statusbar");
ChatMainWindow->setStatusBar(statusbar);
#if QT_CONFIG(shortcut)
label->setBuddy(messageLineEdit);
#endif // QT_CONFIG(shortcut)
QWidget::setTabOrder(chatHistory, messageLineEdit);
QWidget::setTabOrder(messageLineEdit, sendButton);
menubar->addAction(menuFile->menuAction());
menubar->addAction(menuQuit->menuAction());
menuQuit->addAction(actionAboutQt);
menuFile->addAction(actionChangeNickname);
menuFile->addSeparator();
menuFile->addAction(actionQuit);
retranslateUi(ChatMainWindow);
QObject::connect(messageLineEdit, &QLineEdit::returnPressed, sendButton, qOverload<>(&QPushButton::animateClick));
QObject::connect(actionQuit, &QAction::triggered, ChatMainWindow, qOverload<>(&QMainWindow::close));
QMetaObject::connectSlotsByName(ChatMainWindow);
} // setupUi
void retranslateUi(QMainWindow *ChatMainWindow)
{
ChatMainWindow->setWindowTitle(QCoreApplication::translate("ChatMainWindow", "Qt D-Bus Chat", nullptr));
actionQuit->setText(QCoreApplication::translate("ChatMainWindow", "Quit", nullptr));
#if QT_CONFIG(shortcut)
actionQuit->setShortcut(QCoreApplication::translate("ChatMainWindow", "Ctrl+Q", nullptr));
#endif // QT_CONFIG(shortcut)
actionAboutQt->setText(QCoreApplication::translate("ChatMainWindow", "About Qt...", nullptr));
actionChangeNickname->setText(QCoreApplication::translate("ChatMainWindow", "Change nickname...", nullptr));
#if QT_CONFIG(shortcut)
actionChangeNickname->setShortcut(QCoreApplication::translate("ChatMainWindow", "Ctrl+N", nullptr));
#endif // QT_CONFIG(shortcut)
#if QT_CONFIG(tooltip)
chatHistory->setToolTip(QCoreApplication::translate("ChatMainWindow", "Messages sent and received from other users", nullptr));
#endif // QT_CONFIG(tooltip)
label->setText(QCoreApplication::translate("ChatMainWindow", "Message:", nullptr));
#if QT_CONFIG(tooltip)
sendButton->setToolTip(QCoreApplication::translate("ChatMainWindow", "Sends a message to other people", nullptr));
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(whatsthis)
sendButton->setWhatsThis(QString());
#endif // QT_CONFIG(whatsthis)
sendButton->setText(QCoreApplication::translate("ChatMainWindow", "Send", nullptr));
menuQuit->setTitle(QCoreApplication::translate("ChatMainWindow", "Help", nullptr));
menuFile->setTitle(QCoreApplication::translate("ChatMainWindow", "File", nullptr));
} // retranslateUi
};
namespace Ui {
class ChatMainWindow: public Ui_ChatMainWindow {};
} // namespace Ui
QT_END_NAMESPACE
#endif // CHATMAINWINDOW_H

View File

@ -0,0 +1,149 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>NicknameDialog</class>
<widget class="QDialog" name="NicknameDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>396</width>
<height>105</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>1</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle" >
<string>Set nickname</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="label" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>1</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>New nickname:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="nickname" />
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>131</width>
<height>31</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="okButton" >
<property name="text" >
<string>OK</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="cancelButton" >
<property name="text" >
<string>Cancel</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
<pixmapfunction></pixmapfunction>
<resources/>
<connections>
<connection>
<sender>okButton</sender>
<signal>clicked()</signal>
<receiver>NicknameDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>278</x>
<y>253</y>
</hint>
<hint type="destinationlabel" >
<x>96</x>
<y>254</y>
</hint>
</hints>
</connection>
<connection>
<sender>cancelButton</sender>
<signal>clicked()</signal>
<receiver>NicknameDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel" >
<x>369</x>
<y>253</y>
</hint>
<hint type="destinationlabel" >
<x>179</x>
<y>282</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -0,0 +1,129 @@
/********************************************************************************
** Form generated from reading UI file 'chatsetnickname.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef CHATSETNICKNAME_H
#define CHATSETNICKNAME_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QVBoxLayout>
QT_BEGIN_NAMESPACE
class Ui_NicknameDialog
{
public:
QVBoxLayout *vboxLayout;
QVBoxLayout *vboxLayout1;
QLabel *label;
QLineEdit *nickname;
QHBoxLayout *hboxLayout;
QSpacerItem *spacerItem;
QPushButton *okButton;
QPushButton *cancelButton;
QSpacerItem *spacerItem1;
void setupUi(QDialog *NicknameDialog)
{
if (NicknameDialog->objectName().isEmpty())
NicknameDialog->setObjectName("NicknameDialog");
NicknameDialog->resize(396, 105);
QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(NicknameDialog->sizePolicy().hasHeightForWidth());
NicknameDialog->setSizePolicy(sizePolicy);
vboxLayout = new QVBoxLayout(NicknameDialog);
#ifndef Q_OS_MAC
vboxLayout->setSpacing(6);
#endif
#ifndef Q_OS_MAC
vboxLayout->setContentsMargins(9, 9, 9, 9);
#endif
vboxLayout->setObjectName("vboxLayout");
vboxLayout1 = new QVBoxLayout();
#ifndef Q_OS_MAC
vboxLayout1->setSpacing(6);
#endif
#ifndef Q_OS_MAC
vboxLayout1->setContentsMargins(0, 0, 0, 0);
#endif
vboxLayout1->setObjectName("vboxLayout1");
label = new QLabel(NicknameDialog);
label->setObjectName("label");
sizePolicy.setHeightForWidth(label->sizePolicy().hasHeightForWidth());
label->setSizePolicy(sizePolicy);
vboxLayout1->addWidget(label);
nickname = new QLineEdit(NicknameDialog);
nickname->setObjectName("nickname");
vboxLayout1->addWidget(nickname);
vboxLayout->addLayout(vboxLayout1);
hboxLayout = new QHBoxLayout();
#ifndef Q_OS_MAC
hboxLayout->setSpacing(6);
#endif
hboxLayout->setContentsMargins(0, 0, 0, 0);
hboxLayout->setObjectName("hboxLayout");
spacerItem = new QSpacerItem(131, 31, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout->addItem(spacerItem);
okButton = new QPushButton(NicknameDialog);
okButton->setObjectName("okButton");
hboxLayout->addWidget(okButton);
cancelButton = new QPushButton(NicknameDialog);
cancelButton->setObjectName("cancelButton");
hboxLayout->addWidget(cancelButton);
spacerItem1 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout->addItem(spacerItem1);
vboxLayout->addLayout(hboxLayout);
retranslateUi(NicknameDialog);
QObject::connect(okButton, &QPushButton::clicked, NicknameDialog, qOverload<>(&QDialog::accept));
QObject::connect(cancelButton, &QPushButton::clicked, NicknameDialog, qOverload<>(&QDialog::reject));
QMetaObject::connectSlotsByName(NicknameDialog);
} // setupUi
void retranslateUi(QDialog *NicknameDialog)
{
NicknameDialog->setWindowTitle(QCoreApplication::translate("NicknameDialog", "Set nickname", nullptr));
label->setText(QCoreApplication::translate("NicknameDialog", "New nickname:", nullptr));
okButton->setText(QCoreApplication::translate("NicknameDialog", "OK", nullptr));
cancelButton->setText(QCoreApplication::translate("NicknameDialog", "Cancel", nullptr));
} // retranslateUi
};
namespace Ui {
class NicknameDialog: public Ui_NicknameDialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // CHATSETNICKNAME_H

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,734 @@
/*
* Copyright (C) 2016 The Qt Company Ltd.
* SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
*/
/********************************************************************************
** Form generated from reading UI file 'config.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef CONFIG_H
#define CONFIG_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QDialog>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QRadioButton>
#include <QtWidgets/QSlider>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QVBoxLayout>
#include "gammaview.h"
QT_BEGIN_NAMESPACE
class Ui_Config
{
public:
QVBoxLayout *vboxLayout;
QHBoxLayout *hboxLayout;
QGroupBox *ButtonGroup1;
QVBoxLayout *vboxLayout1;
QRadioButton *size_176_220;
QRadioButton *size_240_320;
QRadioButton *size_320_240;
QRadioButton *size_640_480;
QRadioButton *size_800_600;
QRadioButton *size_1024_768;
QHBoxLayout *hboxLayout1;
QRadioButton *size_custom;
QSpinBox *size_width;
QSpinBox *size_height;
QGroupBox *ButtonGroup2;
QVBoxLayout *vboxLayout2;
QRadioButton *depth_1;
QRadioButton *depth_4gray;
QRadioButton *depth_8;
QRadioButton *depth_12;
QRadioButton *depth_15;
QRadioButton *depth_16;
QRadioButton *depth_18;
QRadioButton *depth_24;
QRadioButton *depth_32;
QRadioButton *depth_32_argb;
QHBoxLayout *hboxLayout2;
QLabel *TextLabel1_3;
QComboBox *skin;
QCheckBox *touchScreen;
QCheckBox *lcdScreen;
QSpacerItem *spacerItem;
QLabel *TextLabel1;
QGroupBox *GroupBox1;
QGridLayout *gridLayout;
QLabel *TextLabel3;
QSlider *bslider;
QLabel *blabel;
QLabel *TextLabel2;
QSlider *gslider;
QLabel *glabel;
QLabel *TextLabel7;
QLabel *TextLabel8;
QSlider *gammaslider;
QLabel *TextLabel1_2;
QLabel *rlabel;
QSlider *rslider;
QPushButton *PushButton3;
GammaView *MyCustomWidget1;
QHBoxLayout *hboxLayout3;
QSpacerItem *spacerItem1;
QPushButton *buttonOk;
QPushButton *buttonCancel;
void setupUi(QDialog *Config)
{
if (Config->objectName().isEmpty())
Config->setObjectName("Config");
Config->resize(600, 650);
Config->setSizeGripEnabled(true);
vboxLayout = new QVBoxLayout(Config);
vboxLayout->setSpacing(6);
vboxLayout->setContentsMargins(11, 11, 11, 11);
vboxLayout->setObjectName("vboxLayout");
vboxLayout->setContentsMargins(8, 8, 8, 8);
hboxLayout = new QHBoxLayout();
hboxLayout->setSpacing(6);
hboxLayout->setObjectName("hboxLayout");
hboxLayout->setContentsMargins(0, 0, 0, 0);
ButtonGroup1 = new QGroupBox(Config);
ButtonGroup1->setObjectName("ButtonGroup1");
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(ButtonGroup1->sizePolicy().hasHeightForWidth());
ButtonGroup1->setSizePolicy(sizePolicy);
vboxLayout1 = new QVBoxLayout(ButtonGroup1);
vboxLayout1->setSpacing(6);
vboxLayout1->setContentsMargins(11, 11, 11, 11);
vboxLayout1->setObjectName("vboxLayout1");
vboxLayout1->setContentsMargins(11, 11, 11, 11);
size_176_220 = new QRadioButton(ButtonGroup1);
size_176_220->setObjectName("size_176_220");
vboxLayout1->addWidget(size_176_220);
size_240_320 = new QRadioButton(ButtonGroup1);
size_240_320->setObjectName("size_240_320");
vboxLayout1->addWidget(size_240_320);
size_320_240 = new QRadioButton(ButtonGroup1);
size_320_240->setObjectName("size_320_240");
vboxLayout1->addWidget(size_320_240);
size_640_480 = new QRadioButton(ButtonGroup1);
size_640_480->setObjectName("size_640_480");
vboxLayout1->addWidget(size_640_480);
size_800_600 = new QRadioButton(ButtonGroup1);
size_800_600->setObjectName("size_800_600");
vboxLayout1->addWidget(size_800_600);
size_1024_768 = new QRadioButton(ButtonGroup1);
size_1024_768->setObjectName("size_1024_768");
vboxLayout1->addWidget(size_1024_768);
hboxLayout1 = new QHBoxLayout();
hboxLayout1->setSpacing(6);
hboxLayout1->setObjectName("hboxLayout1");
hboxLayout1->setContentsMargins(0, 0, 0, 0);
size_custom = new QRadioButton(ButtonGroup1);
size_custom->setObjectName("size_custom");
QSizePolicy sizePolicy1(QSizePolicy::Fixed, QSizePolicy::Fixed);
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(size_custom->sizePolicy().hasHeightForWidth());
size_custom->setSizePolicy(sizePolicy1);
hboxLayout1->addWidget(size_custom);
size_width = new QSpinBox(ButtonGroup1);
size_width->setObjectName("size_width");
size_width->setMinimum(1);
size_width->setMaximum(1280);
size_width->setSingleStep(16);
size_width->setValue(400);
hboxLayout1->addWidget(size_width);
size_height = new QSpinBox(ButtonGroup1);
size_height->setObjectName("size_height");
size_height->setMinimum(1);
size_height->setMaximum(1024);
size_height->setSingleStep(16);
size_height->setValue(300);
hboxLayout1->addWidget(size_height);
vboxLayout1->addLayout(hboxLayout1);
hboxLayout->addWidget(ButtonGroup1);
ButtonGroup2 = new QGroupBox(Config);
ButtonGroup2->setObjectName("ButtonGroup2");
vboxLayout2 = new QVBoxLayout(ButtonGroup2);
vboxLayout2->setSpacing(6);
vboxLayout2->setContentsMargins(11, 11, 11, 11);
vboxLayout2->setObjectName("vboxLayout2");
vboxLayout2->setContentsMargins(11, 11, 11, 11);
depth_1 = new QRadioButton(ButtonGroup2);
depth_1->setObjectName("depth_1");
vboxLayout2->addWidget(depth_1);
depth_4gray = new QRadioButton(ButtonGroup2);
depth_4gray->setObjectName("depth_4gray");
vboxLayout2->addWidget(depth_4gray);
depth_8 = new QRadioButton(ButtonGroup2);
depth_8->setObjectName("depth_8");
vboxLayout2->addWidget(depth_8);
depth_12 = new QRadioButton(ButtonGroup2);
depth_12->setObjectName("depth_12");
vboxLayout2->addWidget(depth_12);
depth_15 = new QRadioButton(ButtonGroup2);
depth_15->setObjectName("depth_15");
vboxLayout2->addWidget(depth_15);
depth_16 = new QRadioButton(ButtonGroup2);
depth_16->setObjectName("depth_16");
vboxLayout2->addWidget(depth_16);
depth_18 = new QRadioButton(ButtonGroup2);
depth_18->setObjectName("depth_18");
vboxLayout2->addWidget(depth_18);
depth_24 = new QRadioButton(ButtonGroup2);
depth_24->setObjectName("depth_24");
vboxLayout2->addWidget(depth_24);
depth_32 = new QRadioButton(ButtonGroup2);
depth_32->setObjectName("depth_32");
vboxLayout2->addWidget(depth_32);
depth_32_argb = new QRadioButton(ButtonGroup2);
depth_32_argb->setObjectName("depth_32_argb");
vboxLayout2->addWidget(depth_32_argb);
hboxLayout->addWidget(ButtonGroup2);
vboxLayout->addLayout(hboxLayout);
hboxLayout2 = new QHBoxLayout();
hboxLayout2->setSpacing(6);
hboxLayout2->setObjectName("hboxLayout2");
hboxLayout2->setContentsMargins(0, 0, 0, 0);
TextLabel1_3 = new QLabel(Config);
TextLabel1_3->setObjectName("TextLabel1_3");
hboxLayout2->addWidget(TextLabel1_3);
skin = new QComboBox(Config);
skin->addItem(QString());
skin->setObjectName("skin");
QSizePolicy sizePolicy2(QSizePolicy::Expanding, QSizePolicy::Fixed);
sizePolicy2.setHorizontalStretch(0);
sizePolicy2.setVerticalStretch(0);
sizePolicy2.setHeightForWidth(skin->sizePolicy().hasHeightForWidth());
skin->setSizePolicy(sizePolicy2);
hboxLayout2->addWidget(skin);
vboxLayout->addLayout(hboxLayout2);
touchScreen = new QCheckBox(Config);
touchScreen->setObjectName("touchScreen");
vboxLayout->addWidget(touchScreen);
lcdScreen = new QCheckBox(Config);
lcdScreen->setObjectName("lcdScreen");
vboxLayout->addWidget(lcdScreen);
spacerItem = new QSpacerItem(20, 10, QSizePolicy::Minimum, QSizePolicy::Expanding);
vboxLayout->addItem(spacerItem);
TextLabel1 = new QLabel(Config);
TextLabel1->setObjectName("TextLabel1");
sizePolicy.setHeightForWidth(TextLabel1->sizePolicy().hasHeightForWidth());
TextLabel1->setSizePolicy(sizePolicy);
TextLabel1->setWordWrap(true);
vboxLayout->addWidget(TextLabel1);
GroupBox1 = new QGroupBox(Config);
GroupBox1->setObjectName("GroupBox1");
gridLayout = new QGridLayout(GroupBox1);
gridLayout->setSpacing(6);
gridLayout->setContentsMargins(11, 11, 11, 11);
gridLayout->setObjectName("gridLayout");
gridLayout->setHorizontalSpacing(6);
gridLayout->setVerticalSpacing(6);
gridLayout->setContentsMargins(11, 11, 11, 11);
TextLabel3 = new QLabel(GroupBox1);
TextLabel3->setObjectName("TextLabel3");
gridLayout->addWidget(TextLabel3, 6, 0, 1, 1);
bslider = new QSlider(GroupBox1);
bslider->setObjectName("bslider");
QPalette palette;
QBrush brush(QColor(128, 128, 128, 255));
brush.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::WindowText, brush);
QBrush brush1(QColor(0, 0, 255, 255));
brush1.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::Button, brush1);
QBrush brush2(QColor(127, 127, 255, 255));
brush2.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::Light, brush2);
QBrush brush3(QColor(38, 38, 255, 255));
brush3.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::Midlight, brush3);
QBrush brush4(QColor(0, 0, 127, 255));
brush4.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::Dark, brush4);
QBrush brush5(QColor(0, 0, 170, 255));
brush5.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::Mid, brush5);
QBrush brush6(QColor(0, 0, 0, 255));
brush6.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::Text, brush6);
QBrush brush7(QColor(255, 255, 255, 255));
brush7.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::BrightText, brush7);
palette.setBrush(QPalette::Active, QPalette::ButtonText, brush);
palette.setBrush(QPalette::Active, QPalette::Base, brush7);
QBrush brush8(QColor(220, 220, 220, 255));
brush8.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::Window, brush8);
palette.setBrush(QPalette::Active, QPalette::Shadow, brush6);
QBrush brush9(QColor(10, 95, 137, 255));
brush9.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::Highlight, brush9);
palette.setBrush(QPalette::Active, QPalette::HighlightedText, brush7);
palette.setBrush(QPalette::Active, QPalette::Link, brush6);
palette.setBrush(QPalette::Active, QPalette::LinkVisited, brush6);
QBrush brush10(QColor(232, 232, 232, 255));
brush10.setStyle(Qt::SolidPattern);
palette.setBrush(QPalette::Active, QPalette::AlternateBase, brush10);
palette.setBrush(QPalette::Inactive, QPalette::WindowText, brush);
palette.setBrush(QPalette::Inactive, QPalette::Button, brush1);
palette.setBrush(QPalette::Inactive, QPalette::Light, brush2);
palette.setBrush(QPalette::Inactive, QPalette::Midlight, brush3);
palette.setBrush(QPalette::Inactive, QPalette::Dark, brush4);
palette.setBrush(QPalette::Inactive, QPalette::Mid, brush5);
palette.setBrush(QPalette::Inactive, QPalette::Text, brush6);
palette.setBrush(QPalette::Inactive, QPalette::BrightText, brush7);
palette.setBrush(QPalette::Inactive, QPalette::ButtonText, brush);
palette.setBrush(QPalette::Inactive, QPalette::Base, brush7);
palette.setBrush(QPalette::Inactive, QPalette::Window, brush8);
palette.setBrush(QPalette::Inactive, QPalette::Shadow, brush6);
palette.setBrush(QPalette::Inactive, QPalette::Highlight, brush9);
palette.setBrush(QPalette::Inactive, QPalette::HighlightedText, brush7);
palette.setBrush(QPalette::Inactive, QPalette::Link, brush6);
palette.setBrush(QPalette::Inactive, QPalette::LinkVisited, brush6);
palette.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush10);
palette.setBrush(QPalette::Disabled, QPalette::WindowText, brush);
palette.setBrush(QPalette::Disabled, QPalette::Button, brush1);
palette.setBrush(QPalette::Disabled, QPalette::Light, brush2);
palette.setBrush(QPalette::Disabled, QPalette::Midlight, brush3);
palette.setBrush(QPalette::Disabled, QPalette::Dark, brush4);
palette.setBrush(QPalette::Disabled, QPalette::Mid, brush5);
palette.setBrush(QPalette::Disabled, QPalette::Text, brush6);
palette.setBrush(QPalette::Disabled, QPalette::BrightText, brush7);
palette.setBrush(QPalette::Disabled, QPalette::ButtonText, brush);
palette.setBrush(QPalette::Disabled, QPalette::Base, brush7);
palette.setBrush(QPalette::Disabled, QPalette::Window, brush8);
palette.setBrush(QPalette::Disabled, QPalette::Shadow, brush6);
palette.setBrush(QPalette::Disabled, QPalette::Highlight, brush9);
palette.setBrush(QPalette::Disabled, QPalette::HighlightedText, brush7);
palette.setBrush(QPalette::Disabled, QPalette::Link, brush6);
palette.setBrush(QPalette::Disabled, QPalette::LinkVisited, brush6);
palette.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush10);
bslider->setPalette(palette);
bslider->setMaximum(400);
bslider->setValue(100);
bslider->setOrientation(Qt::Horizontal);
gridLayout->addWidget(bslider, 6, 1, 1, 1);
blabel = new QLabel(GroupBox1);
blabel->setObjectName("blabel");
gridLayout->addWidget(blabel, 6, 2, 1, 1);
TextLabel2 = new QLabel(GroupBox1);
TextLabel2->setObjectName("TextLabel2");
gridLayout->addWidget(TextLabel2, 4, 0, 1, 1);
gslider = new QSlider(GroupBox1);
gslider->setObjectName("gslider");
QPalette palette1;
palette1.setBrush(QPalette::Active, QPalette::WindowText, brush);
QBrush brush11(QColor(0, 255, 0, 255));
brush11.setStyle(Qt::SolidPattern);
palette1.setBrush(QPalette::Active, QPalette::Button, brush11);
QBrush brush12(QColor(127, 255, 127, 255));
brush12.setStyle(Qt::SolidPattern);
palette1.setBrush(QPalette::Active, QPalette::Light, brush12);
QBrush brush13(QColor(38, 255, 38, 255));
brush13.setStyle(Qt::SolidPattern);
palette1.setBrush(QPalette::Active, QPalette::Midlight, brush13);
QBrush brush14(QColor(0, 127, 0, 255));
brush14.setStyle(Qt::SolidPattern);
palette1.setBrush(QPalette::Active, QPalette::Dark, brush14);
QBrush brush15(QColor(0, 170, 0, 255));
brush15.setStyle(Qt::SolidPattern);
palette1.setBrush(QPalette::Active, QPalette::Mid, brush15);
palette1.setBrush(QPalette::Active, QPalette::Text, brush6);
palette1.setBrush(QPalette::Active, QPalette::BrightText, brush7);
palette1.setBrush(QPalette::Active, QPalette::ButtonText, brush);
palette1.setBrush(QPalette::Active, QPalette::Base, brush7);
palette1.setBrush(QPalette::Active, QPalette::Window, brush8);
palette1.setBrush(QPalette::Active, QPalette::Shadow, brush6);
palette1.setBrush(QPalette::Active, QPalette::Highlight, brush9);
palette1.setBrush(QPalette::Active, QPalette::HighlightedText, brush7);
palette1.setBrush(QPalette::Active, QPalette::Link, brush6);
palette1.setBrush(QPalette::Active, QPalette::LinkVisited, brush6);
palette1.setBrush(QPalette::Active, QPalette::AlternateBase, brush10);
palette1.setBrush(QPalette::Inactive, QPalette::WindowText, brush);
palette1.setBrush(QPalette::Inactive, QPalette::Button, brush11);
palette1.setBrush(QPalette::Inactive, QPalette::Light, brush12);
palette1.setBrush(QPalette::Inactive, QPalette::Midlight, brush13);
palette1.setBrush(QPalette::Inactive, QPalette::Dark, brush14);
palette1.setBrush(QPalette::Inactive, QPalette::Mid, brush15);
palette1.setBrush(QPalette::Inactive, QPalette::Text, brush6);
palette1.setBrush(QPalette::Inactive, QPalette::BrightText, brush7);
palette1.setBrush(QPalette::Inactive, QPalette::ButtonText, brush);
palette1.setBrush(QPalette::Inactive, QPalette::Base, brush7);
palette1.setBrush(QPalette::Inactive, QPalette::Window, brush8);
palette1.setBrush(QPalette::Inactive, QPalette::Shadow, brush6);
palette1.setBrush(QPalette::Inactive, QPalette::Highlight, brush9);
palette1.setBrush(QPalette::Inactive, QPalette::HighlightedText, brush7);
palette1.setBrush(QPalette::Inactive, QPalette::Link, brush6);
palette1.setBrush(QPalette::Inactive, QPalette::LinkVisited, brush6);
palette1.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush10);
palette1.setBrush(QPalette::Disabled, QPalette::WindowText, brush);
palette1.setBrush(QPalette::Disabled, QPalette::Button, brush11);
palette1.setBrush(QPalette::Disabled, QPalette::Light, brush12);
palette1.setBrush(QPalette::Disabled, QPalette::Midlight, brush13);
palette1.setBrush(QPalette::Disabled, QPalette::Dark, brush14);
palette1.setBrush(QPalette::Disabled, QPalette::Mid, brush15);
palette1.setBrush(QPalette::Disabled, QPalette::Text, brush6);
palette1.setBrush(QPalette::Disabled, QPalette::BrightText, brush7);
palette1.setBrush(QPalette::Disabled, QPalette::ButtonText, brush);
palette1.setBrush(QPalette::Disabled, QPalette::Base, brush7);
palette1.setBrush(QPalette::Disabled, QPalette::Window, brush8);
palette1.setBrush(QPalette::Disabled, QPalette::Shadow, brush6);
palette1.setBrush(QPalette::Disabled, QPalette::Highlight, brush9);
palette1.setBrush(QPalette::Disabled, QPalette::HighlightedText, brush7);
palette1.setBrush(QPalette::Disabled, QPalette::Link, brush6);
palette1.setBrush(QPalette::Disabled, QPalette::LinkVisited, brush6);
palette1.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush10);
gslider->setPalette(palette1);
gslider->setMaximum(400);
gslider->setValue(100);
gslider->setOrientation(Qt::Horizontal);
gridLayout->addWidget(gslider, 4, 1, 1, 1);
glabel = new QLabel(GroupBox1);
glabel->setObjectName("glabel");
gridLayout->addWidget(glabel, 4, 2, 1, 1);
TextLabel7 = new QLabel(GroupBox1);
TextLabel7->setObjectName("TextLabel7");
gridLayout->addWidget(TextLabel7, 0, 0, 1, 1);
TextLabel8 = new QLabel(GroupBox1);
TextLabel8->setObjectName("TextLabel8");
gridLayout->addWidget(TextLabel8, 0, 2, 1, 1);
gammaslider = new QSlider(GroupBox1);
gammaslider->setObjectName("gammaslider");
QPalette palette2;
palette2.setBrush(QPalette::Active, QPalette::WindowText, brush);
palette2.setBrush(QPalette::Active, QPalette::Button, brush7);
palette2.setBrush(QPalette::Active, QPalette::Light, brush7);
palette2.setBrush(QPalette::Active, QPalette::Midlight, brush7);
QBrush brush16(QColor(127, 127, 127, 255));
brush16.setStyle(Qt::SolidPattern);
palette2.setBrush(QPalette::Active, QPalette::Dark, brush16);
QBrush brush17(QColor(170, 170, 170, 255));
brush17.setStyle(Qt::SolidPattern);
palette2.setBrush(QPalette::Active, QPalette::Mid, brush17);
palette2.setBrush(QPalette::Active, QPalette::Text, brush6);
palette2.setBrush(QPalette::Active, QPalette::BrightText, brush7);
palette2.setBrush(QPalette::Active, QPalette::ButtonText, brush);
palette2.setBrush(QPalette::Active, QPalette::Base, brush7);
palette2.setBrush(QPalette::Active, QPalette::Window, brush8);
palette2.setBrush(QPalette::Active, QPalette::Shadow, brush6);
palette2.setBrush(QPalette::Active, QPalette::Highlight, brush9);
palette2.setBrush(QPalette::Active, QPalette::HighlightedText, brush7);
palette2.setBrush(QPalette::Active, QPalette::Link, brush6);
palette2.setBrush(QPalette::Active, QPalette::LinkVisited, brush6);
palette2.setBrush(QPalette::Active, QPalette::AlternateBase, brush10);
palette2.setBrush(QPalette::Inactive, QPalette::WindowText, brush);
palette2.setBrush(QPalette::Inactive, QPalette::Button, brush7);
palette2.setBrush(QPalette::Inactive, QPalette::Light, brush7);
palette2.setBrush(QPalette::Inactive, QPalette::Midlight, brush7);
palette2.setBrush(QPalette::Inactive, QPalette::Dark, brush16);
palette2.setBrush(QPalette::Inactive, QPalette::Mid, brush17);
palette2.setBrush(QPalette::Inactive, QPalette::Text, brush6);
palette2.setBrush(QPalette::Inactive, QPalette::BrightText, brush7);
palette2.setBrush(QPalette::Inactive, QPalette::ButtonText, brush);
palette2.setBrush(QPalette::Inactive, QPalette::Base, brush7);
palette2.setBrush(QPalette::Inactive, QPalette::Window, brush8);
palette2.setBrush(QPalette::Inactive, QPalette::Shadow, brush6);
palette2.setBrush(QPalette::Inactive, QPalette::Highlight, brush9);
palette2.setBrush(QPalette::Inactive, QPalette::HighlightedText, brush7);
palette2.setBrush(QPalette::Inactive, QPalette::Link, brush6);
palette2.setBrush(QPalette::Inactive, QPalette::LinkVisited, brush6);
palette2.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush10);
palette2.setBrush(QPalette::Disabled, QPalette::WindowText, brush);
palette2.setBrush(QPalette::Disabled, QPalette::Button, brush7);
palette2.setBrush(QPalette::Disabled, QPalette::Light, brush7);
palette2.setBrush(QPalette::Disabled, QPalette::Midlight, brush7);
palette2.setBrush(QPalette::Disabled, QPalette::Dark, brush16);
palette2.setBrush(QPalette::Disabled, QPalette::Mid, brush17);
palette2.setBrush(QPalette::Disabled, QPalette::Text, brush6);
palette2.setBrush(QPalette::Disabled, QPalette::BrightText, brush7);
palette2.setBrush(QPalette::Disabled, QPalette::ButtonText, brush);
palette2.setBrush(QPalette::Disabled, QPalette::Base, brush7);
palette2.setBrush(QPalette::Disabled, QPalette::Window, brush8);
palette2.setBrush(QPalette::Disabled, QPalette::Shadow, brush6);
palette2.setBrush(QPalette::Disabled, QPalette::Highlight, brush9);
palette2.setBrush(QPalette::Disabled, QPalette::HighlightedText, brush7);
palette2.setBrush(QPalette::Disabled, QPalette::Link, brush6);
palette2.setBrush(QPalette::Disabled, QPalette::LinkVisited, brush6);
palette2.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush10);
gammaslider->setPalette(palette2);
gammaslider->setMaximum(400);
gammaslider->setValue(100);
gammaslider->setOrientation(Qt::Horizontal);
gridLayout->addWidget(gammaslider, 0, 1, 1, 1);
TextLabel1_2 = new QLabel(GroupBox1);
TextLabel1_2->setObjectName("TextLabel1_2");
gridLayout->addWidget(TextLabel1_2, 2, 0, 1, 1);
rlabel = new QLabel(GroupBox1);
rlabel->setObjectName("rlabel");
gridLayout->addWidget(rlabel, 2, 2, 1, 1);
rslider = new QSlider(GroupBox1);
rslider->setObjectName("rslider");
QPalette palette3;
palette3.setBrush(QPalette::Active, QPalette::WindowText, brush);
QBrush brush18(QColor(255, 0, 0, 255));
brush18.setStyle(Qt::SolidPattern);
palette3.setBrush(QPalette::Active, QPalette::Button, brush18);
QBrush brush19(QColor(255, 127, 127, 255));
brush19.setStyle(Qt::SolidPattern);
palette3.setBrush(QPalette::Active, QPalette::Light, brush19);
QBrush brush20(QColor(255, 38, 38, 255));
brush20.setStyle(Qt::SolidPattern);
palette3.setBrush(QPalette::Active, QPalette::Midlight, brush20);
QBrush brush21(QColor(127, 0, 0, 255));
brush21.setStyle(Qt::SolidPattern);
palette3.setBrush(QPalette::Active, QPalette::Dark, brush21);
QBrush brush22(QColor(170, 0, 0, 255));
brush22.setStyle(Qt::SolidPattern);
palette3.setBrush(QPalette::Active, QPalette::Mid, brush22);
palette3.setBrush(QPalette::Active, QPalette::Text, brush6);
palette3.setBrush(QPalette::Active, QPalette::BrightText, brush7);
palette3.setBrush(QPalette::Active, QPalette::ButtonText, brush);
palette3.setBrush(QPalette::Active, QPalette::Base, brush7);
palette3.setBrush(QPalette::Active, QPalette::Window, brush8);
palette3.setBrush(QPalette::Active, QPalette::Shadow, brush6);
palette3.setBrush(QPalette::Active, QPalette::Highlight, brush9);
palette3.setBrush(QPalette::Active, QPalette::HighlightedText, brush7);
palette3.setBrush(QPalette::Active, QPalette::Link, brush6);
palette3.setBrush(QPalette::Active, QPalette::LinkVisited, brush6);
palette3.setBrush(QPalette::Active, QPalette::AlternateBase, brush10);
palette3.setBrush(QPalette::Inactive, QPalette::WindowText, brush);
palette3.setBrush(QPalette::Inactive, QPalette::Button, brush18);
palette3.setBrush(QPalette::Inactive, QPalette::Light, brush19);
palette3.setBrush(QPalette::Inactive, QPalette::Midlight, brush20);
palette3.setBrush(QPalette::Inactive, QPalette::Dark, brush21);
palette3.setBrush(QPalette::Inactive, QPalette::Mid, brush22);
palette3.setBrush(QPalette::Inactive, QPalette::Text, brush6);
palette3.setBrush(QPalette::Inactive, QPalette::BrightText, brush7);
palette3.setBrush(QPalette::Inactive, QPalette::ButtonText, brush);
palette3.setBrush(QPalette::Inactive, QPalette::Base, brush7);
palette3.setBrush(QPalette::Inactive, QPalette::Window, brush8);
palette3.setBrush(QPalette::Inactive, QPalette::Shadow, brush6);
palette3.setBrush(QPalette::Inactive, QPalette::Highlight, brush9);
palette3.setBrush(QPalette::Inactive, QPalette::HighlightedText, brush7);
palette3.setBrush(QPalette::Inactive, QPalette::Link, brush6);
palette3.setBrush(QPalette::Inactive, QPalette::LinkVisited, brush6);
palette3.setBrush(QPalette::Inactive, QPalette::AlternateBase, brush10);
palette3.setBrush(QPalette::Disabled, QPalette::WindowText, brush);
palette3.setBrush(QPalette::Disabled, QPalette::Button, brush18);
palette3.setBrush(QPalette::Disabled, QPalette::Light, brush19);
palette3.setBrush(QPalette::Disabled, QPalette::Midlight, brush20);
palette3.setBrush(QPalette::Disabled, QPalette::Dark, brush21);
palette3.setBrush(QPalette::Disabled, QPalette::Mid, brush22);
palette3.setBrush(QPalette::Disabled, QPalette::Text, brush6);
palette3.setBrush(QPalette::Disabled, QPalette::BrightText, brush7);
palette3.setBrush(QPalette::Disabled, QPalette::ButtonText, brush);
palette3.setBrush(QPalette::Disabled, QPalette::Base, brush7);
palette3.setBrush(QPalette::Disabled, QPalette::Window, brush8);
palette3.setBrush(QPalette::Disabled, QPalette::Shadow, brush6);
palette3.setBrush(QPalette::Disabled, QPalette::Highlight, brush9);
palette3.setBrush(QPalette::Disabled, QPalette::HighlightedText, brush7);
palette3.setBrush(QPalette::Disabled, QPalette::Link, brush6);
palette3.setBrush(QPalette::Disabled, QPalette::LinkVisited, brush6);
palette3.setBrush(QPalette::Disabled, QPalette::AlternateBase, brush10);
rslider->setPalette(palette3);
rslider->setMaximum(400);
rslider->setValue(100);
rslider->setOrientation(Qt::Horizontal);
gridLayout->addWidget(rslider, 2, 1, 1, 1);
PushButton3 = new QPushButton(GroupBox1);
PushButton3->setObjectName("PushButton3");
gridLayout->addWidget(PushButton3, 8, 0, 1, 3);
MyCustomWidget1 = new GammaView(GroupBox1);
MyCustomWidget1->setObjectName("MyCustomWidget1");
gridLayout->addWidget(MyCustomWidget1, 0, 3, 9, 1);
vboxLayout->addWidget(GroupBox1);
hboxLayout3 = new QHBoxLayout();
hboxLayout3->setSpacing(6);
hboxLayout3->setObjectName("hboxLayout3");
hboxLayout3->setContentsMargins(0, 0, 0, 0);
spacerItem1 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout3->addItem(spacerItem1);
buttonOk = new QPushButton(Config);
buttonOk->setObjectName("buttonOk");
buttonOk->setAutoDefault(true);
hboxLayout3->addWidget(buttonOk);
buttonCancel = new QPushButton(Config);
buttonCancel->setObjectName("buttonCancel");
buttonCancel->setAutoDefault(true);
hboxLayout3->addWidget(buttonCancel);
vboxLayout->addLayout(hboxLayout3);
retranslateUi(Config);
QObject::connect(size_width, &QSpinBox::valueChanged, size_custom, qOverload<>(&QRadioButton::click));
QObject::connect(size_height, &QSpinBox::valueChanged, size_custom, qOverload<>(&QRadioButton::click));
buttonOk->setDefault(true);
QMetaObject::connectSlotsByName(Config);
} // setupUi
void retranslateUi(QDialog *Config)
{
Config->setWindowTitle(QCoreApplication::translate("Config", "Configure", nullptr));
ButtonGroup1->setTitle(QCoreApplication::translate("Config", "Size", nullptr));
size_176_220->setText(QCoreApplication::translate("Config", "176x220 \"SmartPhone\"", nullptr));
size_240_320->setText(QCoreApplication::translate("Config", "240x320 \"PDA\"", nullptr));
size_320_240->setText(QCoreApplication::translate("Config", "320x240 \"TV\" / \"QVGA\"", nullptr));
size_640_480->setText(QCoreApplication::translate("Config", "640x480 \"VGA\"", nullptr));
size_800_600->setText(QCoreApplication::translate("Config", "800x600", nullptr));
size_1024_768->setText(QCoreApplication::translate("Config", "1024x768", nullptr));
size_custom->setText(QCoreApplication::translate("Config", "Custom", nullptr));
ButtonGroup2->setTitle(QCoreApplication::translate("Config", "Depth", nullptr));
depth_1->setText(QCoreApplication::translate("Config", "1 bit monochrome", nullptr));
depth_4gray->setText(QCoreApplication::translate("Config", "4 bit grayscale", nullptr));
depth_8->setText(QCoreApplication::translate("Config", "8 bit", nullptr));
depth_12->setText(QCoreApplication::translate("Config", "12 (16) bit", nullptr));
depth_15->setText(QCoreApplication::translate("Config", "15 bit", nullptr));
depth_16->setText(QCoreApplication::translate("Config", "16 bit", nullptr));
depth_18->setText(QCoreApplication::translate("Config", "18 bit", nullptr));
depth_24->setText(QCoreApplication::translate("Config", "24 bit", nullptr));
depth_32->setText(QCoreApplication::translate("Config", "32 bit", nullptr));
depth_32_argb->setText(QCoreApplication::translate("Config", "32 bit ARGB", nullptr));
TextLabel1_3->setText(QCoreApplication::translate("Config", "Skin", nullptr));
skin->setItemText(0, QCoreApplication::translate("Config", "None", nullptr));
touchScreen->setText(QCoreApplication::translate("Config", "Emulate touch screen (no mouse move)", nullptr));
lcdScreen->setText(QCoreApplication::translate("Config", "Emulate LCD screen (Only with fixed zoom of 3.0 times magnification)", nullptr));
TextLabel1->setText(QCoreApplication::translate("Config", "<p>Note that any applications using the virtual framebuffer will be terminated if you change the Size or Depth <i>above</i>. You may freely modify the Gamma <i>below</i>.", nullptr));
GroupBox1->setTitle(QCoreApplication::translate("Config", "Gamma", nullptr));
TextLabel3->setText(QCoreApplication::translate("Config", "Blue", nullptr));
blabel->setText(QCoreApplication::translate("Config", "1.0", nullptr));
TextLabel2->setText(QCoreApplication::translate("Config", "Green", nullptr));
glabel->setText(QCoreApplication::translate("Config", "1.0", nullptr));
TextLabel7->setText(QCoreApplication::translate("Config", "All", nullptr));
TextLabel8->setText(QCoreApplication::translate("Config", "1.0", nullptr));
TextLabel1_2->setText(QCoreApplication::translate("Config", "Red", nullptr));
rlabel->setText(QCoreApplication::translate("Config", "1.0", nullptr));
PushButton3->setText(QCoreApplication::translate("Config", "Set all to 1.0", nullptr));
buttonOk->setText(QCoreApplication::translate("Config", "&OK", nullptr));
buttonCancel->setText(QCoreApplication::translate("Config", "&Cancel", nullptr));
} // retranslateUi
};
namespace Ui {
class Config: public Ui_Config {};
} // namespace Ui
QT_END_NAMESPACE
#endif // CONFIG_H

View File

@ -0,0 +1,659 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2016 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#
################################################################################
## Form generated from reading UI file 'config.ui'
##
## Created by: Qt User Interface Compiler version 6.0.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
QMetaObject, QObject, QPoint, QRect,
QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QFont, QFontDatabase, QGradient, QIcon,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QApplication, QCheckBox, QComboBox, QDialog,
QGridLayout, QGroupBox, QHBoxLayout, QLabel,
QPushButton, QRadioButton, QSizePolicy, QSlider,
QSpacerItem, QSpinBox, QVBoxLayout, QWidget)
from gammaview import GammaView
class Ui_Config(object):
def setupUi(self, Config):
if not Config.objectName():
Config.setObjectName(u"Config")
Config.resize(600, 650)
Config.setSizeGripEnabled(True)
self.vboxLayout = QVBoxLayout(Config)
self.vboxLayout.setSpacing(6)
self.vboxLayout.setContentsMargins(11, 11, 11, 11)
self.vboxLayout.setObjectName(u"vboxLayout")
self.vboxLayout.setContentsMargins(8, 8, 8, 8)
self.hboxLayout = QHBoxLayout()
self.hboxLayout.setSpacing(6)
self.hboxLayout.setObjectName(u"hboxLayout")
self.hboxLayout.setContentsMargins(0, 0, 0, 0)
self.ButtonGroup1 = QGroupBox(Config)
self.ButtonGroup1.setObjectName(u"ButtonGroup1")
sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.ButtonGroup1.sizePolicy().hasHeightForWidth())
self.ButtonGroup1.setSizePolicy(sizePolicy)
self.vboxLayout1 = QVBoxLayout(self.ButtonGroup1)
self.vboxLayout1.setSpacing(6)
self.vboxLayout1.setContentsMargins(11, 11, 11, 11)
self.vboxLayout1.setObjectName(u"vboxLayout1")
self.vboxLayout1.setContentsMargins(11, 11, 11, 11)
self.size_176_220 = QRadioButton(self.ButtonGroup1)
self.size_176_220.setObjectName(u"size_176_220")
self.vboxLayout1.addWidget(self.size_176_220)
self.size_240_320 = QRadioButton(self.ButtonGroup1)
self.size_240_320.setObjectName(u"size_240_320")
self.vboxLayout1.addWidget(self.size_240_320)
self.size_320_240 = QRadioButton(self.ButtonGroup1)
self.size_320_240.setObjectName(u"size_320_240")
self.vboxLayout1.addWidget(self.size_320_240)
self.size_640_480 = QRadioButton(self.ButtonGroup1)
self.size_640_480.setObjectName(u"size_640_480")
self.vboxLayout1.addWidget(self.size_640_480)
self.size_800_600 = QRadioButton(self.ButtonGroup1)
self.size_800_600.setObjectName(u"size_800_600")
self.vboxLayout1.addWidget(self.size_800_600)
self.size_1024_768 = QRadioButton(self.ButtonGroup1)
self.size_1024_768.setObjectName(u"size_1024_768")
self.vboxLayout1.addWidget(self.size_1024_768)
self.hboxLayout1 = QHBoxLayout()
self.hboxLayout1.setSpacing(6)
self.hboxLayout1.setObjectName(u"hboxLayout1")
self.hboxLayout1.setContentsMargins(0, 0, 0, 0)
self.size_custom = QRadioButton(self.ButtonGroup1)
self.size_custom.setObjectName(u"size_custom")
sizePolicy1 = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)
sizePolicy1.setHorizontalStretch(0)
sizePolicy1.setVerticalStretch(0)
sizePolicy1.setHeightForWidth(self.size_custom.sizePolicy().hasHeightForWidth())
self.size_custom.setSizePolicy(sizePolicy1)
self.hboxLayout1.addWidget(self.size_custom)
self.size_width = QSpinBox(self.ButtonGroup1)
self.size_width.setObjectName(u"size_width")
self.size_width.setMinimum(1)
self.size_width.setMaximum(1280)
self.size_width.setSingleStep(16)
self.size_width.setValue(400)
self.hboxLayout1.addWidget(self.size_width)
self.size_height = QSpinBox(self.ButtonGroup1)
self.size_height.setObjectName(u"size_height")
self.size_height.setMinimum(1)
self.size_height.setMaximum(1024)
self.size_height.setSingleStep(16)
self.size_height.setValue(300)
self.hboxLayout1.addWidget(self.size_height)
self.vboxLayout1.addLayout(self.hboxLayout1)
self.hboxLayout.addWidget(self.ButtonGroup1)
self.ButtonGroup2 = QGroupBox(Config)
self.ButtonGroup2.setObjectName(u"ButtonGroup2")
self.vboxLayout2 = QVBoxLayout(self.ButtonGroup2)
self.vboxLayout2.setSpacing(6)
self.vboxLayout2.setContentsMargins(11, 11, 11, 11)
self.vboxLayout2.setObjectName(u"vboxLayout2")
self.vboxLayout2.setContentsMargins(11, 11, 11, 11)
self.depth_1 = QRadioButton(self.ButtonGroup2)
self.depth_1.setObjectName(u"depth_1")
self.vboxLayout2.addWidget(self.depth_1)
self.depth_4gray = QRadioButton(self.ButtonGroup2)
self.depth_4gray.setObjectName(u"depth_4gray")
self.vboxLayout2.addWidget(self.depth_4gray)
self.depth_8 = QRadioButton(self.ButtonGroup2)
self.depth_8.setObjectName(u"depth_8")
self.vboxLayout2.addWidget(self.depth_8)
self.depth_12 = QRadioButton(self.ButtonGroup2)
self.depth_12.setObjectName(u"depth_12")
self.vboxLayout2.addWidget(self.depth_12)
self.depth_15 = QRadioButton(self.ButtonGroup2)
self.depth_15.setObjectName(u"depth_15")
self.vboxLayout2.addWidget(self.depth_15)
self.depth_16 = QRadioButton(self.ButtonGroup2)
self.depth_16.setObjectName(u"depth_16")
self.vboxLayout2.addWidget(self.depth_16)
self.depth_18 = QRadioButton(self.ButtonGroup2)
self.depth_18.setObjectName(u"depth_18")
self.vboxLayout2.addWidget(self.depth_18)
self.depth_24 = QRadioButton(self.ButtonGroup2)
self.depth_24.setObjectName(u"depth_24")
self.vboxLayout2.addWidget(self.depth_24)
self.depth_32 = QRadioButton(self.ButtonGroup2)
self.depth_32.setObjectName(u"depth_32")
self.vboxLayout2.addWidget(self.depth_32)
self.depth_32_argb = QRadioButton(self.ButtonGroup2)
self.depth_32_argb.setObjectName(u"depth_32_argb")
self.vboxLayout2.addWidget(self.depth_32_argb)
self.hboxLayout.addWidget(self.ButtonGroup2)
self.vboxLayout.addLayout(self.hboxLayout)
self.hboxLayout2 = QHBoxLayout()
self.hboxLayout2.setSpacing(6)
self.hboxLayout2.setObjectName(u"hboxLayout2")
self.hboxLayout2.setContentsMargins(0, 0, 0, 0)
self.TextLabel1_3 = QLabel(Config)
self.TextLabel1_3.setObjectName(u"TextLabel1_3")
self.hboxLayout2.addWidget(self.TextLabel1_3)
self.skin = QComboBox(Config)
self.skin.addItem("")
self.skin.setObjectName(u"skin")
sizePolicy2 = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed)
sizePolicy2.setHorizontalStretch(0)
sizePolicy2.setVerticalStretch(0)
sizePolicy2.setHeightForWidth(self.skin.sizePolicy().hasHeightForWidth())
self.skin.setSizePolicy(sizePolicy2)
self.hboxLayout2.addWidget(self.skin)
self.vboxLayout.addLayout(self.hboxLayout2)
self.touchScreen = QCheckBox(Config)
self.touchScreen.setObjectName(u"touchScreen")
self.vboxLayout.addWidget(self.touchScreen)
self.lcdScreen = QCheckBox(Config)
self.lcdScreen.setObjectName(u"lcdScreen")
self.vboxLayout.addWidget(self.lcdScreen)
self.spacerItem = QSpacerItem(20, 10, QSizePolicy.Minimum, QSizePolicy.Expanding)
self.vboxLayout.addItem(self.spacerItem)
self.TextLabel1 = QLabel(Config)
self.TextLabel1.setObjectName(u"TextLabel1")
sizePolicy.setHeightForWidth(self.TextLabel1.sizePolicy().hasHeightForWidth())
self.TextLabel1.setSizePolicy(sizePolicy)
self.TextLabel1.setWordWrap(True)
self.vboxLayout.addWidget(self.TextLabel1)
self.GroupBox1 = QGroupBox(Config)
self.GroupBox1.setObjectName(u"GroupBox1")
self.gridLayout = QGridLayout(self.GroupBox1)
self.gridLayout.setSpacing(6)
self.gridLayout.setContentsMargins(11, 11, 11, 11)
self.gridLayout.setObjectName(u"gridLayout")
self.gridLayout.setHorizontalSpacing(6)
self.gridLayout.setVerticalSpacing(6)
self.gridLayout.setContentsMargins(11, 11, 11, 11)
self.TextLabel3 = QLabel(self.GroupBox1)
self.TextLabel3.setObjectName(u"TextLabel3")
self.gridLayout.addWidget(self.TextLabel3, 6, 0, 1, 1)
self.bslider = QSlider(self.GroupBox1)
self.bslider.setObjectName(u"bslider")
palette = QPalette()
brush = QBrush(QColor(128, 128, 128, 255))
brush.setStyle(Qt.SolidPattern)
palette.setBrush(QPalette.Active, QPalette.WindowText, brush)
brush1 = QBrush(QColor(0, 0, 255, 255))
brush1.setStyle(Qt.SolidPattern)
palette.setBrush(QPalette.Active, QPalette.Button, brush1)
brush2 = QBrush(QColor(127, 127, 255, 255))
brush2.setStyle(Qt.SolidPattern)
palette.setBrush(QPalette.Active, QPalette.Light, brush2)
brush3 = QBrush(QColor(38, 38, 255, 255))
brush3.setStyle(Qt.SolidPattern)
palette.setBrush(QPalette.Active, QPalette.Midlight, brush3)
brush4 = QBrush(QColor(0, 0, 127, 255))
brush4.setStyle(Qt.SolidPattern)
palette.setBrush(QPalette.Active, QPalette.Dark, brush4)
brush5 = QBrush(QColor(0, 0, 170, 255))
brush5.setStyle(Qt.SolidPattern)
palette.setBrush(QPalette.Active, QPalette.Mid, brush5)
brush6 = QBrush(QColor(0, 0, 0, 255))
brush6.setStyle(Qt.SolidPattern)
palette.setBrush(QPalette.Active, QPalette.Text, brush6)
brush7 = QBrush(QColor(255, 255, 255, 255))
brush7.setStyle(Qt.SolidPattern)
palette.setBrush(QPalette.Active, QPalette.BrightText, brush7)
palette.setBrush(QPalette.Active, QPalette.ButtonText, brush)
palette.setBrush(QPalette.Active, QPalette.Base, brush7)
brush8 = QBrush(QColor(220, 220, 220, 255))
brush8.setStyle(Qt.SolidPattern)
palette.setBrush(QPalette.Active, QPalette.Window, brush8)
palette.setBrush(QPalette.Active, QPalette.Shadow, brush6)
brush9 = QBrush(QColor(10, 95, 137, 255))
brush9.setStyle(Qt.SolidPattern)
palette.setBrush(QPalette.Active, QPalette.Highlight, brush9)
palette.setBrush(QPalette.Active, QPalette.HighlightedText, brush7)
palette.setBrush(QPalette.Active, QPalette.Link, brush6)
palette.setBrush(QPalette.Active, QPalette.LinkVisited, brush6)
brush10 = QBrush(QColor(232, 232, 232, 255))
brush10.setStyle(Qt.SolidPattern)
palette.setBrush(QPalette.Active, QPalette.AlternateBase, brush10)
palette.setBrush(QPalette.Inactive, QPalette.WindowText, brush)
palette.setBrush(QPalette.Inactive, QPalette.Button, brush1)
palette.setBrush(QPalette.Inactive, QPalette.Light, brush2)
palette.setBrush(QPalette.Inactive, QPalette.Midlight, brush3)
palette.setBrush(QPalette.Inactive, QPalette.Dark, brush4)
palette.setBrush(QPalette.Inactive, QPalette.Mid, brush5)
palette.setBrush(QPalette.Inactive, QPalette.Text, brush6)
palette.setBrush(QPalette.Inactive, QPalette.BrightText, brush7)
palette.setBrush(QPalette.Inactive, QPalette.ButtonText, brush)
palette.setBrush(QPalette.Inactive, QPalette.Base, brush7)
palette.setBrush(QPalette.Inactive, QPalette.Window, brush8)
palette.setBrush(QPalette.Inactive, QPalette.Shadow, brush6)
palette.setBrush(QPalette.Inactive, QPalette.Highlight, brush9)
palette.setBrush(QPalette.Inactive, QPalette.HighlightedText, brush7)
palette.setBrush(QPalette.Inactive, QPalette.Link, brush6)
palette.setBrush(QPalette.Inactive, QPalette.LinkVisited, brush6)
palette.setBrush(QPalette.Inactive, QPalette.AlternateBase, brush10)
palette.setBrush(QPalette.Disabled, QPalette.WindowText, brush)
palette.setBrush(QPalette.Disabled, QPalette.Button, brush1)
palette.setBrush(QPalette.Disabled, QPalette.Light, brush2)
palette.setBrush(QPalette.Disabled, QPalette.Midlight, brush3)
palette.setBrush(QPalette.Disabled, QPalette.Dark, brush4)
palette.setBrush(QPalette.Disabled, QPalette.Mid, brush5)
palette.setBrush(QPalette.Disabled, QPalette.Text, brush6)
palette.setBrush(QPalette.Disabled, QPalette.BrightText, brush7)
palette.setBrush(QPalette.Disabled, QPalette.ButtonText, brush)
palette.setBrush(QPalette.Disabled, QPalette.Base, brush7)
palette.setBrush(QPalette.Disabled, QPalette.Window, brush8)
palette.setBrush(QPalette.Disabled, QPalette.Shadow, brush6)
palette.setBrush(QPalette.Disabled, QPalette.Highlight, brush9)
palette.setBrush(QPalette.Disabled, QPalette.HighlightedText, brush7)
palette.setBrush(QPalette.Disabled, QPalette.Link, brush6)
palette.setBrush(QPalette.Disabled, QPalette.LinkVisited, brush6)
palette.setBrush(QPalette.Disabled, QPalette.AlternateBase, brush10)
self.bslider.setPalette(palette)
self.bslider.setMaximum(400)
self.bslider.setValue(100)
self.bslider.setOrientation(Qt.Horizontal)
self.gridLayout.addWidget(self.bslider, 6, 1, 1, 1)
self.blabel = QLabel(self.GroupBox1)
self.blabel.setObjectName(u"blabel")
self.gridLayout.addWidget(self.blabel, 6, 2, 1, 1)
self.TextLabel2 = QLabel(self.GroupBox1)
self.TextLabel2.setObjectName(u"TextLabel2")
self.gridLayout.addWidget(self.TextLabel2, 4, 0, 1, 1)
self.gslider = QSlider(self.GroupBox1)
self.gslider.setObjectName(u"gslider")
palette1 = QPalette()
palette1.setBrush(QPalette.Active, QPalette.WindowText, brush)
brush11 = QBrush(QColor(0, 255, 0, 255))
brush11.setStyle(Qt.SolidPattern)
palette1.setBrush(QPalette.Active, QPalette.Button, brush11)
brush12 = QBrush(QColor(127, 255, 127, 255))
brush12.setStyle(Qt.SolidPattern)
palette1.setBrush(QPalette.Active, QPalette.Light, brush12)
brush13 = QBrush(QColor(38, 255, 38, 255))
brush13.setStyle(Qt.SolidPattern)
palette1.setBrush(QPalette.Active, QPalette.Midlight, brush13)
brush14 = QBrush(QColor(0, 127, 0, 255))
brush14.setStyle(Qt.SolidPattern)
palette1.setBrush(QPalette.Active, QPalette.Dark, brush14)
brush15 = QBrush(QColor(0, 170, 0, 255))
brush15.setStyle(Qt.SolidPattern)
palette1.setBrush(QPalette.Active, QPalette.Mid, brush15)
palette1.setBrush(QPalette.Active, QPalette.Text, brush6)
palette1.setBrush(QPalette.Active, QPalette.BrightText, brush7)
palette1.setBrush(QPalette.Active, QPalette.ButtonText, brush)
palette1.setBrush(QPalette.Active, QPalette.Base, brush7)
palette1.setBrush(QPalette.Active, QPalette.Window, brush8)
palette1.setBrush(QPalette.Active, QPalette.Shadow, brush6)
palette1.setBrush(QPalette.Active, QPalette.Highlight, brush9)
palette1.setBrush(QPalette.Active, QPalette.HighlightedText, brush7)
palette1.setBrush(QPalette.Active, QPalette.Link, brush6)
palette1.setBrush(QPalette.Active, QPalette.LinkVisited, brush6)
palette1.setBrush(QPalette.Active, QPalette.AlternateBase, brush10)
palette1.setBrush(QPalette.Inactive, QPalette.WindowText, brush)
palette1.setBrush(QPalette.Inactive, QPalette.Button, brush11)
palette1.setBrush(QPalette.Inactive, QPalette.Light, brush12)
palette1.setBrush(QPalette.Inactive, QPalette.Midlight, brush13)
palette1.setBrush(QPalette.Inactive, QPalette.Dark, brush14)
palette1.setBrush(QPalette.Inactive, QPalette.Mid, brush15)
palette1.setBrush(QPalette.Inactive, QPalette.Text, brush6)
palette1.setBrush(QPalette.Inactive, QPalette.BrightText, brush7)
palette1.setBrush(QPalette.Inactive, QPalette.ButtonText, brush)
palette1.setBrush(QPalette.Inactive, QPalette.Base, brush7)
palette1.setBrush(QPalette.Inactive, QPalette.Window, brush8)
palette1.setBrush(QPalette.Inactive, QPalette.Shadow, brush6)
palette1.setBrush(QPalette.Inactive, QPalette.Highlight, brush9)
palette1.setBrush(QPalette.Inactive, QPalette.HighlightedText, brush7)
palette1.setBrush(QPalette.Inactive, QPalette.Link, brush6)
palette1.setBrush(QPalette.Inactive, QPalette.LinkVisited, brush6)
palette1.setBrush(QPalette.Inactive, QPalette.AlternateBase, brush10)
palette1.setBrush(QPalette.Disabled, QPalette.WindowText, brush)
palette1.setBrush(QPalette.Disabled, QPalette.Button, brush11)
palette1.setBrush(QPalette.Disabled, QPalette.Light, brush12)
palette1.setBrush(QPalette.Disabled, QPalette.Midlight, brush13)
palette1.setBrush(QPalette.Disabled, QPalette.Dark, brush14)
palette1.setBrush(QPalette.Disabled, QPalette.Mid, brush15)
palette1.setBrush(QPalette.Disabled, QPalette.Text, brush6)
palette1.setBrush(QPalette.Disabled, QPalette.BrightText, brush7)
palette1.setBrush(QPalette.Disabled, QPalette.ButtonText, brush)
palette1.setBrush(QPalette.Disabled, QPalette.Base, brush7)
palette1.setBrush(QPalette.Disabled, QPalette.Window, brush8)
palette1.setBrush(QPalette.Disabled, QPalette.Shadow, brush6)
palette1.setBrush(QPalette.Disabled, QPalette.Highlight, brush9)
palette1.setBrush(QPalette.Disabled, QPalette.HighlightedText, brush7)
palette1.setBrush(QPalette.Disabled, QPalette.Link, brush6)
palette1.setBrush(QPalette.Disabled, QPalette.LinkVisited, brush6)
palette1.setBrush(QPalette.Disabled, QPalette.AlternateBase, brush10)
self.gslider.setPalette(palette1)
self.gslider.setMaximum(400)
self.gslider.setValue(100)
self.gslider.setOrientation(Qt.Horizontal)
self.gridLayout.addWidget(self.gslider, 4, 1, 1, 1)
self.glabel = QLabel(self.GroupBox1)
self.glabel.setObjectName(u"glabel")
self.gridLayout.addWidget(self.glabel, 4, 2, 1, 1)
self.TextLabel7 = QLabel(self.GroupBox1)
self.TextLabel7.setObjectName(u"TextLabel7")
self.gridLayout.addWidget(self.TextLabel7, 0, 0, 1, 1)
self.TextLabel8 = QLabel(self.GroupBox1)
self.TextLabel8.setObjectName(u"TextLabel8")
self.gridLayout.addWidget(self.TextLabel8, 0, 2, 1, 1)
self.gammaslider = QSlider(self.GroupBox1)
self.gammaslider.setObjectName(u"gammaslider")
palette2 = QPalette()
palette2.setBrush(QPalette.Active, QPalette.WindowText, brush)
palette2.setBrush(QPalette.Active, QPalette.Button, brush7)
palette2.setBrush(QPalette.Active, QPalette.Light, brush7)
palette2.setBrush(QPalette.Active, QPalette.Midlight, brush7)
brush16 = QBrush(QColor(127, 127, 127, 255))
brush16.setStyle(Qt.SolidPattern)
palette2.setBrush(QPalette.Active, QPalette.Dark, brush16)
brush17 = QBrush(QColor(170, 170, 170, 255))
brush17.setStyle(Qt.SolidPattern)
palette2.setBrush(QPalette.Active, QPalette.Mid, brush17)
palette2.setBrush(QPalette.Active, QPalette.Text, brush6)
palette2.setBrush(QPalette.Active, QPalette.BrightText, brush7)
palette2.setBrush(QPalette.Active, QPalette.ButtonText, brush)
palette2.setBrush(QPalette.Active, QPalette.Base, brush7)
palette2.setBrush(QPalette.Active, QPalette.Window, brush8)
palette2.setBrush(QPalette.Active, QPalette.Shadow, brush6)
palette2.setBrush(QPalette.Active, QPalette.Highlight, brush9)
palette2.setBrush(QPalette.Active, QPalette.HighlightedText, brush7)
palette2.setBrush(QPalette.Active, QPalette.Link, brush6)
palette2.setBrush(QPalette.Active, QPalette.LinkVisited, brush6)
palette2.setBrush(QPalette.Active, QPalette.AlternateBase, brush10)
palette2.setBrush(QPalette.Inactive, QPalette.WindowText, brush)
palette2.setBrush(QPalette.Inactive, QPalette.Button, brush7)
palette2.setBrush(QPalette.Inactive, QPalette.Light, brush7)
palette2.setBrush(QPalette.Inactive, QPalette.Midlight, brush7)
palette2.setBrush(QPalette.Inactive, QPalette.Dark, brush16)
palette2.setBrush(QPalette.Inactive, QPalette.Mid, brush17)
palette2.setBrush(QPalette.Inactive, QPalette.Text, brush6)
palette2.setBrush(QPalette.Inactive, QPalette.BrightText, brush7)
palette2.setBrush(QPalette.Inactive, QPalette.ButtonText, brush)
palette2.setBrush(QPalette.Inactive, QPalette.Base, brush7)
palette2.setBrush(QPalette.Inactive, QPalette.Window, brush8)
palette2.setBrush(QPalette.Inactive, QPalette.Shadow, brush6)
palette2.setBrush(QPalette.Inactive, QPalette.Highlight, brush9)
palette2.setBrush(QPalette.Inactive, QPalette.HighlightedText, brush7)
palette2.setBrush(QPalette.Inactive, QPalette.Link, brush6)
palette2.setBrush(QPalette.Inactive, QPalette.LinkVisited, brush6)
palette2.setBrush(QPalette.Inactive, QPalette.AlternateBase, brush10)
palette2.setBrush(QPalette.Disabled, QPalette.WindowText, brush)
palette2.setBrush(QPalette.Disabled, QPalette.Button, brush7)
palette2.setBrush(QPalette.Disabled, QPalette.Light, brush7)
palette2.setBrush(QPalette.Disabled, QPalette.Midlight, brush7)
palette2.setBrush(QPalette.Disabled, QPalette.Dark, brush16)
palette2.setBrush(QPalette.Disabled, QPalette.Mid, brush17)
palette2.setBrush(QPalette.Disabled, QPalette.Text, brush6)
palette2.setBrush(QPalette.Disabled, QPalette.BrightText, brush7)
palette2.setBrush(QPalette.Disabled, QPalette.ButtonText, brush)
palette2.setBrush(QPalette.Disabled, QPalette.Base, brush7)
palette2.setBrush(QPalette.Disabled, QPalette.Window, brush8)
palette2.setBrush(QPalette.Disabled, QPalette.Shadow, brush6)
palette2.setBrush(QPalette.Disabled, QPalette.Highlight, brush9)
palette2.setBrush(QPalette.Disabled, QPalette.HighlightedText, brush7)
palette2.setBrush(QPalette.Disabled, QPalette.Link, brush6)
palette2.setBrush(QPalette.Disabled, QPalette.LinkVisited, brush6)
palette2.setBrush(QPalette.Disabled, QPalette.AlternateBase, brush10)
self.gammaslider.setPalette(palette2)
self.gammaslider.setMaximum(400)
self.gammaslider.setValue(100)
self.gammaslider.setOrientation(Qt.Horizontal)
self.gridLayout.addWidget(self.gammaslider, 0, 1, 1, 1)
self.TextLabel1_2 = QLabel(self.GroupBox1)
self.TextLabel1_2.setObjectName(u"TextLabel1_2")
self.gridLayout.addWidget(self.TextLabel1_2, 2, 0, 1, 1)
self.rlabel = QLabel(self.GroupBox1)
self.rlabel.setObjectName(u"rlabel")
self.gridLayout.addWidget(self.rlabel, 2, 2, 1, 1)
self.rslider = QSlider(self.GroupBox1)
self.rslider.setObjectName(u"rslider")
palette3 = QPalette()
palette3.setBrush(QPalette.Active, QPalette.WindowText, brush)
brush18 = QBrush(QColor(255, 0, 0, 255))
brush18.setStyle(Qt.SolidPattern)
palette3.setBrush(QPalette.Active, QPalette.Button, brush18)
brush19 = QBrush(QColor(255, 127, 127, 255))
brush19.setStyle(Qt.SolidPattern)
palette3.setBrush(QPalette.Active, QPalette.Light, brush19)
brush20 = QBrush(QColor(255, 38, 38, 255))
brush20.setStyle(Qt.SolidPattern)
palette3.setBrush(QPalette.Active, QPalette.Midlight, brush20)
brush21 = QBrush(QColor(127, 0, 0, 255))
brush21.setStyle(Qt.SolidPattern)
palette3.setBrush(QPalette.Active, QPalette.Dark, brush21)
brush22 = QBrush(QColor(170, 0, 0, 255))
brush22.setStyle(Qt.SolidPattern)
palette3.setBrush(QPalette.Active, QPalette.Mid, brush22)
palette3.setBrush(QPalette.Active, QPalette.Text, brush6)
palette3.setBrush(QPalette.Active, QPalette.BrightText, brush7)
palette3.setBrush(QPalette.Active, QPalette.ButtonText, brush)
palette3.setBrush(QPalette.Active, QPalette.Base, brush7)
palette3.setBrush(QPalette.Active, QPalette.Window, brush8)
palette3.setBrush(QPalette.Active, QPalette.Shadow, brush6)
palette3.setBrush(QPalette.Active, QPalette.Highlight, brush9)
palette3.setBrush(QPalette.Active, QPalette.HighlightedText, brush7)
palette3.setBrush(QPalette.Active, QPalette.Link, brush6)
palette3.setBrush(QPalette.Active, QPalette.LinkVisited, brush6)
palette3.setBrush(QPalette.Active, QPalette.AlternateBase, brush10)
palette3.setBrush(QPalette.Inactive, QPalette.WindowText, brush)
palette3.setBrush(QPalette.Inactive, QPalette.Button, brush18)
palette3.setBrush(QPalette.Inactive, QPalette.Light, brush19)
palette3.setBrush(QPalette.Inactive, QPalette.Midlight, brush20)
palette3.setBrush(QPalette.Inactive, QPalette.Dark, brush21)
palette3.setBrush(QPalette.Inactive, QPalette.Mid, brush22)
palette3.setBrush(QPalette.Inactive, QPalette.Text, brush6)
palette3.setBrush(QPalette.Inactive, QPalette.BrightText, brush7)
palette3.setBrush(QPalette.Inactive, QPalette.ButtonText, brush)
palette3.setBrush(QPalette.Inactive, QPalette.Base, brush7)
palette3.setBrush(QPalette.Inactive, QPalette.Window, brush8)
palette3.setBrush(QPalette.Inactive, QPalette.Shadow, brush6)
palette3.setBrush(QPalette.Inactive, QPalette.Highlight, brush9)
palette3.setBrush(QPalette.Inactive, QPalette.HighlightedText, brush7)
palette3.setBrush(QPalette.Inactive, QPalette.Link, brush6)
palette3.setBrush(QPalette.Inactive, QPalette.LinkVisited, brush6)
palette3.setBrush(QPalette.Inactive, QPalette.AlternateBase, brush10)
palette3.setBrush(QPalette.Disabled, QPalette.WindowText, brush)
palette3.setBrush(QPalette.Disabled, QPalette.Button, brush18)
palette3.setBrush(QPalette.Disabled, QPalette.Light, brush19)
palette3.setBrush(QPalette.Disabled, QPalette.Midlight, brush20)
palette3.setBrush(QPalette.Disabled, QPalette.Dark, brush21)
palette3.setBrush(QPalette.Disabled, QPalette.Mid, brush22)
palette3.setBrush(QPalette.Disabled, QPalette.Text, brush6)
palette3.setBrush(QPalette.Disabled, QPalette.BrightText, brush7)
palette3.setBrush(QPalette.Disabled, QPalette.ButtonText, brush)
palette3.setBrush(QPalette.Disabled, QPalette.Base, brush7)
palette3.setBrush(QPalette.Disabled, QPalette.Window, brush8)
palette3.setBrush(QPalette.Disabled, QPalette.Shadow, brush6)
palette3.setBrush(QPalette.Disabled, QPalette.Highlight, brush9)
palette3.setBrush(QPalette.Disabled, QPalette.HighlightedText, brush7)
palette3.setBrush(QPalette.Disabled, QPalette.Link, brush6)
palette3.setBrush(QPalette.Disabled, QPalette.LinkVisited, brush6)
palette3.setBrush(QPalette.Disabled, QPalette.AlternateBase, brush10)
self.rslider.setPalette(palette3)
self.rslider.setMaximum(400)
self.rslider.setValue(100)
self.rslider.setOrientation(Qt.Horizontal)
self.gridLayout.addWidget(self.rslider, 2, 1, 1, 1)
self.PushButton3 = QPushButton(self.GroupBox1)
self.PushButton3.setObjectName(u"PushButton3")
self.gridLayout.addWidget(self.PushButton3, 8, 0, 1, 3)
self.MyCustomWidget1 = GammaView(self.GroupBox1)
self.MyCustomWidget1.setObjectName(u"MyCustomWidget1")
self.gridLayout.addWidget(self.MyCustomWidget1, 0, 3, 9, 1)
self.vboxLayout.addWidget(self.GroupBox1)
self.hboxLayout3 = QHBoxLayout()
self.hboxLayout3.setSpacing(6)
self.hboxLayout3.setObjectName(u"hboxLayout3")
self.hboxLayout3.setContentsMargins(0, 0, 0, 0)
self.spacerItem1 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
self.hboxLayout3.addItem(self.spacerItem1)
self.buttonOk = QPushButton(Config)
self.buttonOk.setObjectName(u"buttonOk")
self.buttonOk.setAutoDefault(True)
self.hboxLayout3.addWidget(self.buttonOk)
self.buttonCancel = QPushButton(Config)
self.buttonCancel.setObjectName(u"buttonCancel")
self.buttonCancel.setAutoDefault(True)
self.hboxLayout3.addWidget(self.buttonCancel)
self.vboxLayout.addLayout(self.hboxLayout3)
self.retranslateUi(Config)
self.size_width.valueChanged.connect(self.size_custom.click)
self.size_height.valueChanged.connect(self.size_custom.click)
self.buttonOk.setDefault(True)
QMetaObject.connectSlotsByName(Config)
# setupUi
def retranslateUi(self, Config):
Config.setWindowTitle(QCoreApplication.translate("Config", u"Configure", None))
self.ButtonGroup1.setTitle(QCoreApplication.translate("Config", u"Size", None))
self.size_176_220.setText(QCoreApplication.translate("Config", u"176x220 \"SmartPhone\"", None))
self.size_240_320.setText(QCoreApplication.translate("Config", u"240x320 \"PDA\"", None))
self.size_320_240.setText(QCoreApplication.translate("Config", u"320x240 \"TV\" / \"QVGA\"", None))
self.size_640_480.setText(QCoreApplication.translate("Config", u"640x480 \"VGA\"", None))
self.size_800_600.setText(QCoreApplication.translate("Config", u"800x600", None))
self.size_1024_768.setText(QCoreApplication.translate("Config", u"1024x768", None))
self.size_custom.setText(QCoreApplication.translate("Config", u"Custom", None))
self.ButtonGroup2.setTitle(QCoreApplication.translate("Config", u"Depth", None))
self.depth_1.setText(QCoreApplication.translate("Config", u"1 bit monochrome", None))
self.depth_4gray.setText(QCoreApplication.translate("Config", u"4 bit grayscale", None))
self.depth_8.setText(QCoreApplication.translate("Config", u"8 bit", None))
self.depth_12.setText(QCoreApplication.translate("Config", u"12 (16) bit", None))
self.depth_15.setText(QCoreApplication.translate("Config", u"15 bit", None))
self.depth_16.setText(QCoreApplication.translate("Config", u"16 bit", None))
self.depth_18.setText(QCoreApplication.translate("Config", u"18 bit", None))
self.depth_24.setText(QCoreApplication.translate("Config", u"24 bit", None))
self.depth_32.setText(QCoreApplication.translate("Config", u"32 bit", None))
self.depth_32_argb.setText(QCoreApplication.translate("Config", u"32 bit ARGB", None))
self.TextLabel1_3.setText(QCoreApplication.translate("Config", u"Skin", None))
self.skin.setItemText(0, QCoreApplication.translate("Config", u"None", None))
self.touchScreen.setText(QCoreApplication.translate("Config", u"Emulate touch screen (no mouse move)", None))
self.lcdScreen.setText(QCoreApplication.translate("Config", u"Emulate LCD screen (Only with fixed zoom of 3.0 times magnification)", None))
self.TextLabel1.setText(QCoreApplication.translate("Config", u"<p>Note that any applications using the virtual framebuffer will be terminated if you change the Size or Depth <i>above</i>. You may freely modify the Gamma <i>below</i>.", None))
self.GroupBox1.setTitle(QCoreApplication.translate("Config", u"Gamma", None))
self.TextLabel3.setText(QCoreApplication.translate("Config", u"Blue", None))
self.blabel.setText(QCoreApplication.translate("Config", u"1.0", None))
self.TextLabel2.setText(QCoreApplication.translate("Config", u"Green", None))
self.glabel.setText(QCoreApplication.translate("Config", u"1.0", None))
self.TextLabel7.setText(QCoreApplication.translate("Config", u"All", None))
self.TextLabel8.setText(QCoreApplication.translate("Config", u"1.0", None))
self.TextLabel1_2.setText(QCoreApplication.translate("Config", u"Red", None))
self.rlabel.setText(QCoreApplication.translate("Config", u"1.0", None))
self.PushButton3.setText(QCoreApplication.translate("Config", u"Set all to 1.0", None))
self.buttonOk.setText(QCoreApplication.translate("Config", u"&OK", None))
self.buttonCancel.setText(QCoreApplication.translate("Config", u"&Cancel", None))
# retranslateUi

View File

@ -0,0 +1,150 @@
<ui version="4.0" >
<class>ConnectDialog</class>
<widget class="QDialog" name="ConnectDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>585</width>
<height>361</height>
</rect>
</property>
<property name="windowTitle" >
<string>Configure Connection</string>
</property>
<layout class="QGridLayout" >
<item row="0" column="0" colspan="2" >
<widget class="QGroupBox" name="signalGroupBox" >
<property name="title" >
<string>GroupBox</string>
</property>
<layout class="QVBoxLayout" >
<item>
<widget class="QListWidget" name="signalList" >
<property name="textElideMode" >
<enum>Qt::ElideMiddle</enum>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<item>
<widget class="QToolButton" name="editSignalsButton" >
<property name="text" >
<string>Edit...</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item row="0" column="2" >
<widget class="QGroupBox" name="slotGroupBox" >
<property name="title" >
<string>GroupBox</string>
</property>
<layout class="QVBoxLayout" >
<item>
<widget class="QListWidget" name="slotList" >
<property name="textElideMode" >
<enum>Qt::ElideMiddle</enum>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<item>
<widget class="QToolButton" name="editSlotsButton" >
<property name="text" >
<string>Edit...</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item row="1" column="0" >
<widget class="QCheckBox" name="showAllCheckBox" >
<property name="text" >
<string>Show signals and slots inherited from QWidget</string>
</property>
</widget>
</item>
<item row="2" column="1" colspan="2" >
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>ConnectDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel" >
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>ConnectDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel" >
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel" >
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -0,0 +1,146 @@
/********************************************************************************
** Form generated from reading UI file 'connectdialog.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef CONNECTDIALOG_H
#define CONNECTDIALOG_H
#include <QtCore/QVariant>
#include <QtWidgets/QAbstractButton>
#include <QtWidgets/QApplication>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QListWidget>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QToolButton>
#include <QtWidgets/QVBoxLayout>
QT_BEGIN_NAMESPACE
class Ui_ConnectDialog
{
public:
QGridLayout *gridLayout;
QGroupBox *signalGroupBox;
QVBoxLayout *vboxLayout;
QListWidget *signalList;
QHBoxLayout *hboxLayout;
QToolButton *editSignalsButton;
QSpacerItem *spacerItem;
QGroupBox *slotGroupBox;
QVBoxLayout *vboxLayout1;
QListWidget *slotList;
QHBoxLayout *hboxLayout1;
QToolButton *editSlotsButton;
QSpacerItem *spacerItem1;
QCheckBox *showAllCheckBox;
QDialogButtonBox *buttonBox;
void setupUi(QDialog *ConnectDialog)
{
if (ConnectDialog->objectName().isEmpty())
ConnectDialog->setObjectName("ConnectDialog");
ConnectDialog->resize(585, 361);
gridLayout = new QGridLayout(ConnectDialog);
gridLayout->setObjectName("gridLayout");
signalGroupBox = new QGroupBox(ConnectDialog);
signalGroupBox->setObjectName("signalGroupBox");
vboxLayout = new QVBoxLayout(signalGroupBox);
vboxLayout->setObjectName("vboxLayout");
signalList = new QListWidget(signalGroupBox);
signalList->setObjectName("signalList");
signalList->setTextElideMode(Qt::ElideMiddle);
vboxLayout->addWidget(signalList);
hboxLayout = new QHBoxLayout();
hboxLayout->setObjectName("hboxLayout");
editSignalsButton = new QToolButton(signalGroupBox);
editSignalsButton->setObjectName("editSignalsButton");
hboxLayout->addWidget(editSignalsButton);
spacerItem = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout->addItem(spacerItem);
vboxLayout->addLayout(hboxLayout);
gridLayout->addWidget(signalGroupBox, 0, 0, 1, 2);
slotGroupBox = new QGroupBox(ConnectDialog);
slotGroupBox->setObjectName("slotGroupBox");
vboxLayout1 = new QVBoxLayout(slotGroupBox);
vboxLayout1->setObjectName("vboxLayout1");
slotList = new QListWidget(slotGroupBox);
slotList->setObjectName("slotList");
slotList->setTextElideMode(Qt::ElideMiddle);
vboxLayout1->addWidget(slotList);
hboxLayout1 = new QHBoxLayout();
hboxLayout1->setObjectName("hboxLayout1");
editSlotsButton = new QToolButton(slotGroupBox);
editSlotsButton->setObjectName("editSlotsButton");
hboxLayout1->addWidget(editSlotsButton);
spacerItem1 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout1->addItem(spacerItem1);
vboxLayout1->addLayout(hboxLayout1);
gridLayout->addWidget(slotGroupBox, 0, 2, 1, 1);
showAllCheckBox = new QCheckBox(ConnectDialog);
showAllCheckBox->setObjectName("showAllCheckBox");
gridLayout->addWidget(showAllCheckBox, 1, 0, 1, 1);
buttonBox = new QDialogButtonBox(ConnectDialog);
buttonBox->setObjectName("buttonBox");
buttonBox->setOrientation(Qt::Horizontal);
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok);
gridLayout->addWidget(buttonBox, 2, 1, 1, 2);
retranslateUi(ConnectDialog);
QObject::connect(buttonBox, &QDialogButtonBox::accepted, ConnectDialog, qOverload<>(&QDialog::accept));
QObject::connect(buttonBox, &QDialogButtonBox::rejected, ConnectDialog, qOverload<>(&QDialog::reject));
QMetaObject::connectSlotsByName(ConnectDialog);
} // setupUi
void retranslateUi(QDialog *ConnectDialog)
{
ConnectDialog->setWindowTitle(QCoreApplication::translate("ConnectDialog", "Configure Connection", nullptr));
signalGroupBox->setTitle(QCoreApplication::translate("ConnectDialog", "GroupBox", nullptr));
editSignalsButton->setText(QCoreApplication::translate("ConnectDialog", "Edit...", nullptr));
slotGroupBox->setTitle(QCoreApplication::translate("ConnectDialog", "GroupBox", nullptr));
editSlotsButton->setText(QCoreApplication::translate("ConnectDialog", "Edit...", nullptr));
showAllCheckBox->setText(QCoreApplication::translate("ConnectDialog", "Show signals and slots inherited from QWidget", nullptr));
} // retranslateUi
};
namespace Ui {
class ConnectDialog: public Ui_ConnectDialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // CONNECTDIALOG_H

View File

@ -0,0 +1,64 @@
<ui version="4.0" >
<class>Controller</class>
<widget class="QWidget" name="Controller" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>255</width>
<height>111</height>
</rect>
</property>
<property name="windowTitle" >
<string>Controller</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="1" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Controller</string>
</property>
<property name="alignment" >
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QPushButton" name="decelerate" >
<property name="text" >
<string>Decelerate</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QPushButton" name="accelerate" >
<property name="text" >
<string>Accelerate</string>
</property>
</widget>
</item>
<item row="1" column="2" >
<widget class="QPushButton" name="right" >
<property name="text" >
<string>Right</string>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QPushButton" name="left" >
<property name="text" >
<string>Left</string>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,94 @@
/********************************************************************************
** Form generated from reading UI file 'controller.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef CONTROLLER_H
#define CONTROLLER_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_Controller
{
public:
QGridLayout *gridLayout;
QLabel *label;
QPushButton *decelerate;
QPushButton *accelerate;
QPushButton *right;
QPushButton *left;
void setupUi(QWidget *Controller)
{
if (Controller->objectName().isEmpty())
Controller->setObjectName("Controller");
Controller->resize(255, 111);
gridLayout = new QGridLayout(Controller);
#ifndef Q_OS_MAC
gridLayout->setSpacing(6);
#endif
#ifndef Q_OS_MAC
gridLayout->setContentsMargins(9, 9, 9, 9);
#endif
gridLayout->setObjectName("gridLayout");
label = new QLabel(Controller);
label->setObjectName("label");
label->setAlignment(Qt::AlignCenter);
gridLayout->addWidget(label, 1, 1, 1, 1);
decelerate = new QPushButton(Controller);
decelerate->setObjectName("decelerate");
gridLayout->addWidget(decelerate, 2, 1, 1, 1);
accelerate = new QPushButton(Controller);
accelerate->setObjectName("accelerate");
gridLayout->addWidget(accelerate, 0, 1, 1, 1);
right = new QPushButton(Controller);
right->setObjectName("right");
gridLayout->addWidget(right, 1, 2, 1, 1);
left = new QPushButton(Controller);
left->setObjectName("left");
gridLayout->addWidget(left, 1, 0, 1, 1);
retranslateUi(Controller);
QMetaObject::connectSlotsByName(Controller);
} // setupUi
void retranslateUi(QWidget *Controller)
{
Controller->setWindowTitle(QCoreApplication::translate("Controller", "Controller", nullptr));
label->setText(QCoreApplication::translate("Controller", "Controller", nullptr));
decelerate->setText(QCoreApplication::translate("Controller", "Decelerate", nullptr));
accelerate->setText(QCoreApplication::translate("Controller", "Accelerate", nullptr));
right->setText(QCoreApplication::translate("Controller", "Right", nullptr));
left->setText(QCoreApplication::translate("Controller", "Left", nullptr));
} // retranslateUi
};
namespace Ui {
class Controller: public Ui_Controller {};
} // namespace Ui
QT_END_NAMESPACE
#endif // CONTROLLER_H

View File

@ -0,0 +1,106 @@
<ui version="4.0" >
<class>CookiesDialog</class>
<widget class="QDialog" name="CookiesDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>550</width>
<height>370</height>
</rect>
</property>
<property name="windowTitle" >
<string>Cookies</string>
</property>
<layout class="QGridLayout" >
<item row="0" column="0" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>252</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1" >
<widget class="SearchLineEdit" name="search" />
</item>
<item row="1" column="0" colspan="2" >
<widget class="EditTableView" name="cookiesTable" />
</item>
<item row="2" column="0" colspan="2" >
<layout class="QHBoxLayout" >
<item>
<widget class="QPushButton" name="removeButton" >
<property name="text" >
<string>&amp;Remove</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="removeAllButton" >
<property name="text" >
<string>Remove &amp;All Cookies</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="standardButtons" >
<set>QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>SearchLineEdit</class>
<extends>QLineEdit</extends>
<header>searchlineedit.h</header>
</customwidget>
<customwidget>
<class>EditTableView</class>
<extends>QTableView</extends>
<header>edittableview.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>CookiesDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>472</x>
<y>329</y>
</hint>
<hint type="destinationlabel" >
<x>461</x>
<y>356</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -0,0 +1,108 @@
/********************************************************************************
** Form generated from reading UI file 'cookies.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef COOKIES_H
#define COOKIES_H
#include <QtCore/QVariant>
#include <QtWidgets/QAbstractButton>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include "edittableview.h"
#include "searchlineedit.h"
QT_BEGIN_NAMESPACE
class Ui_CookiesDialog
{
public:
QGridLayout *gridLayout;
QSpacerItem *spacerItem;
SearchLineEdit *search;
EditTableView *cookiesTable;
QHBoxLayout *hboxLayout;
QPushButton *removeButton;
QPushButton *removeAllButton;
QSpacerItem *spacerItem1;
QDialogButtonBox *buttonBox;
void setupUi(QDialog *CookiesDialog)
{
if (CookiesDialog->objectName().isEmpty())
CookiesDialog->setObjectName("CookiesDialog");
CookiesDialog->resize(550, 370);
gridLayout = new QGridLayout(CookiesDialog);
gridLayout->setObjectName("gridLayout");
spacerItem = new QSpacerItem(252, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout->addItem(spacerItem, 0, 0, 1, 1);
search = new SearchLineEdit(CookiesDialog);
search->setObjectName("search");
gridLayout->addWidget(search, 0, 1, 1, 1);
cookiesTable = new EditTableView(CookiesDialog);
cookiesTable->setObjectName("cookiesTable");
gridLayout->addWidget(cookiesTable, 1, 0, 1, 2);
hboxLayout = new QHBoxLayout();
hboxLayout->setObjectName("hboxLayout");
removeButton = new QPushButton(CookiesDialog);
removeButton->setObjectName("removeButton");
hboxLayout->addWidget(removeButton);
removeAllButton = new QPushButton(CookiesDialog);
removeAllButton->setObjectName("removeAllButton");
hboxLayout->addWidget(removeAllButton);
spacerItem1 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout->addItem(spacerItem1);
buttonBox = new QDialogButtonBox(CookiesDialog);
buttonBox->setObjectName("buttonBox");
buttonBox->setStandardButtons(QDialogButtonBox::Ok);
hboxLayout->addWidget(buttonBox);
gridLayout->addLayout(hboxLayout, 2, 0, 1, 2);
retranslateUi(CookiesDialog);
QObject::connect(buttonBox, &QDialogButtonBox::accepted, CookiesDialog, qOverload<>(&QDialog::accept));
QMetaObject::connectSlotsByName(CookiesDialog);
} // setupUi
void retranslateUi(QDialog *CookiesDialog)
{
CookiesDialog->setWindowTitle(QCoreApplication::translate("CookiesDialog", "Cookies", nullptr));
removeButton->setText(QCoreApplication::translate("CookiesDialog", "&Remove", nullptr));
removeAllButton->setText(QCoreApplication::translate("CookiesDialog", "Remove &All Cookies", nullptr));
} // retranslateUi
};
namespace Ui {
class CookiesDialog: public Ui_CookiesDialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // COOKIES_H

View File

@ -0,0 +1,184 @@
<ui version="4.0" >
<class>CookiesExceptionsDialog</class>
<widget class="QDialog" name="CookiesExceptionsDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>466</width>
<height>446</height>
</rect>
</property>
<property name="windowTitle" >
<string>Cookie Exceptions</string>
</property>
<layout class="QVBoxLayout" >
<item>
<widget class="QGroupBox" name="newExceptionGroupBox" >
<property name="title" >
<string>New Exception</string>
</property>
<layout class="QGridLayout" >
<item row="0" column="0" >
<layout class="QHBoxLayout" >
<item>
<widget class="QLabel" name="label" >
<property name="text" >
<string>Domain:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="domainLineEdit" />
</item>
</layout>
</item>
<item row="1" column="0" >
<layout class="QHBoxLayout" >
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>81</width>
<height>25</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="blockButton" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Block</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="allowForSessionButton" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Allow For Session</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="allowButton" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Allow</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="ExceptionsGroupBox" >
<property name="title" >
<string>Exceptions</string>
</property>
<layout class="QGridLayout" >
<item row="0" column="0" colspan="3" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>252</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="3" >
<widget class="SearchLineEdit" name="search" />
</item>
<item row="1" column="0" colspan="4" >
<widget class="EditTableView" name="exceptionTable" />
</item>
<item row="2" column="0" >
<widget class="QPushButton" name="removeButton" >
<property name="text" >
<string>&amp;Remove</string>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QPushButton" name="removeAllButton" >
<property name="text" >
<string>Remove &amp;All</string>
</property>
</widget>
</item>
<item row="2" column="2" colspan="2" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>SearchLineEdit</class>
<extends>QLineEdit</extends>
<header>searchlineedit.h</header>
</customwidget>
<customwidget>
<class>EditTableView</class>
<extends>QTableView</extends>
<header>edittableview.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>CookiesExceptionsDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>381</x>
<y>428</y>
</hint>
<hint type="destinationlabel" >
<x>336</x>
<y>443</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -0,0 +1,181 @@
/********************************************************************************
** Form generated from reading UI file 'cookiesexceptions.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef COOKIESEXCEPTIONS_H
#define COOKIESEXCEPTIONS_H
#include <QtCore/QVariant>
#include <QtWidgets/QAbstractButton>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QVBoxLayout>
#include "edittableview.h"
#include "searchlineedit.h"
QT_BEGIN_NAMESPACE
class Ui_CookiesExceptionsDialog
{
public:
QVBoxLayout *vboxLayout;
QGroupBox *newExceptionGroupBox;
QGridLayout *gridLayout;
QHBoxLayout *hboxLayout;
QLabel *label;
QLineEdit *domainLineEdit;
QHBoxLayout *hboxLayout1;
QSpacerItem *spacerItem;
QPushButton *blockButton;
QPushButton *allowForSessionButton;
QPushButton *allowButton;
QGroupBox *ExceptionsGroupBox;
QGridLayout *gridLayout1;
QSpacerItem *spacerItem1;
SearchLineEdit *search;
EditTableView *exceptionTable;
QPushButton *removeButton;
QPushButton *removeAllButton;
QSpacerItem *spacerItem2;
QDialogButtonBox *buttonBox;
void setupUi(QDialog *CookiesExceptionsDialog)
{
if (CookiesExceptionsDialog->objectName().isEmpty())
CookiesExceptionsDialog->setObjectName("CookiesExceptionsDialog");
CookiesExceptionsDialog->resize(466, 446);
vboxLayout = new QVBoxLayout(CookiesExceptionsDialog);
vboxLayout->setObjectName("vboxLayout");
newExceptionGroupBox = new QGroupBox(CookiesExceptionsDialog);
newExceptionGroupBox->setObjectName("newExceptionGroupBox");
gridLayout = new QGridLayout(newExceptionGroupBox);
gridLayout->setObjectName("gridLayout");
hboxLayout = new QHBoxLayout();
hboxLayout->setObjectName("hboxLayout");
label = new QLabel(newExceptionGroupBox);
label->setObjectName("label");
hboxLayout->addWidget(label);
domainLineEdit = new QLineEdit(newExceptionGroupBox);
domainLineEdit->setObjectName("domainLineEdit");
hboxLayout->addWidget(domainLineEdit);
gridLayout->addLayout(hboxLayout, 0, 0, 1, 1);
hboxLayout1 = new QHBoxLayout();
hboxLayout1->setObjectName("hboxLayout1");
spacerItem = new QSpacerItem(81, 25, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout1->addItem(spacerItem);
blockButton = new QPushButton(newExceptionGroupBox);
blockButton->setObjectName("blockButton");
blockButton->setEnabled(false);
hboxLayout1->addWidget(blockButton);
allowForSessionButton = new QPushButton(newExceptionGroupBox);
allowForSessionButton->setObjectName("allowForSessionButton");
allowForSessionButton->setEnabled(false);
hboxLayout1->addWidget(allowForSessionButton);
allowButton = new QPushButton(newExceptionGroupBox);
allowButton->setObjectName("allowButton");
allowButton->setEnabled(false);
hboxLayout1->addWidget(allowButton);
gridLayout->addLayout(hboxLayout1, 1, 0, 1, 1);
vboxLayout->addWidget(newExceptionGroupBox);
ExceptionsGroupBox = new QGroupBox(CookiesExceptionsDialog);
ExceptionsGroupBox->setObjectName("ExceptionsGroupBox");
gridLayout1 = new QGridLayout(ExceptionsGroupBox);
gridLayout1->setObjectName("gridLayout1");
spacerItem1 = new QSpacerItem(252, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout1->addItem(spacerItem1, 0, 0, 1, 3);
search = new SearchLineEdit(ExceptionsGroupBox);
search->setObjectName("search");
gridLayout1->addWidget(search, 0, 3, 1, 1);
exceptionTable = new EditTableView(ExceptionsGroupBox);
exceptionTable->setObjectName("exceptionTable");
gridLayout1->addWidget(exceptionTable, 1, 0, 1, 4);
removeButton = new QPushButton(ExceptionsGroupBox);
removeButton->setObjectName("removeButton");
gridLayout1->addWidget(removeButton, 2, 0, 1, 1);
removeAllButton = new QPushButton(ExceptionsGroupBox);
removeAllButton->setObjectName("removeAllButton");
gridLayout1->addWidget(removeAllButton, 2, 1, 1, 1);
spacerItem2 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout1->addItem(spacerItem2, 2, 2, 1, 2);
vboxLayout->addWidget(ExceptionsGroupBox);
buttonBox = new QDialogButtonBox(CookiesExceptionsDialog);
buttonBox->setObjectName("buttonBox");
buttonBox->setOrientation(Qt::Horizontal);
buttonBox->setStandardButtons(QDialogButtonBox::Ok);
vboxLayout->addWidget(buttonBox);
retranslateUi(CookiesExceptionsDialog);
QObject::connect(buttonBox, &QDialogButtonBox::accepted, CookiesExceptionsDialog, qOverload<>(&QDialog::accept));
QMetaObject::connectSlotsByName(CookiesExceptionsDialog);
} // setupUi
void retranslateUi(QDialog *CookiesExceptionsDialog)
{
CookiesExceptionsDialog->setWindowTitle(QCoreApplication::translate("CookiesExceptionsDialog", "Cookie Exceptions", nullptr));
newExceptionGroupBox->setTitle(QCoreApplication::translate("CookiesExceptionsDialog", "New Exception", nullptr));
label->setText(QCoreApplication::translate("CookiesExceptionsDialog", "Domain:", nullptr));
blockButton->setText(QCoreApplication::translate("CookiesExceptionsDialog", "Block", nullptr));
allowForSessionButton->setText(QCoreApplication::translate("CookiesExceptionsDialog", "Allow For Session", nullptr));
allowButton->setText(QCoreApplication::translate("CookiesExceptionsDialog", "Allow", nullptr));
ExceptionsGroupBox->setTitle(QCoreApplication::translate("CookiesExceptionsDialog", "Exceptions", nullptr));
removeButton->setText(QCoreApplication::translate("CookiesExceptionsDialog", "&Remove", nullptr));
removeAllButton->setText(QCoreApplication::translate("CookiesExceptionsDialog", "Remove &All", nullptr));
} // retranslateUi
};
namespace Ui {
class CookiesExceptionsDialog: public Ui_CookiesExceptionsDialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // COOKIESEXCEPTIONS_H

View File

@ -0,0 +1,329 @@
<ui version="4.0" >
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>388</width>
<height>413</height>
</rect>
</property>
<property name="windowTitle" >
<string>MainWindow</string>
</property>
<widget class="QWidget" name="centralwidget" >
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QLabel" name="nameLabel" >
<property name="text" >
<string>&amp;Name:</string>
</property>
<property name="buddy" >
<cstring>nameCombo</cstring>
</property>
</widget>
</item>
<item row="0" column="1" colspan="3" >
<widget class="QComboBox" name="nameCombo" >
<property name="toolTip" >
<string>Specify your name</string>
</property>
<property name="editable" >
<bool>true</bool>
</property>
<property name="currentIndex" >
<number>-1</number>
</property>
<item>
<property name="text" >
<string>Girish</string>
</property>
</item>
<item>
<property name="text" >
<string>Jasmin</string>
</property>
</item>
<item>
<property name="text" >
<string>Simon</string>
</property>
</item>
<item>
<property name="text" >
<string>Zack</string>
</property>
</item>
</widget>
</item>
<item row="1" column="3" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="2" >
<widget class="QRadioButton" name="femaleRadioButton" >
<property name="toolTip" >
<string>Check this if you are female</string>
</property>
<property name="text" >
<string>&amp;Female</string>
</property>
</widget>
</item>
<item row="6" column="0" colspan="4" >
<widget class="QCheckBox" name="agreeCheckBox" >
<property name="toolTip" >
<string>Please read the license before checking this</string>
</property>
<property name="text" >
<string>I &amp;accept the terms and conditions</string>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QRadioButton" name="maleRadioButton" >
<property name="toolTip" >
<string>Check this if you are male</string>
</property>
<property name="text" >
<string>&amp;Male</string>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="genderLabel" >
<property name="text" >
<string>Gender:</string>
</property>
</widget>
</item>
<item row="2" column="1" colspan="3" >
<widget class="QSpinBox" name="ageSpinBox" >
<property name="toolTip" >
<string>Specify your age</string>
</property>
<property name="statusTip" >
<string>Specify your age here</string>
</property>
<property name="minimum" >
<number>12</number>
</property>
<property name="value" >
<number>22</number>
</property>
</widget>
</item>
<item row="7" column="2" colspan="2" >
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="ageLabel" >
<property name="text" >
<string>&amp;Age:</string>
</property>
<property name="buddy" >
<cstring>ageSpinBox</cstring>
</property>
</widget>
</item>
<item row="3" column="0" >
<widget class="QLabel" name="passwordLabel" >
<property name="text" >
<string>&amp;Password:</string>
</property>
<property name="buddy" >
<cstring>passwordEdit</cstring>
</property>
</widget>
</item>
<item row="3" column="1" colspan="3" >
<widget class="QLineEdit" name="passwordEdit" >
<property name="toolTip" >
<string>Specify your password</string>
</property>
<property name="statusTip" >
<string>Specify your password here</string>
</property>
<property name="text" >
<string>Password</string>
</property>
<property name="echoMode" >
<enum>QLineEdit::Password</enum>
</property>
</widget>
</item>
<item row="5" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Profession</string>
</property>
<property name="buddy" >
<cstring>professionList</cstring>
</property>
</widget>
</item>
<item row="4" column="0" >
<widget class="QLabel" name="countryLabel" >
<property name="text" >
<string>&amp;Country</string>
</property>
<property name="buddy" >
<cstring>professionList</cstring>
</property>
</widget>
</item>
<item row="5" column="1" colspan="3" >
<widget class="QListWidget" name="professionList" >
<property name="toolTip" >
<string>Select your profession</string>
</property>
<property name="statusTip" >
<string>Select your profession</string>
</property>
<property name="whatsThis" >
<string>Select your profession</string>
</property>
<property name="currentRow" >
<number>1</number>
</property>
<item>
<property name="text" >
<string>Developer</string>
</property>
</item>
<item>
<property name="text" >
<string>Student</string>
</property>
</item>
<item>
<property name="text" >
<string>Fisherman</string>
</property>
</item>
</widget>
</item>
<item row="4" column="1" colspan="3" >
<widget class="QComboBox" name="countryCombo" >
<property name="toolTip" >
<string>Specify your country</string>
</property>
<property name="statusTip" >
<string>Specify your country here</string>
</property>
<property name="currentIndex" >
<number>2</number>
</property>
<item>
<property name="text" >
<string>Germany</string>
</property>
</item>
<item>
<property name="text" >
<string>India</string>
</property>
</item>
<item>
<property name="text" >
<string>Norway</string>
</property>
</item>
<item>
<property name="text" >
<string>United States Of America</string>
</property>
</item>
<item>
<property name="text" >
<string>United Kingdom</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>388</width>
<height>21</height>
</rect>
</property>
<widget class="QMenu" name="menu_File" >
<property name="title" >
<string>&amp;File</string>
</property>
<addaction name="editStyleAction" />
<addaction name="separator" />
<addaction name="exitAction" />
</widget>
<widget class="QMenu" name="menu_Help" >
<property name="title" >
<string>&amp;Help</string>
</property>
<addaction name="aboutAction" />
<addaction name="separator" />
<addaction name="aboutQtAction" />
</widget>
<addaction name="menu_File" />
<addaction name="menu_Help" />
</widget>
<widget class="QStatusBar" name="statusbar" />
<action name="exitAction" >
<property name="text" >
<string>&amp;Exit</string>
</property>
</action>
<action name="aboutQtAction" >
<property name="text" >
<string>About Qt</string>
</property>
</action>
<action name="editStyleAction" >
<property name="text" >
<string>Edit &amp;Style</string>
</property>
</action>
<action name="aboutAction" >
<property name="text" >
<string>About</string>
</property>
</action>
</widget>
<tabstops>
<tabstop>maleRadioButton</tabstop>
<tabstop>femaleRadioButton</tabstop>
<tabstop>ageSpinBox</tabstop>
<tabstop>passwordEdit</tabstop>
<tabstop>professionList</tabstop>
<tabstop>agreeCheckBox</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,318 @@
/********************************************************************************
** Form generated from reading UI file 'default.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef DEFAULT_H
#define DEFAULT_H
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtWidgets/QAbstractButton>
#include <QtWidgets/QApplication>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QListWidget>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QMenu>
#include <QtWidgets/QMenuBar>
#include <QtWidgets/QRadioButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QStatusBar>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_MainWindow
{
public:
QAction *exitAction;
QAction *aboutQtAction;
QAction *editStyleAction;
QAction *aboutAction;
QWidget *centralwidget;
QGridLayout *gridLayout;
QLabel *nameLabel;
QComboBox *nameCombo;
QSpacerItem *spacerItem;
QRadioButton *femaleRadioButton;
QCheckBox *agreeCheckBox;
QRadioButton *maleRadioButton;
QLabel *genderLabel;
QSpinBox *ageSpinBox;
QDialogButtonBox *buttonBox;
QLabel *ageLabel;
QLabel *passwordLabel;
QLineEdit *passwordEdit;
QLabel *label;
QLabel *countryLabel;
QListWidget *professionList;
QComboBox *countryCombo;
QMenuBar *menubar;
QMenu *menu_File;
QMenu *menu_Help;
QStatusBar *statusbar;
void setupUi(QMainWindow *MainWindow)
{
if (MainWindow->objectName().isEmpty())
MainWindow->setObjectName("MainWindow");
MainWindow->resize(388, 413);
exitAction = new QAction(MainWindow);
exitAction->setObjectName("exitAction");
aboutQtAction = new QAction(MainWindow);
aboutQtAction->setObjectName("aboutQtAction");
editStyleAction = new QAction(MainWindow);
editStyleAction->setObjectName("editStyleAction");
aboutAction = new QAction(MainWindow);
aboutAction->setObjectName("aboutAction");
centralwidget = new QWidget(MainWindow);
centralwidget->setObjectName("centralwidget");
gridLayout = new QGridLayout(centralwidget);
#ifndef Q_OS_MAC
gridLayout->setSpacing(6);
#endif
#ifndef Q_OS_MAC
gridLayout->setContentsMargins(9, 9, 9, 9);
#endif
gridLayout->setObjectName("gridLayout");
nameLabel = new QLabel(centralwidget);
nameLabel->setObjectName("nameLabel");
gridLayout->addWidget(nameLabel, 0, 0, 1, 1);
nameCombo = new QComboBox(centralwidget);
nameCombo->addItem(QString());
nameCombo->addItem(QString());
nameCombo->addItem(QString());
nameCombo->addItem(QString());
nameCombo->setObjectName("nameCombo");
nameCombo->setEditable(true);
gridLayout->addWidget(nameCombo, 0, 1, 1, 3);
spacerItem = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout->addItem(spacerItem, 1, 3, 1, 1);
femaleRadioButton = new QRadioButton(centralwidget);
femaleRadioButton->setObjectName("femaleRadioButton");
gridLayout->addWidget(femaleRadioButton, 1, 2, 1, 1);
agreeCheckBox = new QCheckBox(centralwidget);
agreeCheckBox->setObjectName("agreeCheckBox");
gridLayout->addWidget(agreeCheckBox, 6, 0, 1, 4);
maleRadioButton = new QRadioButton(centralwidget);
maleRadioButton->setObjectName("maleRadioButton");
gridLayout->addWidget(maleRadioButton, 1, 1, 1, 1);
genderLabel = new QLabel(centralwidget);
genderLabel->setObjectName("genderLabel");
gridLayout->addWidget(genderLabel, 1, 0, 1, 1);
ageSpinBox = new QSpinBox(centralwidget);
ageSpinBox->setObjectName("ageSpinBox");
ageSpinBox->setMinimum(12);
ageSpinBox->setValue(22);
gridLayout->addWidget(ageSpinBox, 2, 1, 1, 3);
buttonBox = new QDialogButtonBox(centralwidget);
buttonBox->setObjectName("buttonBox");
buttonBox->setOrientation(Qt::Horizontal);
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok);
gridLayout->addWidget(buttonBox, 7, 2, 1, 2);
ageLabel = new QLabel(centralwidget);
ageLabel->setObjectName("ageLabel");
gridLayout->addWidget(ageLabel, 2, 0, 1, 1);
passwordLabel = new QLabel(centralwidget);
passwordLabel->setObjectName("passwordLabel");
gridLayout->addWidget(passwordLabel, 3, 0, 1, 1);
passwordEdit = new QLineEdit(centralwidget);
passwordEdit->setObjectName("passwordEdit");
passwordEdit->setEchoMode(QLineEdit::Password);
gridLayout->addWidget(passwordEdit, 3, 1, 1, 3);
label = new QLabel(centralwidget);
label->setObjectName("label");
gridLayout->addWidget(label, 5, 0, 1, 1);
countryLabel = new QLabel(centralwidget);
countryLabel->setObjectName("countryLabel");
gridLayout->addWidget(countryLabel, 4, 0, 1, 1);
professionList = new QListWidget(centralwidget);
new QListWidgetItem(professionList);
new QListWidgetItem(professionList);
new QListWidgetItem(professionList);
professionList->setObjectName("professionList");
gridLayout->addWidget(professionList, 5, 1, 1, 3);
countryCombo = new QComboBox(centralwidget);
countryCombo->addItem(QString());
countryCombo->addItem(QString());
countryCombo->addItem(QString());
countryCombo->addItem(QString());
countryCombo->addItem(QString());
countryCombo->setObjectName("countryCombo");
gridLayout->addWidget(countryCombo, 4, 1, 1, 3);
MainWindow->setCentralWidget(centralwidget);
menubar = new QMenuBar(MainWindow);
menubar->setObjectName("menubar");
menubar->setGeometry(QRect(0, 0, 388, 21));
menu_File = new QMenu(menubar);
menu_File->setObjectName("menu_File");
menu_Help = new QMenu(menubar);
menu_Help->setObjectName("menu_Help");
MainWindow->setMenuBar(menubar);
statusbar = new QStatusBar(MainWindow);
statusbar->setObjectName("statusbar");
MainWindow->setStatusBar(statusbar);
#if QT_CONFIG(shortcut)
nameLabel->setBuddy(nameCombo);
ageLabel->setBuddy(ageSpinBox);
passwordLabel->setBuddy(passwordEdit);
label->setBuddy(professionList);
countryLabel->setBuddy(professionList);
#endif // QT_CONFIG(shortcut)
QWidget::setTabOrder(maleRadioButton, femaleRadioButton);
QWidget::setTabOrder(femaleRadioButton, ageSpinBox);
QWidget::setTabOrder(ageSpinBox, passwordEdit);
QWidget::setTabOrder(passwordEdit, professionList);
QWidget::setTabOrder(professionList, agreeCheckBox);
menubar->addAction(menu_File->menuAction());
menubar->addAction(menu_Help->menuAction());
menu_File->addAction(editStyleAction);
menu_File->addSeparator();
menu_File->addAction(exitAction);
menu_Help->addAction(aboutAction);
menu_Help->addSeparator();
menu_Help->addAction(aboutQtAction);
retranslateUi(MainWindow);
nameCombo->setCurrentIndex(-1);
professionList->setCurrentRow(1);
countryCombo->setCurrentIndex(2);
QMetaObject::connectSlotsByName(MainWindow);
} // setupUi
void retranslateUi(QMainWindow *MainWindow)
{
MainWindow->setWindowTitle(QCoreApplication::translate("MainWindow", "MainWindow", nullptr));
exitAction->setText(QCoreApplication::translate("MainWindow", "&Exit", nullptr));
aboutQtAction->setText(QCoreApplication::translate("MainWindow", "About Qt", nullptr));
editStyleAction->setText(QCoreApplication::translate("MainWindow", "Edit &Style", nullptr));
aboutAction->setText(QCoreApplication::translate("MainWindow", "About", nullptr));
nameLabel->setText(QCoreApplication::translate("MainWindow", "&Name:", nullptr));
nameCombo->setItemText(0, QCoreApplication::translate("MainWindow", "Girish", nullptr));
nameCombo->setItemText(1, QCoreApplication::translate("MainWindow", "Jasmin", nullptr));
nameCombo->setItemText(2, QCoreApplication::translate("MainWindow", "Simon", nullptr));
nameCombo->setItemText(3, QCoreApplication::translate("MainWindow", "Zack", nullptr));
#if QT_CONFIG(tooltip)
nameCombo->setToolTip(QCoreApplication::translate("MainWindow", "Specify your name", nullptr));
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(tooltip)
femaleRadioButton->setToolTip(QCoreApplication::translate("MainWindow", "Check this if you are female", nullptr));
#endif // QT_CONFIG(tooltip)
femaleRadioButton->setText(QCoreApplication::translate("MainWindow", "&Female", nullptr));
#if QT_CONFIG(tooltip)
agreeCheckBox->setToolTip(QCoreApplication::translate("MainWindow", "Please read the license before checking this", nullptr));
#endif // QT_CONFIG(tooltip)
agreeCheckBox->setText(QCoreApplication::translate("MainWindow", "I &accept the terms and conditions", nullptr));
#if QT_CONFIG(tooltip)
maleRadioButton->setToolTip(QCoreApplication::translate("MainWindow", "Check this if you are male", nullptr));
#endif // QT_CONFIG(tooltip)
maleRadioButton->setText(QCoreApplication::translate("MainWindow", "&Male", nullptr));
genderLabel->setText(QCoreApplication::translate("MainWindow", "Gender:", nullptr));
#if QT_CONFIG(tooltip)
ageSpinBox->setToolTip(QCoreApplication::translate("MainWindow", "Specify your age", nullptr));
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(statustip)
ageSpinBox->setStatusTip(QCoreApplication::translate("MainWindow", "Specify your age here", nullptr));
#endif // QT_CONFIG(statustip)
ageLabel->setText(QCoreApplication::translate("MainWindow", "&Age:", nullptr));
passwordLabel->setText(QCoreApplication::translate("MainWindow", "&Password:", nullptr));
#if QT_CONFIG(tooltip)
passwordEdit->setToolTip(QCoreApplication::translate("MainWindow", "Specify your password", nullptr));
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(statustip)
passwordEdit->setStatusTip(QCoreApplication::translate("MainWindow", "Specify your password here", nullptr));
#endif // QT_CONFIG(statustip)
passwordEdit->setText(QCoreApplication::translate("MainWindow", "Password", nullptr));
label->setText(QCoreApplication::translate("MainWindow", "Profession", nullptr));
countryLabel->setText(QCoreApplication::translate("MainWindow", "&Country", nullptr));
const bool __sortingEnabled = professionList->isSortingEnabled();
professionList->setSortingEnabled(false);
QListWidgetItem *___qlistwidgetitem = professionList->item(0);
___qlistwidgetitem->setText(QCoreApplication::translate("MainWindow", "Developer", nullptr));
QListWidgetItem *___qlistwidgetitem1 = professionList->item(1);
___qlistwidgetitem1->setText(QCoreApplication::translate("MainWindow", "Student", nullptr));
QListWidgetItem *___qlistwidgetitem2 = professionList->item(2);
___qlistwidgetitem2->setText(QCoreApplication::translate("MainWindow", "Fisherman", nullptr));
professionList->setSortingEnabled(__sortingEnabled);
#if QT_CONFIG(tooltip)
professionList->setToolTip(QCoreApplication::translate("MainWindow", "Select your profession", nullptr));
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(statustip)
professionList->setStatusTip(QCoreApplication::translate("MainWindow", "Select your profession", nullptr));
#endif // QT_CONFIG(statustip)
#if QT_CONFIG(whatsthis)
professionList->setWhatsThis(QCoreApplication::translate("MainWindow", "Select your profession", nullptr));
#endif // QT_CONFIG(whatsthis)
countryCombo->setItemText(0, QCoreApplication::translate("MainWindow", "Germany", nullptr));
countryCombo->setItemText(1, QCoreApplication::translate("MainWindow", "India", nullptr));
countryCombo->setItemText(2, QCoreApplication::translate("MainWindow", "Norway", nullptr));
countryCombo->setItemText(3, QCoreApplication::translate("MainWindow", "United States Of America", nullptr));
countryCombo->setItemText(4, QCoreApplication::translate("MainWindow", "United Kingdom", nullptr));
#if QT_CONFIG(tooltip)
countryCombo->setToolTip(QCoreApplication::translate("MainWindow", "Specify your country", nullptr));
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(statustip)
countryCombo->setStatusTip(QCoreApplication::translate("MainWindow", "Specify your country here", nullptr));
#endif // QT_CONFIG(statustip)
menu_File->setTitle(QCoreApplication::translate("MainWindow", "&File", nullptr));
menu_Help->setTitle(QCoreApplication::translate("MainWindow", "&Help", nullptr));
} // retranslateUi
};
namespace Ui {
class MainWindow: public Ui_MainWindow {};
} // namespace Ui
QT_END_NAMESPACE
#endif // DEFAULT_H

View File

@ -0,0 +1,47 @@
<ui version="4.0" connectslotsbyname="false">
<class>Dialog</class>
<widget class="QDialog" name="Dialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>451</width>
<height>322</height>
</rect>
</property>
<property name="windowTitle" >
<string>Dialog</string>
</property>
<layout class="QGridLayout" >
<item row="0" column="0" >
<widget class="QPushButton" name="loadFromFileButton" >
<property name="text" >
<string>Load Image From File...</string>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Launch two of these dialogs. In the first, press the top button and load an image from a file. In the second, press the bottom button and display the loaded image from shared memory.</string>
</property>
<property name="alignment" >
<set>Qt::AlignCenter</set>
</property>
<property name="wordWrap" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QPushButton" name="loadFromSharedMemoryButton" >
<property name="text" >
<string>Display Image From Shared Memory</string>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,73 @@
/********************************************************************************
** Form generated from reading UI file 'dialog.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef DIALOG_H
#define DIALOG_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QPushButton>
QT_BEGIN_NAMESPACE
class Ui_Dialog
{
public:
QGridLayout *gridLayout;
QPushButton *loadFromFileButton;
QLabel *label;
QPushButton *loadFromSharedMemoryButton;
void setupUi(QDialog *Dialog)
{
if (Dialog->objectName().isEmpty())
Dialog->setObjectName("Dialog");
Dialog->resize(451, 322);
gridLayout = new QGridLayout(Dialog);
gridLayout->setObjectName("gridLayout");
loadFromFileButton = new QPushButton(Dialog);
loadFromFileButton->setObjectName("loadFromFileButton");
gridLayout->addWidget(loadFromFileButton, 0, 0, 1, 1);
label = new QLabel(Dialog);
label->setObjectName("label");
label->setAlignment(Qt::AlignCenter);
label->setWordWrap(true);
gridLayout->addWidget(label, 1, 0, 1, 1);
loadFromSharedMemoryButton = new QPushButton(Dialog);
loadFromSharedMemoryButton->setObjectName("loadFromSharedMemoryButton");
gridLayout->addWidget(loadFromSharedMemoryButton, 2, 0, 1, 1);
retranslateUi(Dialog);
} // setupUi
void retranslateUi(QDialog *Dialog)
{
Dialog->setWindowTitle(QCoreApplication::translate("Dialog", "Dialog", nullptr));
loadFromFileButton->setText(QCoreApplication::translate("Dialog", "Load Image From File...", nullptr));
label->setText(QCoreApplication::translate("Dialog", "Launch two of these dialogs. In the first, press the top button and load an image from a file. In the second, press the bottom button and display the loaded image from shared memory.", nullptr));
loadFromSharedMemoryButton->setText(QCoreApplication::translate("Dialog", "Display Image From Shared Memory", nullptr));
} // retranslateUi
};
namespace Ui {
class Dialog: public Ui_Dialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // DIALOG_H

View File

@ -0,0 +1,134 @@
<ui version="4.0" >
<class>DownloadItem</class>
<widget class="QWidget" name="DownloadItem" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>423</width>
<height>110</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout" >
<property name="margin" >
<number>0</number>
</property>
<item>
<widget class="QLabel" name="fileIcon" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Minimum" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>Ico</string>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2" >
<item>
<widget class="SqueezeLabel" native="1" name="fileNameLabel" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" stdset="0" >
<string>Filename</string>
</property>
</widget>
</item>
<item>
<widget class="QProgressBar" name="progressBar" >
<property name="value" >
<number>0</number>
</property>
</widget>
</item>
<item>
<widget class="SqueezeLabel" native="1" name="downloadInfoLabel" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Preferred" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" stdset="0" >
<string/>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout" >
<item>
<spacer name="verticalSpacer" >
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>17</width>
<height>1</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="tryAgainButton" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Try Again</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="stopButton" >
<property name="text" >
<string>Stop</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="openButton" >
<property name="text" >
<string>Open</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_2" >
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>17</width>
<height>5</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>SqueezeLabel</class>
<extends>QWidget</extends>
<header>squeezelabel.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,144 @@
/********************************************************************************
** Form generated from reading UI file 'downloaditem.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef DOWNLOADITEM_H
#define DOWNLOADITEM_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QProgressBar>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
#include "squeezelabel.h"
QT_BEGIN_NAMESPACE
class Ui_DownloadItem
{
public:
QHBoxLayout *horizontalLayout;
QLabel *fileIcon;
QVBoxLayout *verticalLayout_2;
SqueezeLabel *fileNameLabel;
QProgressBar *progressBar;
SqueezeLabel *downloadInfoLabel;
QVBoxLayout *verticalLayout;
QSpacerItem *verticalSpacer;
QPushButton *tryAgainButton;
QPushButton *stopButton;
QPushButton *openButton;
QSpacerItem *verticalSpacer_2;
void setupUi(QWidget *DownloadItem)
{
if (DownloadItem->objectName().isEmpty())
DownloadItem->setObjectName("DownloadItem");
DownloadItem->resize(423, 110);
horizontalLayout = new QHBoxLayout(DownloadItem);
horizontalLayout->setContentsMargins(0, 0, 0, 0);
horizontalLayout->setObjectName("horizontalLayout");
fileIcon = new QLabel(DownloadItem);
fileIcon->setObjectName("fileIcon");
QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(fileIcon->sizePolicy().hasHeightForWidth());
fileIcon->setSizePolicy(sizePolicy);
horizontalLayout->addWidget(fileIcon);
verticalLayout_2 = new QVBoxLayout();
verticalLayout_2->setObjectName("verticalLayout_2");
fileNameLabel = new SqueezeLabel(DownloadItem);
fileNameLabel->setObjectName("fileNameLabel");
QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Preferred);
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(fileNameLabel->sizePolicy().hasHeightForWidth());
fileNameLabel->setSizePolicy(sizePolicy1);
verticalLayout_2->addWidget(fileNameLabel);
progressBar = new QProgressBar(DownloadItem);
progressBar->setObjectName("progressBar");
progressBar->setValue(0);
verticalLayout_2->addWidget(progressBar);
downloadInfoLabel = new SqueezeLabel(DownloadItem);
downloadInfoLabel->setObjectName("downloadInfoLabel");
QSizePolicy sizePolicy2(QSizePolicy::Minimum, QSizePolicy::Preferred);
sizePolicy2.setHorizontalStretch(0);
sizePolicy2.setVerticalStretch(0);
sizePolicy2.setHeightForWidth(downloadInfoLabel->sizePolicy().hasHeightForWidth());
downloadInfoLabel->setSizePolicy(sizePolicy2);
verticalLayout_2->addWidget(downloadInfoLabel);
horizontalLayout->addLayout(verticalLayout_2);
verticalLayout = new QVBoxLayout();
verticalLayout->setObjectName("verticalLayout");
verticalSpacer = new QSpacerItem(17, 1, QSizePolicy::Minimum, QSizePolicy::Expanding);
verticalLayout->addItem(verticalSpacer);
tryAgainButton = new QPushButton(DownloadItem);
tryAgainButton->setObjectName("tryAgainButton");
tryAgainButton->setEnabled(false);
verticalLayout->addWidget(tryAgainButton);
stopButton = new QPushButton(DownloadItem);
stopButton->setObjectName("stopButton");
verticalLayout->addWidget(stopButton);
openButton = new QPushButton(DownloadItem);
openButton->setObjectName("openButton");
verticalLayout->addWidget(openButton);
verticalSpacer_2 = new QSpacerItem(17, 5, QSizePolicy::Minimum, QSizePolicy::Expanding);
verticalLayout->addItem(verticalSpacer_2);
horizontalLayout->addLayout(verticalLayout);
retranslateUi(DownloadItem);
QMetaObject::connectSlotsByName(DownloadItem);
} // setupUi
void retranslateUi(QWidget *DownloadItem)
{
DownloadItem->setWindowTitle(QCoreApplication::translate("DownloadItem", "Form", nullptr));
fileIcon->setText(QCoreApplication::translate("DownloadItem", "Ico", nullptr));
fileNameLabel->setProperty("text", QVariant(QCoreApplication::translate("DownloadItem", "Filename", nullptr)));
downloadInfoLabel->setProperty("text", QVariant(QString()));
tryAgainButton->setText(QCoreApplication::translate("DownloadItem", "Try Again", nullptr));
stopButton->setText(QCoreApplication::translate("DownloadItem", "Stop", nullptr));
openButton->setText(QCoreApplication::translate("DownloadItem", "Open", nullptr));
} // retranslateUi
};
namespace Ui {
class DownloadItem: public Ui_DownloadItem {};
} // namespace Ui
QT_END_NAMESPACE
#endif // DOWNLOADITEM_H

View File

@ -0,0 +1,83 @@
<ui version="4.0" >
<class>DownloadDialog</class>
<widget class="QDialog" name="DownloadDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>332</width>
<height>252</height>
</rect>
</property>
<property name="windowTitle" >
<string>Downloads</string>
</property>
<layout class="QGridLayout" name="gridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>0</number>
</property>
<item row="0" column="0" colspan="3" >
<widget class="EditTableView" name="downloadsView" />
</item>
<item row="1" column="0" >
<layout class="QHBoxLayout" name="horizontalLayout" >
<item>
<widget class="QPushButton" name="cleanupButton" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Clean up</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>58</width>
<height>24</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="1" column="1" >
<widget class="QLabel" name="itemCount" >
<property name="text" >
<string>0 Items</string>
</property>
</widget>
</item>
<item row="1" column="2" >
<spacer name="horizontalSpacer" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>148</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>EditTableView</class>
<extends>QTableView</extends>
<header>edittableview.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,95 @@
/********************************************************************************
** Form generated from reading UI file 'downloads.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef DOWNLOADS_H
#define DOWNLOADS_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include "edittableview.h"
QT_BEGIN_NAMESPACE
class Ui_DownloadDialog
{
public:
QGridLayout *gridLayout;
EditTableView *downloadsView;
QHBoxLayout *horizontalLayout;
QPushButton *cleanupButton;
QSpacerItem *spacerItem;
QLabel *itemCount;
QSpacerItem *horizontalSpacer;
void setupUi(QDialog *DownloadDialog)
{
if (DownloadDialog->objectName().isEmpty())
DownloadDialog->setObjectName("DownloadDialog");
DownloadDialog->resize(332, 252);
gridLayout = new QGridLayout(DownloadDialog);
gridLayout->setSpacing(0);
gridLayout->setContentsMargins(0, 0, 0, 0);
gridLayout->setObjectName("gridLayout");
downloadsView = new EditTableView(DownloadDialog);
downloadsView->setObjectName("downloadsView");
gridLayout->addWidget(downloadsView, 0, 0, 1, 3);
horizontalLayout = new QHBoxLayout();
horizontalLayout->setObjectName("horizontalLayout");
cleanupButton = new QPushButton(DownloadDialog);
cleanupButton->setObjectName("cleanupButton");
cleanupButton->setEnabled(false);
horizontalLayout->addWidget(cleanupButton);
spacerItem = new QSpacerItem(58, 24, QSizePolicy::Expanding, QSizePolicy::Minimum);
horizontalLayout->addItem(spacerItem);
gridLayout->addLayout(horizontalLayout, 1, 0, 1, 1);
itemCount = new QLabel(DownloadDialog);
itemCount->setObjectName("itemCount");
gridLayout->addWidget(itemCount, 1, 1, 1, 1);
horizontalSpacer = new QSpacerItem(148, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout->addItem(horizontalSpacer, 1, 2, 1, 1);
retranslateUi(DownloadDialog);
QMetaObject::connectSlotsByName(DownloadDialog);
} // setupUi
void retranslateUi(QDialog *DownloadDialog)
{
DownloadDialog->setWindowTitle(QCoreApplication::translate("DownloadDialog", "Downloads", nullptr));
cleanupButton->setText(QCoreApplication::translate("DownloadDialog", "Clean up", nullptr));
itemCount->setText(QCoreApplication::translate("DownloadDialog", "0 Items", nullptr));
} // retranslateUi
};
namespace Ui {
class DownloadDialog: public Ui_DownloadDialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // DOWNLOADS_H

View File

@ -0,0 +1,87 @@
<ui version="4.0" >
<class>embeddedDialog</class>
<widget class="QDialog" name="embeddedDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>407</width>
<height>134</height>
</rect>
</property>
<property name="windowTitle" >
<string>Embedded Dialog</string>
</property>
<layout class="QFormLayout" name="formLayout" >
<item row="0" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Layout Direction:</string>
</property>
<property name="buddy" >
<cstring>layoutDirection</cstring>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QComboBox" name="layoutDirection" >
<item>
<property name="text" >
<string>Left to Right</string>
</property>
</item>
<item>
<property name="text" >
<string>Right to Left</string>
</property>
</item>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>Select Font:</string>
</property>
<property name="buddy" >
<cstring>fontComboBox</cstring>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QFontComboBox" name="fontComboBox" />
</item>
<item row="2" column="0" >
<widget class="QLabel" name="label_3" >
<property name="text" >
<string>Style:</string>
</property>
<property name="buddy" >
<cstring>style</cstring>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QComboBox" name="style" />
</item>
<item row="3" column="0" >
<widget class="QLabel" name="label_4" >
<property name="text" >
<string>Layout spacing:</string>
</property>
<property name="buddy" >
<cstring>spacing</cstring>
</property>
</widget>
</item>
<item row="3" column="1" >
<widget class="QSlider" name="spacing" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,118 @@
/********************************************************************************
** Form generated from reading UI file 'embeddeddialog.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef EMBEDDEDDIALOG_H
#define EMBEDDEDDIALOG_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QDialog>
#include <QtWidgets/QFontComboBox>
#include <QtWidgets/QFormLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QSlider>
QT_BEGIN_NAMESPACE
class Ui_embeddedDialog
{
public:
QFormLayout *formLayout;
QLabel *label;
QComboBox *layoutDirection;
QLabel *label_2;
QFontComboBox *fontComboBox;
QLabel *label_3;
QComboBox *style;
QLabel *label_4;
QSlider *spacing;
void setupUi(QDialog *embeddedDialog)
{
if (embeddedDialog->objectName().isEmpty())
embeddedDialog->setObjectName("embeddedDialog");
embeddedDialog->resize(407, 134);
formLayout = new QFormLayout(embeddedDialog);
formLayout->setObjectName("formLayout");
label = new QLabel(embeddedDialog);
label->setObjectName("label");
formLayout->setWidget(0, QFormLayout::LabelRole, label);
layoutDirection = new QComboBox(embeddedDialog);
layoutDirection->addItem(QString());
layoutDirection->addItem(QString());
layoutDirection->setObjectName("layoutDirection");
formLayout->setWidget(0, QFormLayout::FieldRole, layoutDirection);
label_2 = new QLabel(embeddedDialog);
label_2->setObjectName("label_2");
formLayout->setWidget(1, QFormLayout::LabelRole, label_2);
fontComboBox = new QFontComboBox(embeddedDialog);
fontComboBox->setObjectName("fontComboBox");
formLayout->setWidget(1, QFormLayout::FieldRole, fontComboBox);
label_3 = new QLabel(embeddedDialog);
label_3->setObjectName("label_3");
formLayout->setWidget(2, QFormLayout::LabelRole, label_3);
style = new QComboBox(embeddedDialog);
style->setObjectName("style");
formLayout->setWidget(2, QFormLayout::FieldRole, style);
label_4 = new QLabel(embeddedDialog);
label_4->setObjectName("label_4");
formLayout->setWidget(3, QFormLayout::LabelRole, label_4);
spacing = new QSlider(embeddedDialog);
spacing->setObjectName("spacing");
spacing->setOrientation(Qt::Horizontal);
formLayout->setWidget(3, QFormLayout::FieldRole, spacing);
#if QT_CONFIG(shortcut)
label->setBuddy(layoutDirection);
label_2->setBuddy(fontComboBox);
label_3->setBuddy(style);
label_4->setBuddy(spacing);
#endif // QT_CONFIG(shortcut)
retranslateUi(embeddedDialog);
QMetaObject::connectSlotsByName(embeddedDialog);
} // setupUi
void retranslateUi(QDialog *embeddedDialog)
{
embeddedDialog->setWindowTitle(QCoreApplication::translate("embeddedDialog", "Embedded Dialog", nullptr));
label->setText(QCoreApplication::translate("embeddedDialog", "Layout Direction:", nullptr));
layoutDirection->setItemText(0, QCoreApplication::translate("embeddedDialog", "Left to Right", nullptr));
layoutDirection->setItemText(1, QCoreApplication::translate("embeddedDialog", "Right to Left", nullptr));
label_2->setText(QCoreApplication::translate("embeddedDialog", "Select Font:", nullptr));
label_3->setText(QCoreApplication::translate("embeddedDialog", "Style:", nullptr));
label_4->setText(QCoreApplication::translate("embeddedDialog", "Layout spacing:", nullptr));
} // retranslateUi
};
namespace Ui {
class embeddedDialog: public Ui_embeddedDialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // EMBEDDEDDIALOG_H

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<widget class="WorldTimeClock" name="worldTimeClock">
<property name="geometry">
<rect>
<x>100</x>
<y>100</y>
<width>100</width>
<height>100</height>
</rect>
</property>
<property name="penStyle" stdset="0">
<enum>Qt::DashDotLine</enum>
</property>
</widget>
</widget>
<customwidgets>
<customwidget>
<class>WorldTimeClock</class>
<extends>QWidget</extends>
<header>worldtimeclock.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,52 @@
/********************************************************************************
** Form generated from reading UI file 'enumnostdset.ui'
**
** Created by: Qt User Interface Compiler version 5.6.1
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef ENUMNOSTDSET_H
#define ENUMNOSTDSET_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QWidget>
#include "worldtimeclock.h"
QT_BEGIN_NAMESPACE
class Ui_Form
{
public:
WorldTimeClock *worldTimeClock;
void setupUi(QWidget *Form)
{
if (Form->objectName().isEmpty())
Form->setObjectName("Form");
Form->resize(400, 300);
worldTimeClock = new WorldTimeClock(Form);
worldTimeClock->setObjectName("worldTimeClock");
worldTimeClock->setGeometry(QRect(100, 100, 100, 100));
worldTimeClock->setProperty("penStyle", QVariant::fromValue(Qt::DashDotLine));
retranslateUi(Form);
QMetaObject::connectSlotsByName(Form);
} // setupUi
void retranslateUi(QWidget *Form)
{
Form->setWindowTitle(QCoreApplication::translate("Form", "Form", nullptr));
} // retranslateUi
};
namespace Ui {
class Form: public Ui_Form {};
} // namespace Ui
QT_END_NAMESPACE
#endif // ENUMNOSTDSET_H

View File

@ -0,0 +1,79 @@
<ui version="4.0" >
<class>FilesPage</class>
<widget class="QWidget" name="FilesPage" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>417</width>
<height>242</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
<layout class="QGridLayout" >
<item row="0" column="0" colspan="2" >
<widget class="QLabel" name="fileLabel" >
<property name="text" >
<string>Files:</string>
</property>
<property name="wordWrap" >
<bool>true</bool>
</property>
</widget>
</item>
<item rowspan="3" row="1" column="0" >
<widget class="QListWidget" name="fileListWidget" />
</item>
<item row="1" column="1" >
<widget class="QPushButton" name="removeButton" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>Remove</string>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QPushButton" name="removeAllButton" >
<property name="text" >
<string>Remove All</string>
</property>
</widget>
</item>
<item row="3" column="1" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>75</width>
<height>16</height>
</size>
</property>
</spacer>
</item>
<item row="4" column="0" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>31</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,97 @@
/********************************************************************************
** Form generated from reading UI file 'filespage.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef FILESPAGE_H
#define FILESPAGE_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QListWidget>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_FilesPage
{
public:
QGridLayout *gridLayout;
QLabel *fileLabel;
QListWidget *fileListWidget;
QPushButton *removeButton;
QPushButton *removeAllButton;
QSpacerItem *spacerItem;
QSpacerItem *spacerItem1;
void setupUi(QWidget *FilesPage)
{
if (FilesPage->objectName().isEmpty())
FilesPage->setObjectName("FilesPage");
FilesPage->resize(417, 242);
gridLayout = new QGridLayout(FilesPage);
gridLayout->setObjectName("gridLayout");
fileLabel = new QLabel(FilesPage);
fileLabel->setObjectName("fileLabel");
fileLabel->setWordWrap(true);
gridLayout->addWidget(fileLabel, 0, 0, 1, 2);
fileListWidget = new QListWidget(FilesPage);
fileListWidget->setObjectName("fileListWidget");
gridLayout->addWidget(fileListWidget, 1, 0, 3, 1);
removeButton = new QPushButton(FilesPage);
removeButton->setObjectName("removeButton");
QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Fixed);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(removeButton->sizePolicy().hasHeightForWidth());
removeButton->setSizePolicy(sizePolicy);
gridLayout->addWidget(removeButton, 1, 1, 1, 1);
removeAllButton = new QPushButton(FilesPage);
removeAllButton->setObjectName("removeAllButton");
gridLayout->addWidget(removeAllButton, 2, 1, 1, 1);
spacerItem = new QSpacerItem(75, 16, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout->addItem(spacerItem, 3, 1, 1, 1);
spacerItem1 = new QSpacerItem(20, 31, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout->addItem(spacerItem1, 4, 0, 1, 1);
retranslateUi(FilesPage);
QMetaObject::connectSlotsByName(FilesPage);
} // setupUi
void retranslateUi(QWidget *FilesPage)
{
FilesPage->setWindowTitle(QCoreApplication::translate("FilesPage", "Form", nullptr));
fileLabel->setText(QCoreApplication::translate("FilesPage", "Files:", nullptr));
removeButton->setText(QCoreApplication::translate("FilesPage", "Remove", nullptr));
removeAllButton->setText(QCoreApplication::translate("FilesPage", "Remove All", nullptr));
} // retranslateUi
};
namespace Ui {
class FilesPage: public Ui_FilesPage {};
} // namespace Ui
QT_END_NAMESPACE
#endif // FILESPAGE_H

View File

@ -0,0 +1,67 @@
<ui version="4.0" >
<class>FilterNameDialogClass</class>
<widget class="QDialog" name="FilterNameDialogClass" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>312</width>
<height>95</height>
</rect>
</property>
<property name="windowTitle" >
<string>FilterNameDialog</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Filter Name:</string>
</property>
</widget>
</item>
<item row="0" column="1" colspan="2" >
<widget class="QLineEdit" name="lineEdit" />
</item>
<item row="1" column="0" colspan="3" >
<widget class="Line" name="line" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="2" column="0" colspan="2" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="2" >
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,92 @@
/********************************************************************************
** Form generated from reading UI file 'filternamedialog.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef FILTERNAMEDIALOG_H
#define FILTERNAMEDIALOG_H
#include <QtCore/QVariant>
#include <QtWidgets/QAbstractButton>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QFrame>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QSpacerItem>
QT_BEGIN_NAMESPACE
class Ui_FilterNameDialogClass
{
public:
QGridLayout *gridLayout;
QLabel *label;
QLineEdit *lineEdit;
QFrame *line;
QSpacerItem *spacerItem;
QDialogButtonBox *buttonBox;
void setupUi(QDialog *FilterNameDialogClass)
{
if (FilterNameDialogClass->objectName().isEmpty())
FilterNameDialogClass->setObjectName("FilterNameDialogClass");
FilterNameDialogClass->resize(312, 95);
gridLayout = new QGridLayout(FilterNameDialogClass);
gridLayout->setSpacing(6);
gridLayout->setContentsMargins(9, 9, 9, 9);
gridLayout->setObjectName("gridLayout");
label = new QLabel(FilterNameDialogClass);
label->setObjectName("label");
gridLayout->addWidget(label, 0, 0, 1, 1);
lineEdit = new QLineEdit(FilterNameDialogClass);
lineEdit->setObjectName("lineEdit");
gridLayout->addWidget(lineEdit, 0, 1, 1, 2);
line = new QFrame(FilterNameDialogClass);
line->setObjectName("line");
line->setFrameShape(QFrame::HLine);
line->setFrameShadow(QFrame::Sunken);
gridLayout->addWidget(line, 1, 0, 1, 3);
spacerItem = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout->addItem(spacerItem, 2, 0, 1, 2);
buttonBox = new QDialogButtonBox(FilterNameDialogClass);
buttonBox->setObjectName("buttonBox");
buttonBox->setOrientation(Qt::Horizontal);
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok);
gridLayout->addWidget(buttonBox, 2, 2, 1, 1);
retranslateUi(FilterNameDialogClass);
QMetaObject::connectSlotsByName(FilterNameDialogClass);
} // setupUi
void retranslateUi(QDialog *FilterNameDialogClass)
{
FilterNameDialogClass->setWindowTitle(QCoreApplication::translate("FilterNameDialogClass", "FilterNameDialog", nullptr));
label->setText(QCoreApplication::translate("FilterNameDialogClass", "Filter Name:", nullptr));
} // retranslateUi
};
namespace Ui {
class FilterNameDialogClass: public Ui_FilterNameDialogClass {};
} // namespace Ui
QT_END_NAMESPACE
#endif // FILTERNAMEDIALOG_H

View File

@ -0,0 +1,125 @@
<ui version="4.0" >
<class>FilterPage</class>
<widget class="QWidget" name="FilterPage" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>419</width>
<height>243</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
<layout class="QGridLayout" >
<item row="1" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Filter attributes for current documentation (comma separated list):</string>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLineEdit" name="filterLineEdit" />
</item>
<item row="4" column="0" >
<widget class="QGroupBox" name="groupBox" >
<property name="title" >
<string>Custom Filters</string>
</property>
<layout class="QGridLayout" >
<item rowspan="3" row="0" column="0" >
<widget class="QTreeWidget" name="customFilterWidget" >
<property name="columnCount" >
<number>2</number>
</property>
<column>
<property name="text" >
<string>1</string>
</property>
</column>
<column>
<property name="text" >
<string>2</string>
</property>
</column>
</widget>
</item>
<item row="0" column="1" >
<widget class="QPushButton" name="addButton" >
<property name="text" >
<string>Add</string>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QPushButton" name="removeButton" >
<property name="text" >
<string>Remove</string>
</property>
</widget>
</item>
<item row="2" column="1" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item row="0" column="0" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="5" column="0" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="3" column="0" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>10</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,124 @@
/********************************************************************************
** Form generated from reading UI file 'filterpage.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef FILTERPAGE_H
#define FILTERPAGE_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QTreeWidget>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_FilterPage
{
public:
QGridLayout *gridLayout;
QLabel *label;
QLineEdit *filterLineEdit;
QGroupBox *groupBox;
QGridLayout *gridLayout1;
QTreeWidget *customFilterWidget;
QPushButton *addButton;
QPushButton *removeButton;
QSpacerItem *spacerItem;
QSpacerItem *spacerItem1;
QSpacerItem *spacerItem2;
QSpacerItem *spacerItem3;
void setupUi(QWidget *FilterPage)
{
if (FilterPage->objectName().isEmpty())
FilterPage->setObjectName("FilterPage");
FilterPage->resize(419, 243);
gridLayout = new QGridLayout(FilterPage);
gridLayout->setObjectName("gridLayout");
label = new QLabel(FilterPage);
label->setObjectName("label");
gridLayout->addWidget(label, 1, 0, 1, 1);
filterLineEdit = new QLineEdit(FilterPage);
filterLineEdit->setObjectName("filterLineEdit");
gridLayout->addWidget(filterLineEdit, 2, 0, 1, 1);
groupBox = new QGroupBox(FilterPage);
groupBox->setObjectName("groupBox");
gridLayout1 = new QGridLayout(groupBox);
gridLayout1->setObjectName("gridLayout1");
customFilterWidget = new QTreeWidget(groupBox);
customFilterWidget->setObjectName("customFilterWidget");
customFilterWidget->setColumnCount(2);
gridLayout1->addWidget(customFilterWidget, 0, 0, 3, 1);
addButton = new QPushButton(groupBox);
addButton->setObjectName("addButton");
gridLayout1->addWidget(addButton, 0, 1, 1, 1);
removeButton = new QPushButton(groupBox);
removeButton->setObjectName("removeButton");
gridLayout1->addWidget(removeButton, 1, 1, 1, 1);
spacerItem = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout1->addItem(spacerItem, 2, 1, 1, 1);
gridLayout->addWidget(groupBox, 4, 0, 1, 1);
spacerItem1 = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout->addItem(spacerItem1, 0, 0, 1, 1);
spacerItem2 = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout->addItem(spacerItem2, 5, 0, 1, 1);
spacerItem3 = new QSpacerItem(20, 10, QSizePolicy::Minimum, QSizePolicy::Fixed);
gridLayout->addItem(spacerItem3, 3, 0, 1, 1);
retranslateUi(FilterPage);
QMetaObject::connectSlotsByName(FilterPage);
} // setupUi
void retranslateUi(QWidget *FilterPage)
{
FilterPage->setWindowTitle(QCoreApplication::translate("FilterPage", "Form", nullptr));
label->setText(QCoreApplication::translate("FilterPage", "Filter attributes for current documentation (comma separated list):", nullptr));
groupBox->setTitle(QCoreApplication::translate("FilterPage", "Custom Filters", nullptr));
QTreeWidgetItem *___qtreewidgetitem = customFilterWidget->headerItem();
___qtreewidgetitem->setText(1, QCoreApplication::translate("FilterPage", "2", nullptr));
___qtreewidgetitem->setText(0, QCoreApplication::translate("FilterPage", "1", nullptr));
addButton->setText(QCoreApplication::translate("FilterPage", "Add", nullptr));
removeButton->setText(QCoreApplication::translate("FilterPage", "Remove", nullptr));
} // retranslateUi
};
namespace Ui {
class FilterPage: public Ui_FilterPage {};
} // namespace Ui
QT_END_NAMESPACE
#endif // FILTERPAGE_H

View File

@ -0,0 +1,229 @@
<ui version="4.0" >
<comment>
* Copyright (C) 2016 The Qt Company Ltd.
* SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
</comment>
<class>FindDialog</class>
<widget class="QDialog" name="FindDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>414</width>
<height>170</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy vsizetype="Maximum" hsizetype="Preferred" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle" >
<string>Find</string>
</property>
<property name="whatsThis" >
<string>This window allows you to search for some text in the translation source file.</string>
</property>
<layout class="QHBoxLayout" >
<property name="spacing" >
<number>6</number>
</property>
<property name="margin" >
<number>11</number>
</property>
<item>
<layout class="QVBoxLayout" >
<property name="spacing" >
<number>6</number>
</property>
<property name="margin" >
<number>0</number>
</property>
<item>
<layout class="QHBoxLayout" >
<property name="spacing" >
<number>6</number>
</property>
<property name="margin" >
<number>0</number>
</property>
<item>
<widget class="QLabel" name="findWhat" >
<property name="text" >
<string>&amp;Find what:</string>
</property>
<property name="buddy" >
<cstring>led</cstring>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="led" >
<property name="whatsThis" >
<string>Type in the text to search for.</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QGroupBox" name="groupBox" >
<property name="title" >
<string>Options</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="0" >
<widget class="QCheckBox" name="sourceText" >
<property name="whatsThis" >
<string>Source texts are searched when checked.</string>
</property>
<property name="text" >
<string>&amp;Source texts</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QCheckBox" name="translations" >
<property name="whatsThis" >
<string>Translations are searched when checked.</string>
</property>
<property name="text" >
<string>&amp;Translations</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QCheckBox" name="matchCase" >
<property name="whatsThis" >
<string>Texts such as 'TeX' and 'tex' are considered as different when checked.</string>
</property>
<property name="text" >
<string>&amp;Match case</string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QCheckBox" name="comments" >
<property name="whatsThis" >
<string>Comments and contexts are searched when checked.</string>
</property>
<property name="text" >
<string>&amp;Comments</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QCheckBox" name="ignoreAccelerators" >
<property name="text" >
<string>Ignore &amp;accelerators</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" >
<property name="spacing" >
<number>6</number>
</property>
<property name="margin" >
<number>0</number>
</property>
<item>
<widget class="QPushButton" name="findNxt" >
<property name="whatsThis" >
<string>Click here to find the next occurrence of the text you typed in.</string>
</property>
<property name="text" >
<string>Find Next</string>
</property>
<property name="default" >
<bool>true</bool>
</property>
<property name="flat" >
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="cancel" >
<property name="whatsThis" >
<string>Click here to close this window.</string>
</property>
<property name="text" >
<string>Cancel</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>20</width>
<height>51</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<tabstops>
<tabstop>led</tabstop>
<tabstop>findNxt</tabstop>
<tabstop>cancel</tabstop>
<tabstop>comments</tabstop>
<tabstop>sourceText</tabstop>
<tabstop>translations</tabstop>
<tabstop>matchCase</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
<sender>cancel</sender>
<signal>clicked()</signal>
<receiver>FindDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel" >
<x>372</x>
<y>58</y>
</hint>
<hint type="destinationlabel" >
<x>373</x>
<y>109</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -0,0 +1,217 @@
/*
* Copyright (C) 2016 The Qt Company Ltd.
* SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
*/
/********************************************************************************
** Form generated from reading UI file 'finddialog.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef FINDDIALOG_H
#define FINDDIALOG_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QDialog>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QVBoxLayout>
QT_BEGIN_NAMESPACE
class Ui_FindDialog
{
public:
QHBoxLayout *hboxLayout;
QVBoxLayout *vboxLayout;
QHBoxLayout *hboxLayout1;
QLabel *findWhat;
QLineEdit *led;
QGroupBox *groupBox;
QGridLayout *gridLayout;
QCheckBox *sourceText;
QCheckBox *translations;
QCheckBox *matchCase;
QCheckBox *comments;
QCheckBox *ignoreAccelerators;
QVBoxLayout *vboxLayout1;
QPushButton *findNxt;
QPushButton *cancel;
QSpacerItem *spacerItem;
void setupUi(QDialog *FindDialog)
{
if (FindDialog->objectName().isEmpty())
FindDialog->setObjectName("FindDialog");
FindDialog->resize(414, 170);
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(FindDialog->sizePolicy().hasHeightForWidth());
FindDialog->setSizePolicy(sizePolicy);
hboxLayout = new QHBoxLayout(FindDialog);
hboxLayout->setSpacing(6);
hboxLayout->setContentsMargins(11, 11, 11, 11);
hboxLayout->setObjectName("hboxLayout");
vboxLayout = new QVBoxLayout();
vboxLayout->setSpacing(6);
vboxLayout->setContentsMargins(0, 0, 0, 0);
vboxLayout->setObjectName("vboxLayout");
hboxLayout1 = new QHBoxLayout();
hboxLayout1->setSpacing(6);
hboxLayout1->setContentsMargins(0, 0, 0, 0);
hboxLayout1->setObjectName("hboxLayout1");
findWhat = new QLabel(FindDialog);
findWhat->setObjectName("findWhat");
hboxLayout1->addWidget(findWhat);
led = new QLineEdit(FindDialog);
led->setObjectName("led");
hboxLayout1->addWidget(led);
vboxLayout->addLayout(hboxLayout1);
groupBox = new QGroupBox(FindDialog);
groupBox->setObjectName("groupBox");
gridLayout = new QGridLayout(groupBox);
gridLayout->setSpacing(6);
gridLayout->setContentsMargins(9, 9, 9, 9);
gridLayout->setObjectName("gridLayout");
sourceText = new QCheckBox(groupBox);
sourceText->setObjectName("sourceText");
sourceText->setChecked(true);
gridLayout->addWidget(sourceText, 1, 0, 1, 1);
translations = new QCheckBox(groupBox);
translations->setObjectName("translations");
translations->setChecked(true);
gridLayout->addWidget(translations, 2, 0, 1, 1);
matchCase = new QCheckBox(groupBox);
matchCase->setObjectName("matchCase");
gridLayout->addWidget(matchCase, 0, 1, 1, 1);
comments = new QCheckBox(groupBox);
comments->setObjectName("comments");
comments->setChecked(true);
gridLayout->addWidget(comments, 0, 0, 1, 1);
ignoreAccelerators = new QCheckBox(groupBox);
ignoreAccelerators->setObjectName("ignoreAccelerators");
ignoreAccelerators->setChecked(true);
gridLayout->addWidget(ignoreAccelerators, 1, 1, 1, 1);
vboxLayout->addWidget(groupBox);
hboxLayout->addLayout(vboxLayout);
vboxLayout1 = new QVBoxLayout();
vboxLayout1->setSpacing(6);
vboxLayout1->setContentsMargins(0, 0, 0, 0);
vboxLayout1->setObjectName("vboxLayout1");
findNxt = new QPushButton(FindDialog);
findNxt->setObjectName("findNxt");
findNxt->setFlat(false);
vboxLayout1->addWidget(findNxt);
cancel = new QPushButton(FindDialog);
cancel->setObjectName("cancel");
vboxLayout1->addWidget(cancel);
spacerItem = new QSpacerItem(20, 51, QSizePolicy::Minimum, QSizePolicy::Expanding);
vboxLayout1->addItem(spacerItem);
hboxLayout->addLayout(vboxLayout1);
#if QT_CONFIG(shortcut)
findWhat->setBuddy(led);
#endif // QT_CONFIG(shortcut)
QWidget::setTabOrder(led, findNxt);
QWidget::setTabOrder(findNxt, cancel);
QWidget::setTabOrder(cancel, comments);
QWidget::setTabOrder(comments, sourceText);
QWidget::setTabOrder(sourceText, translations);
QWidget::setTabOrder(translations, matchCase);
retranslateUi(FindDialog);
QObject::connect(cancel, &QPushButton::clicked, FindDialog, qOverload<>(&QDialog::reject));
findNxt->setDefault(true);
QMetaObject::connectSlotsByName(FindDialog);
} // setupUi
void retranslateUi(QDialog *FindDialog)
{
FindDialog->setWindowTitle(QCoreApplication::translate("FindDialog", "Find", nullptr));
#if QT_CONFIG(whatsthis)
FindDialog->setWhatsThis(QCoreApplication::translate("FindDialog", "This window allows you to search for some text in the translation source file.", nullptr));
#endif // QT_CONFIG(whatsthis)
findWhat->setText(QCoreApplication::translate("FindDialog", "&Find what:", nullptr));
#if QT_CONFIG(whatsthis)
led->setWhatsThis(QCoreApplication::translate("FindDialog", "Type in the text to search for.", nullptr));
#endif // QT_CONFIG(whatsthis)
groupBox->setTitle(QCoreApplication::translate("FindDialog", "Options", nullptr));
#if QT_CONFIG(whatsthis)
sourceText->setWhatsThis(QCoreApplication::translate("FindDialog", "Source texts are searched when checked.", nullptr));
#endif // QT_CONFIG(whatsthis)
sourceText->setText(QCoreApplication::translate("FindDialog", "&Source texts", nullptr));
#if QT_CONFIG(whatsthis)
translations->setWhatsThis(QCoreApplication::translate("FindDialog", "Translations are searched when checked.", nullptr));
#endif // QT_CONFIG(whatsthis)
translations->setText(QCoreApplication::translate("FindDialog", "&Translations", nullptr));
#if QT_CONFIG(whatsthis)
matchCase->setWhatsThis(QCoreApplication::translate("FindDialog", "Texts such as 'TeX' and 'tex' are considered as different when checked.", nullptr));
#endif // QT_CONFIG(whatsthis)
matchCase->setText(QCoreApplication::translate("FindDialog", "&Match case", nullptr));
#if QT_CONFIG(whatsthis)
comments->setWhatsThis(QCoreApplication::translate("FindDialog", "Comments and contexts are searched when checked.", nullptr));
#endif // QT_CONFIG(whatsthis)
comments->setText(QCoreApplication::translate("FindDialog", "&Comments", nullptr));
ignoreAccelerators->setText(QCoreApplication::translate("FindDialog", "Ignore &accelerators", nullptr));
#if QT_CONFIG(whatsthis)
findNxt->setWhatsThis(QCoreApplication::translate("FindDialog", "Click here to find the next occurrence of the text you typed in.", nullptr));
#endif // QT_CONFIG(whatsthis)
findNxt->setText(QCoreApplication::translate("FindDialog", "Find Next", nullptr));
#if QT_CONFIG(whatsthis)
cancel->setWhatsThis(QCoreApplication::translate("FindDialog", "Click here to close this window.", nullptr));
#endif // QT_CONFIG(whatsthis)
cancel->setText(QCoreApplication::translate("FindDialog", "Cancel", nullptr));
} // retranslateUi
};
namespace Ui {
class FindDialog: public Ui_FindDialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // FINDDIALOG_H

View File

@ -0,0 +1,162 @@
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>WorldTimeForm</class>
<widget class="QWidget" name="WorldTimeForm" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle" >
<string>World Time Clock</string>
</property>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="WorldTimeClock" name="worldTimeClock" />
</item>
<item>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="label" >
<property name="text" >
<string>Current time:</string>
</property>
</widget>
</item>
<item>
<widget class="QTimeEdit" name="timeEdit" >
<property name="readOnly" >
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>Set time zone:</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox" >
<property name="maximum" >
<number>12</number>
</property>
<property name="minimum" >
<number>-12</number>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
<pixmapfunction></pixmapfunction>
<customwidgets>
<customwidget>
<class>WorldTimeClock</class>
<extends></extends>
<header>worldtimeclock.h</header>
<container>0</container>
<pixmap></pixmap>
</customwidget>
</customwidgets>
<resources/>
<connections>
<connection>
<sender>spinBox</sender>
<signal>valueChanged(int)</signal>
<receiver>worldTimeClock</receiver>
<slot>setTimeZone(int)</slot>
<hints>
<hint type="sourcelabel" >
<x>339</x>
<y>166</y>
</hint>
<hint type="destinationlabel" >
<x>157</x>
<y>230</y>
</hint>
</hints>
</connection>
<connection>
<sender>worldTimeClock</sender>
<signal>updated(QTime)</signal>
<receiver>timeEdit</receiver>
<slot>setTime(QTime)</slot>
<hints>
<hint type="sourcelabel" >
<x>141</x>
<y>59</y>
</hint>
<hint type="destinationlabel" >
<x>291</x>
<y>133</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -0,0 +1,139 @@
/********************************************************************************
** Form generated from reading UI file 'form.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef FORM_H
#define FORM_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QTimeEdit>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
#include "worldtimeclock.h"
QT_BEGIN_NAMESPACE
class Ui_WorldTimeForm
{
public:
QHBoxLayout *hboxLayout;
WorldTimeClock *worldTimeClock;
QVBoxLayout *vboxLayout;
QSpacerItem *spacerItem;
QHBoxLayout *hboxLayout1;
QLabel *label;
QTimeEdit *timeEdit;
QHBoxLayout *hboxLayout2;
QLabel *label_2;
QSpinBox *spinBox;
QSpacerItem *spacerItem1;
void setupUi(QWidget *WorldTimeForm)
{
if (WorldTimeForm->objectName().isEmpty())
WorldTimeForm->setObjectName("WorldTimeForm");
WorldTimeForm->resize(400, 300);
hboxLayout = new QHBoxLayout(WorldTimeForm);
#ifndef Q_OS_MAC
hboxLayout->setSpacing(6);
#endif
#ifndef Q_OS_MAC
hboxLayout->setContentsMargins(9, 9, 9, 9);
#endif
hboxLayout->setObjectName("hboxLayout");
worldTimeClock = new WorldTimeClock(WorldTimeForm);
worldTimeClock->setObjectName("worldTimeClock");
hboxLayout->addWidget(worldTimeClock);
vboxLayout = new QVBoxLayout();
#ifndef Q_OS_MAC
vboxLayout->setSpacing(6);
#endif
vboxLayout->setContentsMargins(1, 1, 1, 1);
vboxLayout->setObjectName("vboxLayout");
spacerItem = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
vboxLayout->addItem(spacerItem);
hboxLayout1 = new QHBoxLayout();
#ifndef Q_OS_MAC
hboxLayout1->setSpacing(6);
#endif
hboxLayout1->setContentsMargins(1, 1, 1, 1);
hboxLayout1->setObjectName("hboxLayout1");
label = new QLabel(WorldTimeForm);
label->setObjectName("label");
hboxLayout1->addWidget(label);
timeEdit = new QTimeEdit(WorldTimeForm);
timeEdit->setObjectName("timeEdit");
timeEdit->setReadOnly(true);
hboxLayout1->addWidget(timeEdit);
vboxLayout->addLayout(hboxLayout1);
hboxLayout2 = new QHBoxLayout();
#ifndef Q_OS_MAC
hboxLayout2->setSpacing(6);
#endif
hboxLayout2->setContentsMargins(1, 1, 1, 1);
hboxLayout2->setObjectName("hboxLayout2");
label_2 = new QLabel(WorldTimeForm);
label_2->setObjectName("label_2");
hboxLayout2->addWidget(label_2);
spinBox = new QSpinBox(WorldTimeForm);
spinBox->setObjectName("spinBox");
spinBox->setMaximum(12);
spinBox->setMinimum(-12);
hboxLayout2->addWidget(spinBox);
vboxLayout->addLayout(hboxLayout2);
spacerItem1 = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
vboxLayout->addItem(spacerItem1);
hboxLayout->addLayout(vboxLayout);
retranslateUi(WorldTimeForm);
QObject::connect(spinBox, SIGNAL(valueChanged(int)), worldTimeClock, SLOT(setTimeZone(int)));
QObject::connect(worldTimeClock, SIGNAL(updated(QTime)), timeEdit, SLOT(setTime(QTime)));
QMetaObject::connectSlotsByName(WorldTimeForm);
} // setupUi
void retranslateUi(QWidget *WorldTimeForm)
{
WorldTimeForm->setWindowTitle(QCoreApplication::translate("WorldTimeForm", "World Time Clock", nullptr));
label->setText(QCoreApplication::translate("WorldTimeForm", "Current time:", nullptr));
label_2->setText(QCoreApplication::translate("WorldTimeForm", "Set time zone:", nullptr));
} // retranslateUi
};
namespace Ui {
class WorldTimeForm: public Ui_WorldTimeForm {};
} // namespace Ui
QT_END_NAMESPACE
#endif // FORM_H

View File

@ -0,0 +1,275 @@
<ui version="4.0" >
<comment>
* Copyright (C) 2016 The Qt Company Ltd.
* SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
</comment>
<class>FormWindowSettings</class>
<widget class="QDialog" name="FormWindowSettings" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>433</width>
<height>465</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form Settings</string>
</property>
<layout class="QGridLayout" >
<item row="6" column="0" colspan="2" >
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons" >
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
<item row="5" column="0" colspan="2" >
<widget class="Line" name="line" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="2" column="0" colspan="2" >
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QGroupBox" name="layoutDefaultGroupBox" >
<property name="title" >
<string>Layout &amp;Default</string>
</property>
<property name="checkable" >
<bool>true</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>8</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="0" >
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>&amp;Spacing:</string>
</property>
<property name="buddy" >
<cstring>defaultSpacingSpinBox</cstring>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>&amp;Margin:</string>
</property>
<property name="buddy" >
<cstring>defaultMarginSpinBox</cstring>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QSpinBox" name="defaultSpacingSpinBox" />
</item>
<item row="0" column="1" >
<widget class="QSpinBox" name="defaultMarginSpinBox" />
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="layoutFunctionGroupBox" >
<property name="title" >
<string>&amp;Layout Function</string>
</property>
<property name="checkable" >
<bool>true</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>8</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="1" >
<widget class="QLineEdit" name="spacingFunctionLineEdit" />
</item>
<item row="0" column="1" >
<widget class="QLineEdit" name="marginFunctionLineEdit" />
</item>
<item row="0" column="0" >
<widget class="QLabel" name="label_3" >
<property name="text" >
<string>Ma&amp;rgin:</string>
</property>
<property name="buddy" >
<cstring>marginFunctionLineEdit</cstring>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label_3_2" >
<property name="text" >
<string>Spa&amp;cing:</string>
</property>
<property name="buddy" >
<cstring>spacingFunctionLineEdit</cstring>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item row="0" column="0" colspan="2" >
<widget class="QGroupBox" name="pixmapFunctionGroupBox_2" >
<property name="title" >
<string>&amp;Author</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>8</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLineEdit" name="authorLineEdit" />
</item>
</layout>
</widget>
</item>
<item rowspan="2" row="3" column="0" >
<widget class="QGroupBox" name="includeHintsGroupBox" >
<property name="title" >
<string>&amp;Include Hints</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>8</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QTextEdit" name="includeHintsTextEdit" />
</item>
</layout>
</widget>
</item>
<item row="3" column="1" >
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QGroupBox" name="pixmapFunctionGroupBox" >
<property name="title" >
<string>&amp;Pixmap Function</string>
</property>
<property name="checkable" >
<bool>true</bool>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>8</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLineEdit" name="pixmapFunctionLineEdit" />
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item row="4" column="1" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>111</width>
<height>115</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0" colspan="2" >
<widget class="qdesigner_internal::GridPanel" name="gridPanel" >
<property name="title" >
<string>Grid</string>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>qdesigner_internal::GridPanel</class>
<extends>QGroupBox</extends>
<header location="global" >gridpanel_p.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>authorLineEdit</tabstop>
<tabstop>defaultMarginSpinBox</tabstop>
<tabstop>defaultSpacingSpinBox</tabstop>
<tabstop>marginFunctionLineEdit</tabstop>
<tabstop>spacingFunctionLineEdit</tabstop>
<tabstop>pixmapFunctionLineEdit</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>FormWindowSettings</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>294</x>
<y>442</y>
</hint>
<hint type="destinationlabel" >
<x>150</x>
<y>459</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>FormWindowSettings</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel" >
<x>373</x>
<y>444</y>
</hint>
<hint type="destinationlabel" >
<x>357</x>
<y>461</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -0,0 +1,273 @@
/*
* Copyright (C) 2016 The Qt Company Ltd.
* SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
*/
/********************************************************************************
** Form generated from reading UI file 'formwindowsettings.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef FORMWINDOWSETTINGS_H
#define FORMWINDOWSETTINGS_H
#include <QtCore/QVariant>
#include <QtWidgets/QAbstractButton>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QFrame>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QTextEdit>
#include <QtWidgets/QVBoxLayout>
#include <gridpanel_p.h>
QT_BEGIN_NAMESPACE
class Ui_FormWindowSettings
{
public:
QGridLayout *gridLayout;
QDialogButtonBox *buttonBox;
QFrame *line;
QHBoxLayout *hboxLayout;
QGroupBox *layoutDefaultGroupBox;
QGridLayout *gridLayout1;
QLabel *label_2;
QLabel *label;
QSpinBox *defaultSpacingSpinBox;
QSpinBox *defaultMarginSpinBox;
QGroupBox *layoutFunctionGroupBox;
QGridLayout *gridLayout2;
QLineEdit *spacingFunctionLineEdit;
QLineEdit *marginFunctionLineEdit;
QLabel *label_3;
QLabel *label_3_2;
QGroupBox *pixmapFunctionGroupBox_2;
QVBoxLayout *vboxLayout;
QLineEdit *authorLineEdit;
QGroupBox *includeHintsGroupBox;
QVBoxLayout *vboxLayout1;
QTextEdit *includeHintsTextEdit;
QHBoxLayout *hboxLayout1;
QGroupBox *pixmapFunctionGroupBox;
QVBoxLayout *vboxLayout2;
QLineEdit *pixmapFunctionLineEdit;
QSpacerItem *spacerItem;
qdesigner_internal::GridPanel *gridPanel;
void setupUi(QDialog *FormWindowSettings)
{
if (FormWindowSettings->objectName().isEmpty())
FormWindowSettings->setObjectName("FormWindowSettings");
FormWindowSettings->resize(433, 465);
gridLayout = new QGridLayout(FormWindowSettings);
gridLayout->setObjectName("gridLayout");
buttonBox = new QDialogButtonBox(FormWindowSettings);
buttonBox->setObjectName("buttonBox");
buttonBox->setOrientation(Qt::Horizontal);
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok);
gridLayout->addWidget(buttonBox, 6, 0, 1, 2);
line = new QFrame(FormWindowSettings);
line->setObjectName("line");
line->setFrameShape(QFrame::HLine);
line->setFrameShadow(QFrame::Sunken);
gridLayout->addWidget(line, 5, 0, 1, 2);
hboxLayout = new QHBoxLayout();
#ifndef Q_OS_MAC
hboxLayout->setSpacing(6);
#endif
hboxLayout->setContentsMargins(0, 0, 0, 0);
hboxLayout->setObjectName("hboxLayout");
layoutDefaultGroupBox = new QGroupBox(FormWindowSettings);
layoutDefaultGroupBox->setObjectName("layoutDefaultGroupBox");
layoutDefaultGroupBox->setCheckable(true);
gridLayout1 = new QGridLayout(layoutDefaultGroupBox);
#ifndef Q_OS_MAC
gridLayout1->setSpacing(6);
#endif
gridLayout1->setContentsMargins(8, 8, 8, 8);
gridLayout1->setObjectName("gridLayout1");
label_2 = new QLabel(layoutDefaultGroupBox);
label_2->setObjectName("label_2");
gridLayout1->addWidget(label_2, 1, 0, 1, 1);
label = new QLabel(layoutDefaultGroupBox);
label->setObjectName("label");
gridLayout1->addWidget(label, 0, 0, 1, 1);
defaultSpacingSpinBox = new QSpinBox(layoutDefaultGroupBox);
defaultSpacingSpinBox->setObjectName("defaultSpacingSpinBox");
gridLayout1->addWidget(defaultSpacingSpinBox, 1, 1, 1, 1);
defaultMarginSpinBox = new QSpinBox(layoutDefaultGroupBox);
defaultMarginSpinBox->setObjectName("defaultMarginSpinBox");
gridLayout1->addWidget(defaultMarginSpinBox, 0, 1, 1, 1);
hboxLayout->addWidget(layoutDefaultGroupBox);
layoutFunctionGroupBox = new QGroupBox(FormWindowSettings);
layoutFunctionGroupBox->setObjectName("layoutFunctionGroupBox");
layoutFunctionGroupBox->setCheckable(true);
gridLayout2 = new QGridLayout(layoutFunctionGroupBox);
#ifndef Q_OS_MAC
gridLayout2->setSpacing(6);
#endif
gridLayout2->setContentsMargins(8, 8, 8, 8);
gridLayout2->setObjectName("gridLayout2");
spacingFunctionLineEdit = new QLineEdit(layoutFunctionGroupBox);
spacingFunctionLineEdit->setObjectName("spacingFunctionLineEdit");
gridLayout2->addWidget(spacingFunctionLineEdit, 1, 1, 1, 1);
marginFunctionLineEdit = new QLineEdit(layoutFunctionGroupBox);
marginFunctionLineEdit->setObjectName("marginFunctionLineEdit");
gridLayout2->addWidget(marginFunctionLineEdit, 0, 1, 1, 1);
label_3 = new QLabel(layoutFunctionGroupBox);
label_3->setObjectName("label_3");
gridLayout2->addWidget(label_3, 0, 0, 1, 1);
label_3_2 = new QLabel(layoutFunctionGroupBox);
label_3_2->setObjectName("label_3_2");
gridLayout2->addWidget(label_3_2, 1, 0, 1, 1);
hboxLayout->addWidget(layoutFunctionGroupBox);
gridLayout->addLayout(hboxLayout, 2, 0, 1, 2);
pixmapFunctionGroupBox_2 = new QGroupBox(FormWindowSettings);
pixmapFunctionGroupBox_2->setObjectName("pixmapFunctionGroupBox_2");
vboxLayout = new QVBoxLayout(pixmapFunctionGroupBox_2);
#ifndef Q_OS_MAC
vboxLayout->setSpacing(6);
#endif
vboxLayout->setContentsMargins(8, 8, 8, 8);
vboxLayout->setObjectName("vboxLayout");
authorLineEdit = new QLineEdit(pixmapFunctionGroupBox_2);
authorLineEdit->setObjectName("authorLineEdit");
vboxLayout->addWidget(authorLineEdit);
gridLayout->addWidget(pixmapFunctionGroupBox_2, 0, 0, 1, 2);
includeHintsGroupBox = new QGroupBox(FormWindowSettings);
includeHintsGroupBox->setObjectName("includeHintsGroupBox");
vboxLayout1 = new QVBoxLayout(includeHintsGroupBox);
#ifndef Q_OS_MAC
vboxLayout1->setSpacing(6);
#endif
vboxLayout1->setContentsMargins(8, 8, 8, 8);
vboxLayout1->setObjectName("vboxLayout1");
includeHintsTextEdit = new QTextEdit(includeHintsGroupBox);
includeHintsTextEdit->setObjectName("includeHintsTextEdit");
vboxLayout1->addWidget(includeHintsTextEdit);
gridLayout->addWidget(includeHintsGroupBox, 3, 0, 2, 1);
hboxLayout1 = new QHBoxLayout();
#ifndef Q_OS_MAC
hboxLayout1->setSpacing(6);
#endif
hboxLayout1->setContentsMargins(0, 0, 0, 0);
hboxLayout1->setObjectName("hboxLayout1");
pixmapFunctionGroupBox = new QGroupBox(FormWindowSettings);
pixmapFunctionGroupBox->setObjectName("pixmapFunctionGroupBox");
pixmapFunctionGroupBox->setCheckable(true);
vboxLayout2 = new QVBoxLayout(pixmapFunctionGroupBox);
#ifndef Q_OS_MAC
vboxLayout2->setSpacing(6);
#endif
vboxLayout2->setContentsMargins(8, 8, 8, 8);
vboxLayout2->setObjectName("vboxLayout2");
pixmapFunctionLineEdit = new QLineEdit(pixmapFunctionGroupBox);
pixmapFunctionLineEdit->setObjectName("pixmapFunctionLineEdit");
vboxLayout2->addWidget(pixmapFunctionLineEdit);
hboxLayout1->addWidget(pixmapFunctionGroupBox);
gridLayout->addLayout(hboxLayout1, 3, 1, 1, 1);
spacerItem = new QSpacerItem(111, 115, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout->addItem(spacerItem, 4, 1, 1, 1);
gridPanel = new qdesigner_internal::GridPanel(FormWindowSettings);
gridPanel->setObjectName("gridPanel");
gridLayout->addWidget(gridPanel, 1, 0, 1, 2);
#if QT_CONFIG(shortcut)
label_2->setBuddy(defaultSpacingSpinBox);
label->setBuddy(defaultMarginSpinBox);
label_3->setBuddy(marginFunctionLineEdit);
label_3_2->setBuddy(spacingFunctionLineEdit);
#endif // QT_CONFIG(shortcut)
QWidget::setTabOrder(authorLineEdit, defaultMarginSpinBox);
QWidget::setTabOrder(defaultMarginSpinBox, defaultSpacingSpinBox);
QWidget::setTabOrder(defaultSpacingSpinBox, marginFunctionLineEdit);
QWidget::setTabOrder(marginFunctionLineEdit, spacingFunctionLineEdit);
QWidget::setTabOrder(spacingFunctionLineEdit, pixmapFunctionLineEdit);
retranslateUi(FormWindowSettings);
QObject::connect(buttonBox, &QDialogButtonBox::accepted, FormWindowSettings, qOverload<>(&QDialog::accept));
QObject::connect(buttonBox, &QDialogButtonBox::rejected, FormWindowSettings, qOverload<>(&QDialog::reject));
QMetaObject::connectSlotsByName(FormWindowSettings);
} // setupUi
void retranslateUi(QDialog *FormWindowSettings)
{
FormWindowSettings->setWindowTitle(QCoreApplication::translate("FormWindowSettings", "Form Settings", nullptr));
layoutDefaultGroupBox->setTitle(QCoreApplication::translate("FormWindowSettings", "Layout &Default", nullptr));
label_2->setText(QCoreApplication::translate("FormWindowSettings", "&Spacing:", nullptr));
label->setText(QCoreApplication::translate("FormWindowSettings", "&Margin:", nullptr));
layoutFunctionGroupBox->setTitle(QCoreApplication::translate("FormWindowSettings", "&Layout Function", nullptr));
label_3->setText(QCoreApplication::translate("FormWindowSettings", "Ma&rgin:", nullptr));
label_3_2->setText(QCoreApplication::translate("FormWindowSettings", "Spa&cing:", nullptr));
pixmapFunctionGroupBox_2->setTitle(QCoreApplication::translate("FormWindowSettings", "&Author", nullptr));
includeHintsGroupBox->setTitle(QCoreApplication::translate("FormWindowSettings", "&Include Hints", nullptr));
pixmapFunctionGroupBox->setTitle(QCoreApplication::translate("FormWindowSettings", "&Pixmap Function", nullptr));
gridPanel->setTitle(QCoreApplication::translate("FormWindowSettings", "Grid", nullptr));
} // retranslateUi
};
namespace Ui {
class FormWindowSettings: public Ui_FormWindowSettings {};
} // namespace Ui
QT_END_NAMESPACE
#endif // FORMWINDOWSETTINGS_H

View File

@ -0,0 +1,69 @@
<ui version="4.0" >
<class>GeneralPage</class>
<widget class="QWidget" name="GeneralPage" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>417</width>
<height>243</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
<layout class="QGridLayout" >
<item row="1" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Namespace:</string>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QLineEdit" name="namespaceLineEdit" />
</item>
<item row="2" column="0" >
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>Virtual Folder:</string>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QLineEdit" name="folderLineEdit" />
</item>
<item row="0" column="1" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="3" column="1" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,89 @@
/********************************************************************************
** Form generated from reading UI file 'generalpage.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef GENERALPAGE_H
#define GENERALPAGE_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_GeneralPage
{
public:
QGridLayout *gridLayout;
QLabel *label;
QLineEdit *namespaceLineEdit;
QLabel *label_2;
QLineEdit *folderLineEdit;
QSpacerItem *spacerItem;
QSpacerItem *spacerItem1;
void setupUi(QWidget *GeneralPage)
{
if (GeneralPage->objectName().isEmpty())
GeneralPage->setObjectName("GeneralPage");
GeneralPage->resize(417, 243);
gridLayout = new QGridLayout(GeneralPage);
gridLayout->setObjectName("gridLayout");
label = new QLabel(GeneralPage);
label->setObjectName("label");
gridLayout->addWidget(label, 1, 0, 1, 1);
namespaceLineEdit = new QLineEdit(GeneralPage);
namespaceLineEdit->setObjectName("namespaceLineEdit");
gridLayout->addWidget(namespaceLineEdit, 1, 1, 1, 1);
label_2 = new QLabel(GeneralPage);
label_2->setObjectName("label_2");
gridLayout->addWidget(label_2, 2, 0, 1, 1);
folderLineEdit = new QLineEdit(GeneralPage);
folderLineEdit->setObjectName("folderLineEdit");
gridLayout->addWidget(folderLineEdit, 2, 1, 1, 1);
spacerItem = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed);
gridLayout->addItem(spacerItem, 0, 1, 1, 1);
spacerItem1 = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout->addItem(spacerItem1, 3, 1, 1, 1);
retranslateUi(GeneralPage);
QMetaObject::connectSlotsByName(GeneralPage);
} // setupUi
void retranslateUi(QWidget *GeneralPage)
{
GeneralPage->setWindowTitle(QCoreApplication::translate("GeneralPage", "Form", nullptr));
label->setText(QCoreApplication::translate("GeneralPage", "Namespace:", nullptr));
label_2->setText(QCoreApplication::translate("GeneralPage", "Virtual Folder:", nullptr));
} // retranslateUi
};
namespace Ui {
class GeneralPage: public Ui_GeneralPage {};
} // namespace Ui
QT_END_NAMESPACE
#endif // GENERALPAGE_H

View File

@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>279</width>
<height>163</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0" alignment="Qt::AlignLeft">
<widget class="QPushButton" name="pushButton">
<property name="text">
<string>Left</string>
</property>
</widget>
</item>
<item row="0" column="1" alignment="Qt::AlignTop">
<widget class="QPushButton" name="pushButton_3">
<property name="text">
<string>Top</string>
</property>
</widget>
</item>
<item row="1" column="0" alignment="Qt::AlignRight">
<widget class="QPushButton" name="pushButton_2">
<property name="text">
<string>Right</string>
</property>
</widget>
</item>
<item row="1" column="1" alignment="Qt::AlignBottom">
<widget class="QPushButton" name="pushButton_4">
<property name="text">
<string>Bottom</string>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,79 @@
/********************************************************************************
** Form generated from reading UI file 'gridalignment.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef GRIDALIGNMENT_H
#define GRIDALIGNMENT_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_Form
{
public:
QGridLayout *gridLayout;
QPushButton *pushButton;
QPushButton *pushButton_3;
QPushButton *pushButton_2;
QPushButton *pushButton_4;
void setupUi(QWidget *Form)
{
if (Form->objectName().isEmpty())
Form->setObjectName("Form");
Form->resize(279, 163);
gridLayout = new QGridLayout(Form);
gridLayout->setObjectName("gridLayout");
pushButton = new QPushButton(Form);
pushButton->setObjectName("pushButton");
gridLayout->addWidget(pushButton, 0, 0, 1, 1, Qt::AlignLeft);
pushButton_3 = new QPushButton(Form);
pushButton_3->setObjectName("pushButton_3");
gridLayout->addWidget(pushButton_3, 0, 1, 1, 1, Qt::AlignTop);
pushButton_2 = new QPushButton(Form);
pushButton_2->setObjectName("pushButton_2");
gridLayout->addWidget(pushButton_2, 1, 0, 1, 1, Qt::AlignRight);
pushButton_4 = new QPushButton(Form);
pushButton_4->setObjectName("pushButton_4");
gridLayout->addWidget(pushButton_4, 1, 1, 1, 1, Qt::AlignBottom);
retranslateUi(Form);
QMetaObject::connectSlotsByName(Form);
} // setupUi
void retranslateUi(QWidget *Form)
{
Form->setWindowTitle(QCoreApplication::translate("Form", "Form", nullptr));
pushButton->setText(QCoreApplication::translate("Form", "Left", nullptr));
pushButton_3->setText(QCoreApplication::translate("Form", "Top", nullptr));
pushButton_2->setText(QCoreApplication::translate("Form", "Right", nullptr));
pushButton_4->setText(QCoreApplication::translate("Form", "Bottom", nullptr));
} // retranslateUi
};
namespace Ui {
class Form: public Ui_Form {};
} // namespace Ui
QT_END_NAMESPACE
#endif // GRIDALIGNMENT_H

View File

@ -0,0 +1,144 @@
<ui version="4.0" >
<class>qdesigner_internal::GridPanel</class>
<widget class="QWidget" name="qdesigner_internal::GridPanel" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>393</width>
<height>110</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
<layout class="QVBoxLayout" >
<property name="leftMargin" >
<number>0</number>
</property>
<property name="topMargin" >
<number>0</number>
</property>
<property name="rightMargin" >
<number>0</number>
</property>
<property name="bottomMargin" >
<number>0</number>
</property>
<item>
<widget class="QGroupBox" name="m_gridGroupBox" >
<property name="title" >
<string>Grid</string>
</property>
<layout class="QGridLayout" >
<item row="0" column="0" >
<widget class="QCheckBox" name="m_visibleCheckBox" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>Visible</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Grid &amp;X</string>
</property>
<property name="buddy" >
<cstring>m_deltaXSpinBox</cstring>
</property>
</widget>
</item>
<item row="0" column="2" >
<widget class="QSpinBox" name="m_deltaXSpinBox" >
<property name="minimum" >
<number>2</number>
</property>
<property name="maximum" >
<number>100</number>
</property>
</widget>
</item>
<item row="0" column="3" >
<widget class="QCheckBox" name="m_snapXCheckBox" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>Snap</string>
</property>
</widget>
</item>
<item row="1" column="0" >
<layout class="QHBoxLayout" >
<item>
<widget class="QPushButton" name="m_resetButton" >
<property name="text" >
<string>Reset</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item row="1" column="1" >
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>Grid &amp;Y</string>
</property>
<property name="buddy" >
<cstring>m_deltaYSpinBox</cstring>
</property>
</widget>
</item>
<item row="1" column="2" >
<widget class="QSpinBox" name="m_deltaYSpinBox" >
<property name="minimum" >
<number>2</number>
</property>
<property name="maximum" >
<number>100</number>
</property>
</widget>
</item>
<item row="1" column="3" >
<widget class="QCheckBox" name="m_snapYCheckBox" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>Snap</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,157 @@
/********************************************************************************
** Form generated from reading UI file 'gridpanel.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef GRIDPANEL_H
#define GRIDPANEL_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
namespace qdesigner_internal {
class Ui_GridPanel
{
public:
QVBoxLayout *vboxLayout;
QGroupBox *m_gridGroupBox;
QGridLayout *gridLayout;
QCheckBox *m_visibleCheckBox;
QLabel *label;
QSpinBox *m_deltaXSpinBox;
QCheckBox *m_snapXCheckBox;
QHBoxLayout *hboxLayout;
QPushButton *m_resetButton;
QSpacerItem *spacerItem;
QLabel *label_2;
QSpinBox *m_deltaYSpinBox;
QCheckBox *m_snapYCheckBox;
void setupUi(QWidget *qdesigner_internal__GridPanel)
{
if (qdesigner_internal__GridPanel->objectName().isEmpty())
qdesigner_internal__GridPanel->setObjectName("qdesigner_internal__GridPanel");
qdesigner_internal__GridPanel->resize(393, 110);
vboxLayout = new QVBoxLayout(qdesigner_internal__GridPanel);
vboxLayout->setObjectName("vboxLayout");
vboxLayout->setContentsMargins(0, 0, 0, 0);
m_gridGroupBox = new QGroupBox(qdesigner_internal__GridPanel);
m_gridGroupBox->setObjectName("m_gridGroupBox");
gridLayout = new QGridLayout(m_gridGroupBox);
gridLayout->setObjectName("gridLayout");
m_visibleCheckBox = new QCheckBox(m_gridGroupBox);
m_visibleCheckBox->setObjectName("m_visibleCheckBox");
QSizePolicy sizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(m_visibleCheckBox->sizePolicy().hasHeightForWidth());
m_visibleCheckBox->setSizePolicy(sizePolicy);
gridLayout->addWidget(m_visibleCheckBox, 0, 0, 1, 1);
label = new QLabel(m_gridGroupBox);
label->setObjectName("label");
gridLayout->addWidget(label, 0, 1, 1, 1);
m_deltaXSpinBox = new QSpinBox(m_gridGroupBox);
m_deltaXSpinBox->setObjectName("m_deltaXSpinBox");
m_deltaXSpinBox->setMinimum(2);
m_deltaXSpinBox->setMaximum(100);
gridLayout->addWidget(m_deltaXSpinBox, 0, 2, 1, 1);
m_snapXCheckBox = new QCheckBox(m_gridGroupBox);
m_snapXCheckBox->setObjectName("m_snapXCheckBox");
sizePolicy.setHeightForWidth(m_snapXCheckBox->sizePolicy().hasHeightForWidth());
m_snapXCheckBox->setSizePolicy(sizePolicy);
gridLayout->addWidget(m_snapXCheckBox, 0, 3, 1, 1);
hboxLayout = new QHBoxLayout();
hboxLayout->setObjectName("hboxLayout");
m_resetButton = new QPushButton(m_gridGroupBox);
m_resetButton->setObjectName("m_resetButton");
hboxLayout->addWidget(m_resetButton);
spacerItem = new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout->addItem(spacerItem);
gridLayout->addLayout(hboxLayout, 1, 0, 1, 1);
label_2 = new QLabel(m_gridGroupBox);
label_2->setObjectName("label_2");
gridLayout->addWidget(label_2, 1, 1, 1, 1);
m_deltaYSpinBox = new QSpinBox(m_gridGroupBox);
m_deltaYSpinBox->setObjectName("m_deltaYSpinBox");
m_deltaYSpinBox->setMinimum(2);
m_deltaYSpinBox->setMaximum(100);
gridLayout->addWidget(m_deltaYSpinBox, 1, 2, 1, 1);
m_snapYCheckBox = new QCheckBox(m_gridGroupBox);
m_snapYCheckBox->setObjectName("m_snapYCheckBox");
sizePolicy.setHeightForWidth(m_snapYCheckBox->sizePolicy().hasHeightForWidth());
m_snapYCheckBox->setSizePolicy(sizePolicy);
gridLayout->addWidget(m_snapYCheckBox, 1, 3, 1, 1);
vboxLayout->addWidget(m_gridGroupBox);
#if QT_CONFIG(shortcut)
label->setBuddy(m_deltaXSpinBox);
label_2->setBuddy(m_deltaYSpinBox);
#endif // QT_CONFIG(shortcut)
retranslateUi(qdesigner_internal__GridPanel);
QMetaObject::connectSlotsByName(qdesigner_internal__GridPanel);
} // setupUi
void retranslateUi(QWidget *qdesigner_internal__GridPanel)
{
qdesigner_internal__GridPanel->setWindowTitle(QCoreApplication::translate("qdesigner_internal::GridPanel", "Form", nullptr));
m_gridGroupBox->setTitle(QCoreApplication::translate("qdesigner_internal::GridPanel", "Grid", nullptr));
m_visibleCheckBox->setText(QCoreApplication::translate("qdesigner_internal::GridPanel", "Visible", nullptr));
label->setText(QCoreApplication::translate("qdesigner_internal::GridPanel", "Grid &X", nullptr));
m_snapXCheckBox->setText(QCoreApplication::translate("qdesigner_internal::GridPanel", "Snap", nullptr));
m_resetButton->setText(QCoreApplication::translate("qdesigner_internal::GridPanel", "Reset", nullptr));
label_2->setText(QCoreApplication::translate("qdesigner_internal::GridPanel", "Grid &Y", nullptr));
m_snapYCheckBox->setText(QCoreApplication::translate("qdesigner_internal::GridPanel", "Snap", nullptr));
} // retranslateUi
};
} // namespace qdesigner_internal
namespace qdesigner_internal {
namespace Ui {
class GridPanel: public Ui_GridPanel {};
} // namespace Ui
} // namespace qdesigner_internal
QT_END_NAMESPACE
#endif // GRIDPANEL_H

View File

@ -0,0 +1,370 @@
<ui version="4.0" >
<comment>
* Copyright (C) 2016 The Qt Company Ltd.
* SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
</comment>
<exportmacro></exportmacro>
<class>HelpDialog</class>
<widget class="QWidget" name="HelpDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>274</width>
<height>417</height>
</rect>
</property>
<property name="windowTitle" >
<string>Help</string>
</property>
<property name="whatsThis" >
<string>&lt;b>Help&lt;/b>&lt;p>Choose the topic you want help on from the contents list, or search the index for keywords.&lt;/p></string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QTabWidget" name="tabWidget" >
<property name="whatsThis" >
<string>Displays help topics organized by category, index or bookmarks. Another tab inherits the full text search.</string>
</property>
<widget class="QWidget" name="contentPage" >
<attribute name="icon">
<iconset theme="edit-copy"/>
</attribute>
<attribute name="title" >
<string>Con&amp;tents</string>
</attribute>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>5</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QTreeWidget" name="listContents" >
<property name="contextMenuPolicy" >
<enum>Qt::CustomContextMenu</enum>
</property>
<property name="whatsThis" >
<string>&lt;b>Help topics organized by category.&lt;/b>&lt;p>Double-click an item to see the topics in that category. To view a topic, just double-click it.&lt;/p></string>
</property>
<property name="rootIsDecorated" >
<bool>true</bool>
</property>
<property name="uniformRowHeights" >
<bool>true</bool>
</property>
<column>
<property name="text" >
<string>column 1</string>
</property>
</column>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="indexPage" >
<attribute name="title" >
<string>&amp;Index</string>
</attribute>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>5</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="TextLabel1" >
<property name="text" >
<string>&amp;Look For:</string>
</property>
<property name="buddy" >
<cstring>editIndex</cstring>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="editIndex" >
<property name="toolTip" >
<string>Enter keyword</string>
</property>
<property name="whatsThis" >
<string>&lt;b>Enter a keyword.&lt;/b>&lt;p>The list will select an item that matches the entered string best.&lt;/p></string>
</property>
</widget>
</item>
<item>
<widget class="QListView" name="listIndex" >
<property name="contextMenuPolicy" >
<enum>Qt::CustomContextMenu</enum>
</property>
<property name="whatsThis" >
<string>&lt;b>List of available help topics.&lt;/b>&lt;p>Double-click on an item to open its help page. If more than one is found, you must specify which page you want.&lt;/p></string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="bookmarkPage" >
<attribute name="title" >
<string>&amp;Bookmarks</string>
</attribute>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>5</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QTreeWidget" name="listBookmarks" >
<property name="contextMenuPolicy" >
<enum>Qt::CustomContextMenu</enum>
</property>
<property name="whatsThis" >
<string>Displays the list of bookmarks.</string>
</property>
<property name="uniformRowHeights" >
<bool>true</bool>
</property>
<column>
<property name="text" >
<string>column 1</string>
</property>
</column>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="buttonAdd" >
<property name="toolTip" >
<string>Add new bookmark</string>
</property>
<property name="whatsThis" >
<string>Add the currently displayed page as a new bookmark.</string>
</property>
<property name="text" >
<string>&amp;New</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonRemove" >
<property name="toolTip" >
<string>Delete bookmark</string>
</property>
<property name="whatsThis" >
<string>Delete the selected bookmark.</string>
</property>
<property name="text" >
<string>&amp;Delete</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QWidget" name="searchPage" >
<attribute name="title" >
<string>&amp;Search</string>
</attribute>
<layout class="QGridLayout" >
<property name="margin" >
<number>5</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="3" column="0" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="TextLabel1_2" >
<property name="text" >
<string>Searching f&amp;or:</string>
</property>
<property name="buddy" >
<cstring>termsEdit</cstring>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLineEdit" name="termsEdit" >
<property name="toolTip" >
<string>Enter searchword(s).</string>
</property>
<property name="whatsThis" >
<string>&lt;b>Enter search word(s).&lt;/b>&lt;p>Enter here the word(s) you are looking for. The words may contain wildcards (*). For a sequence of words quote them.&lt;/p></string>
</property>
</widget>
</item>
<item row="5" column="0" >
<widget class="QListWidget" name="resultBox" >
<property name="contextMenuPolicy" >
<enum>Qt::CustomContextMenu</enum>
</property>
<property name="whatsThis" >
<string>&lt;b>Found documents&lt;/b>&lt;p>This list contains all found documents from the last search. The documents are ordered, i.e. the first document has the most matches.&lt;/p></string>
</property>
</widget>
</item>
<item row="4" column="0" >
<widget class="QLabel" name="TextLabel2" >
<property name="text" >
<string>Found &amp;Documents:</string>
</property>
<property name="buddy" >
<cstring>resultBox</cstring>
</property>
</widget>
</item>
<item row="2" column="0" >
<layout class="QHBoxLayout" >
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QPushButton" name="helpButton" >
<property name="toolTip" >
<string>Display the help page.</string>
</property>
<property name="whatsThis" >
<string>Display the help page for the full text search.</string>
</property>
<property name="text" >
<string>He&amp;lp</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" >
<size>
<width>61</width>
<height>21</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="searchButton" >
<property name="toolTip" >
<string>Start searching.</string>
</property>
<property name="whatsThis" >
<string>Pressing this button starts the search.</string>
</property>
<property name="text" >
<string>&amp;Search</string>
</property>
<property name="enabled" >
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
</item>
<item>
<widget class="QFrame" name="framePrepare" >
<property name="frameShape" >
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow" >
<enum>QFrame::Raised</enum>
</property>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>3</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="labelPrepare" >
<property name="text" >
<string>Preparing...</string>
</property>
</widget>
</item>
<item>
<widget class="QProgressBar" name="progressPrepare" />
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<pixmapfunction></pixmapfunction>
<tabstops>
<tabstop>tabWidget</tabstop>
<tabstop>listContents</tabstop>
<tabstop>editIndex</tabstop>
<tabstop>listIndex</tabstop>
<tabstop>listBookmarks</tabstop>
<tabstop>buttonAdd</tabstop>
<tabstop>buttonRemove</tabstop>
<tabstop>termsEdit</tabstop>
<tabstop>searchButton</tabstop>
<tabstop>helpButton</tabstop>
<tabstop>resultBox</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,358 @@
/*
* Copyright (C) 2016 The Qt Company Ltd.
* SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
*/
/********************************************************************************
** Form generated from reading UI file 'helpdialog.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef HELPDIALOG_H
#define HELPDIALOG_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QFrame>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QListView>
#include <QtWidgets/QListWidget>
#include <QtWidgets/QProgressBar>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QTabWidget>
#include <QtWidgets/QTreeWidget>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_HelpDialog
{
public:
QVBoxLayout *vboxLayout;
QTabWidget *tabWidget;
QWidget *contentPage;
QVBoxLayout *vboxLayout1;
QTreeWidget *listContents;
QWidget *indexPage;
QVBoxLayout *vboxLayout2;
QLabel *TextLabel1;
QLineEdit *editIndex;
QListView *listIndex;
QWidget *bookmarkPage;
QVBoxLayout *vboxLayout3;
QTreeWidget *listBookmarks;
QHBoxLayout *hboxLayout;
QSpacerItem *spacerItem;
QPushButton *buttonAdd;
QPushButton *buttonRemove;
QWidget *searchPage;
QGridLayout *gridLayout;
QSpacerItem *spacerItem1;
QLabel *TextLabel1_2;
QLineEdit *termsEdit;
QListWidget *resultBox;
QLabel *TextLabel2;
QHBoxLayout *hboxLayout1;
QPushButton *helpButton;
QSpacerItem *spacerItem2;
QPushButton *searchButton;
QFrame *framePrepare;
QHBoxLayout *hboxLayout2;
QLabel *labelPrepare;
QProgressBar *progressPrepare;
void setupUi(QWidget *HelpDialog)
{
if (HelpDialog->objectName().isEmpty())
HelpDialog->setObjectName("HelpDialog");
HelpDialog->resize(274, 417);
vboxLayout = new QVBoxLayout(HelpDialog);
#ifndef Q_OS_MAC
vboxLayout->setSpacing(6);
#endif
vboxLayout->setContentsMargins(0, 0, 0, 0);
vboxLayout->setObjectName("vboxLayout");
tabWidget = new QTabWidget(HelpDialog);
tabWidget->setObjectName("tabWidget");
contentPage = new QWidget();
contentPage->setObjectName("contentPage");
vboxLayout1 = new QVBoxLayout(contentPage);
#ifndef Q_OS_MAC
vboxLayout1->setSpacing(6);
#endif
vboxLayout1->setContentsMargins(5, 5, 5, 5);
vboxLayout1->setObjectName("vboxLayout1");
listContents = new QTreeWidget(contentPage);
listContents->setObjectName("listContents");
listContents->setContextMenuPolicy(Qt::CustomContextMenu);
listContents->setRootIsDecorated(true);
listContents->setUniformRowHeights(true);
vboxLayout1->addWidget(listContents);
QIcon icon(QIcon::fromTheme(QString::fromUtf8("edit-copy")));
tabWidget->addTab(contentPage, icon, QString());
indexPage = new QWidget();
indexPage->setObjectName("indexPage");
vboxLayout2 = new QVBoxLayout(indexPage);
#ifndef Q_OS_MAC
vboxLayout2->setSpacing(6);
#endif
vboxLayout2->setContentsMargins(5, 5, 5, 5);
vboxLayout2->setObjectName("vboxLayout2");
TextLabel1 = new QLabel(indexPage);
TextLabel1->setObjectName("TextLabel1");
vboxLayout2->addWidget(TextLabel1);
editIndex = new QLineEdit(indexPage);
editIndex->setObjectName("editIndex");
vboxLayout2->addWidget(editIndex);
listIndex = new QListView(indexPage);
listIndex->setObjectName("listIndex");
listIndex->setContextMenuPolicy(Qt::CustomContextMenu);
vboxLayout2->addWidget(listIndex);
tabWidget->addTab(indexPage, QString());
bookmarkPage = new QWidget();
bookmarkPage->setObjectName("bookmarkPage");
vboxLayout3 = new QVBoxLayout(bookmarkPage);
#ifndef Q_OS_MAC
vboxLayout3->setSpacing(6);
#endif
vboxLayout3->setContentsMargins(5, 5, 5, 5);
vboxLayout3->setObjectName("vboxLayout3");
listBookmarks = new QTreeWidget(bookmarkPage);
listBookmarks->setObjectName("listBookmarks");
listBookmarks->setContextMenuPolicy(Qt::CustomContextMenu);
listBookmarks->setUniformRowHeights(true);
vboxLayout3->addWidget(listBookmarks);
hboxLayout = new QHBoxLayout();
#ifndef Q_OS_MAC
hboxLayout->setSpacing(6);
#endif
hboxLayout->setContentsMargins(0, 0, 0, 0);
hboxLayout->setObjectName("hboxLayout");
spacerItem = new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout->addItem(spacerItem);
buttonAdd = new QPushButton(bookmarkPage);
buttonAdd->setObjectName("buttonAdd");
hboxLayout->addWidget(buttonAdd);
buttonRemove = new QPushButton(bookmarkPage);
buttonRemove->setObjectName("buttonRemove");
hboxLayout->addWidget(buttonRemove);
vboxLayout3->addLayout(hboxLayout);
tabWidget->addTab(bookmarkPage, QString());
searchPage = new QWidget();
searchPage->setObjectName("searchPage");
gridLayout = new QGridLayout(searchPage);
#ifndef Q_OS_MAC
gridLayout->setSpacing(6);
#endif
gridLayout->setContentsMargins(5, 5, 5, 5);
gridLayout->setObjectName("gridLayout");
spacerItem1 = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed);
gridLayout->addItem(spacerItem1, 3, 0, 1, 1);
TextLabel1_2 = new QLabel(searchPage);
TextLabel1_2->setObjectName("TextLabel1_2");
gridLayout->addWidget(TextLabel1_2, 0, 0, 1, 1);
termsEdit = new QLineEdit(searchPage);
termsEdit->setObjectName("termsEdit");
gridLayout->addWidget(termsEdit, 1, 0, 1, 1);
resultBox = new QListWidget(searchPage);
resultBox->setObjectName("resultBox");
resultBox->setContextMenuPolicy(Qt::CustomContextMenu);
gridLayout->addWidget(resultBox, 5, 0, 1, 1);
TextLabel2 = new QLabel(searchPage);
TextLabel2->setObjectName("TextLabel2");
gridLayout->addWidget(TextLabel2, 4, 0, 1, 1);
hboxLayout1 = new QHBoxLayout();
#ifndef Q_OS_MAC
hboxLayout1->setSpacing(6);
#endif
hboxLayout1->setContentsMargins(1, 1, 1, 1);
hboxLayout1->setObjectName("hboxLayout1");
helpButton = new QPushButton(searchPage);
helpButton->setObjectName("helpButton");
hboxLayout1->addWidget(helpButton);
spacerItem2 = new QSpacerItem(61, 21, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout1->addItem(spacerItem2);
searchButton = new QPushButton(searchPage);
searchButton->setObjectName("searchButton");
searchButton->setEnabled(false);
hboxLayout1->addWidget(searchButton);
gridLayout->addLayout(hboxLayout1, 2, 0, 1, 1);
tabWidget->addTab(searchPage, QString());
vboxLayout->addWidget(tabWidget);
framePrepare = new QFrame(HelpDialog);
framePrepare->setObjectName("framePrepare");
framePrepare->setFrameShape(QFrame::StyledPanel);
framePrepare->setFrameShadow(QFrame::Raised);
hboxLayout2 = new QHBoxLayout(framePrepare);
#ifndef Q_OS_MAC
hboxLayout2->setSpacing(6);
#endif
hboxLayout2->setContentsMargins(3, 3, 3, 3);
hboxLayout2->setObjectName("hboxLayout2");
labelPrepare = new QLabel(framePrepare);
labelPrepare->setObjectName("labelPrepare");
hboxLayout2->addWidget(labelPrepare);
progressPrepare = new QProgressBar(framePrepare);
progressPrepare->setObjectName("progressPrepare");
hboxLayout2->addWidget(progressPrepare);
vboxLayout->addWidget(framePrepare);
#if QT_CONFIG(shortcut)
TextLabel1->setBuddy(editIndex);
TextLabel1_2->setBuddy(termsEdit);
TextLabel2->setBuddy(resultBox);
#endif // QT_CONFIG(shortcut)
QWidget::setTabOrder(tabWidget, listContents);
QWidget::setTabOrder(listContents, editIndex);
QWidget::setTabOrder(editIndex, listIndex);
QWidget::setTabOrder(listIndex, listBookmarks);
QWidget::setTabOrder(listBookmarks, buttonAdd);
QWidget::setTabOrder(buttonAdd, buttonRemove);
QWidget::setTabOrder(buttonRemove, termsEdit);
QWidget::setTabOrder(termsEdit, searchButton);
QWidget::setTabOrder(searchButton, helpButton);
QWidget::setTabOrder(helpButton, resultBox);
retranslateUi(HelpDialog);
QMetaObject::connectSlotsByName(HelpDialog);
} // setupUi
void retranslateUi(QWidget *HelpDialog)
{
HelpDialog->setWindowTitle(QCoreApplication::translate("HelpDialog", "Help", nullptr));
#if QT_CONFIG(whatsthis)
HelpDialog->setWhatsThis(QCoreApplication::translate("HelpDialog", "<b>Help</b><p>Choose the topic you want help on from the contents list, or search the index for keywords.</p>", nullptr));
#endif // QT_CONFIG(whatsthis)
#if QT_CONFIG(whatsthis)
tabWidget->setWhatsThis(QCoreApplication::translate("HelpDialog", "Displays help topics organized by category, index or bookmarks. Another tab inherits the full text search.", nullptr));
#endif // QT_CONFIG(whatsthis)
QTreeWidgetItem *___qtreewidgetitem = listContents->headerItem();
___qtreewidgetitem->setText(0, QCoreApplication::translate("HelpDialog", "column 1", nullptr));
#if QT_CONFIG(whatsthis)
listContents->setWhatsThis(QCoreApplication::translate("HelpDialog", "<b>Help topics organized by category.</b><p>Double-click an item to see the topics in that category. To view a topic, just double-click it.</p>", nullptr));
#endif // QT_CONFIG(whatsthis)
tabWidget->setTabText(tabWidget->indexOf(contentPage), QCoreApplication::translate("HelpDialog", "Con&tents", nullptr));
TextLabel1->setText(QCoreApplication::translate("HelpDialog", "&Look For:", nullptr));
#if QT_CONFIG(tooltip)
editIndex->setToolTip(QCoreApplication::translate("HelpDialog", "Enter keyword", nullptr));
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(whatsthis)
editIndex->setWhatsThis(QCoreApplication::translate("HelpDialog", "<b>Enter a keyword.</b><p>The list will select an item that matches the entered string best.</p>", nullptr));
#endif // QT_CONFIG(whatsthis)
#if QT_CONFIG(whatsthis)
listIndex->setWhatsThis(QCoreApplication::translate("HelpDialog", "<b>List of available help topics.</b><p>Double-click on an item to open its help page. If more than one is found, you must specify which page you want.</p>", nullptr));
#endif // QT_CONFIG(whatsthis)
tabWidget->setTabText(tabWidget->indexOf(indexPage), QCoreApplication::translate("HelpDialog", "&Index", nullptr));
QTreeWidgetItem *___qtreewidgetitem1 = listBookmarks->headerItem();
___qtreewidgetitem1->setText(0, QCoreApplication::translate("HelpDialog", "column 1", nullptr));
#if QT_CONFIG(whatsthis)
listBookmarks->setWhatsThis(QCoreApplication::translate("HelpDialog", "Displays the list of bookmarks.", nullptr));
#endif // QT_CONFIG(whatsthis)
#if QT_CONFIG(tooltip)
buttonAdd->setToolTip(QCoreApplication::translate("HelpDialog", "Add new bookmark", nullptr));
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(whatsthis)
buttonAdd->setWhatsThis(QCoreApplication::translate("HelpDialog", "Add the currently displayed page as a new bookmark.", nullptr));
#endif // QT_CONFIG(whatsthis)
buttonAdd->setText(QCoreApplication::translate("HelpDialog", "&New", nullptr));
#if QT_CONFIG(tooltip)
buttonRemove->setToolTip(QCoreApplication::translate("HelpDialog", "Delete bookmark", nullptr));
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(whatsthis)
buttonRemove->setWhatsThis(QCoreApplication::translate("HelpDialog", "Delete the selected bookmark.", nullptr));
#endif // QT_CONFIG(whatsthis)
buttonRemove->setText(QCoreApplication::translate("HelpDialog", "&Delete", nullptr));
tabWidget->setTabText(tabWidget->indexOf(bookmarkPage), QCoreApplication::translate("HelpDialog", "&Bookmarks", nullptr));
TextLabel1_2->setText(QCoreApplication::translate("HelpDialog", "Searching f&or:", nullptr));
#if QT_CONFIG(tooltip)
termsEdit->setToolTip(QCoreApplication::translate("HelpDialog", "Enter searchword(s).", nullptr));
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(whatsthis)
termsEdit->setWhatsThis(QCoreApplication::translate("HelpDialog", "<b>Enter search word(s).</b><p>Enter here the word(s) you are looking for. The words may contain wildcards (*). For a sequence of words quote them.</p>", nullptr));
#endif // QT_CONFIG(whatsthis)
#if QT_CONFIG(whatsthis)
resultBox->setWhatsThis(QCoreApplication::translate("HelpDialog", "<b>Found documents</b><p>This list contains all found documents from the last search. The documents are ordered, i.e. the first document has the most matches.</p>", nullptr));
#endif // QT_CONFIG(whatsthis)
TextLabel2->setText(QCoreApplication::translate("HelpDialog", "Found &Documents:", nullptr));
#if QT_CONFIG(tooltip)
helpButton->setToolTip(QCoreApplication::translate("HelpDialog", "Display the help page.", nullptr));
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(whatsthis)
helpButton->setWhatsThis(QCoreApplication::translate("HelpDialog", "Display the help page for the full text search.", nullptr));
#endif // QT_CONFIG(whatsthis)
helpButton->setText(QCoreApplication::translate("HelpDialog", "He&lp", nullptr));
#if QT_CONFIG(tooltip)
searchButton->setToolTip(QCoreApplication::translate("HelpDialog", "Start searching.", nullptr));
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(whatsthis)
searchButton->setWhatsThis(QCoreApplication::translate("HelpDialog", "Pressing this button starts the search.", nullptr));
#endif // QT_CONFIG(whatsthis)
searchButton->setText(QCoreApplication::translate("HelpDialog", "&Search", nullptr));
tabWidget->setTabText(tabWidget->indexOf(searchPage), QCoreApplication::translate("HelpDialog", "&Search", nullptr));
labelPrepare->setText(QCoreApplication::translate("HelpDialog", "Preparing...", nullptr));
} // retranslateUi
};
namespace Ui {
class HelpDialog: public Ui_HelpDialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // HELPDIALOG_H

View File

@ -0,0 +1,106 @@
<ui version="4.0" >
<class>HistoryDialog</class>
<widget class="QDialog" name="HistoryDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>758</width>
<height>450</height>
</rect>
</property>
<property name="windowTitle" >
<string>History</string>
</property>
<layout class="QGridLayout" name="gridLayout" >
<item row="0" column="0" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>252</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1" >
<widget class="SearchLineEdit" name="search" />
</item>
<item row="1" column="0" colspan="2" >
<widget class="EditTreeView" name="tree" />
</item>
<item row="2" column="0" colspan="2" >
<layout class="QHBoxLayout" >
<item>
<widget class="QPushButton" name="removeButton" >
<property name="text" >
<string>&amp;Remove</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="removeAllButton" >
<property name="text" >
<string>Remove &amp;All</string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox" >
<property name="standardButtons" >
<set>QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>SearchLineEdit</class>
<extends>QLineEdit</extends>
<header>searchlineedit.h</header>
</customwidget>
<customwidget>
<class>EditTreeView</class>
<extends>QTreeView</extends>
<header>edittreeview.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>HistoryDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>472</x>
<y>329</y>
</hint>
<hint type="destinationlabel" >
<x>461</x>
<y>356</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -0,0 +1,108 @@
/********************************************************************************
** Form generated from reading UI file 'history.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef HISTORY_H
#define HISTORY_H
#include <QtCore/QVariant>
#include <QtWidgets/QAbstractButton>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include "edittreeview.h"
#include "searchlineedit.h"
QT_BEGIN_NAMESPACE
class Ui_HistoryDialog
{
public:
QGridLayout *gridLayout;
QSpacerItem *spacerItem;
SearchLineEdit *search;
EditTreeView *tree;
QHBoxLayout *hboxLayout;
QPushButton *removeButton;
QPushButton *removeAllButton;
QSpacerItem *spacerItem1;
QDialogButtonBox *buttonBox;
void setupUi(QDialog *HistoryDialog)
{
if (HistoryDialog->objectName().isEmpty())
HistoryDialog->setObjectName("HistoryDialog");
HistoryDialog->resize(758, 450);
gridLayout = new QGridLayout(HistoryDialog);
gridLayout->setObjectName("gridLayout");
spacerItem = new QSpacerItem(252, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout->addItem(spacerItem, 0, 0, 1, 1);
search = new SearchLineEdit(HistoryDialog);
search->setObjectName("search");
gridLayout->addWidget(search, 0, 1, 1, 1);
tree = new EditTreeView(HistoryDialog);
tree->setObjectName("tree");
gridLayout->addWidget(tree, 1, 0, 1, 2);
hboxLayout = new QHBoxLayout();
hboxLayout->setObjectName("hboxLayout");
removeButton = new QPushButton(HistoryDialog);
removeButton->setObjectName("removeButton");
hboxLayout->addWidget(removeButton);
removeAllButton = new QPushButton(HistoryDialog);
removeAllButton->setObjectName("removeAllButton");
hboxLayout->addWidget(removeAllButton);
spacerItem1 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout->addItem(spacerItem1);
buttonBox = new QDialogButtonBox(HistoryDialog);
buttonBox->setObjectName("buttonBox");
buttonBox->setStandardButtons(QDialogButtonBox::Ok);
hboxLayout->addWidget(buttonBox);
gridLayout->addLayout(hboxLayout, 2, 0, 1, 2);
retranslateUi(HistoryDialog);
QObject::connect(buttonBox, &QDialogButtonBox::accepted, HistoryDialog, qOverload<>(&QDialog::accept));
QMetaObject::connectSlotsByName(HistoryDialog);
} // setupUi
void retranslateUi(QDialog *HistoryDialog)
{
HistoryDialog->setWindowTitle(QCoreApplication::translate("HistoryDialog", "History", nullptr));
removeButton->setText(QCoreApplication::translate("HistoryDialog", "&Remove", nullptr));
removeAllButton->setText(QCoreApplication::translate("HistoryDialog", "Remove &All", nullptr));
} // retranslateUi
};
namespace Ui {
class HistoryDialog: public Ui_HistoryDialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // HISTORY_H

View File

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>122</width>
<height>117</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QPushButton" name="fileicon">
<property name="text">
<string>fileicon</string>
</property>
<property name="icon">
<iconset>
<normaloff>image1.png</normaloff>image1.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="fileandthemeicon">
<property name="text">
<string>PushButton</string>
</property>
<property name="icon">
<iconset theme="edit-copy">
<normaloff>image7.png</normaloff>image7.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="themeicon">
<property name="text">
<string>PushButton</string>
</property>
<property name="icon">
<iconset theme="edit-copy">
<normaloff/>
</iconset>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,92 @@
/********************************************************************************
** Form generated from reading UI file 'icontheme.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef ICONTHEME_H
#define ICONTHEME_H
#include <QtCore/QVariant>
#include <QtGui/QIcon>
#include <QtWidgets/QApplication>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_Form
{
public:
QVBoxLayout *verticalLayout;
QPushButton *fileicon;
QPushButton *fileandthemeicon;
QPushButton *themeicon;
void setupUi(QWidget *Form)
{
if (Form->objectName().isEmpty())
Form->setObjectName("Form");
Form->resize(122, 117);
verticalLayout = new QVBoxLayout(Form);
verticalLayout->setObjectName("verticalLayout");
fileicon = new QPushButton(Form);
fileicon->setObjectName("fileicon");
QIcon icon;
icon.addFile(QString::fromUtf8("image1.png"), QSize(), QIcon::Normal, QIcon::Off);
fileicon->setIcon(icon);
verticalLayout->addWidget(fileicon);
fileandthemeicon = new QPushButton(Form);
fileandthemeicon->setObjectName("fileandthemeicon");
QIcon icon1;
QString iconThemeName = QString::fromUtf8("edit-copy");
if (QIcon::hasThemeIcon(iconThemeName)) {
icon1 = QIcon::fromTheme(iconThemeName);
} else {
icon1.addFile(QString::fromUtf8("image7.png"), QSize(), QIcon::Normal, QIcon::Off);
}
fileandthemeicon->setIcon(icon1);
verticalLayout->addWidget(fileandthemeicon);
themeicon = new QPushButton(Form);
themeicon->setObjectName("themeicon");
QIcon icon2;
iconThemeName = QString::fromUtf8("edit-copy");
if (QIcon::hasThemeIcon(iconThemeName)) {
icon2 = QIcon::fromTheme(iconThemeName);
} else {
icon2.addFile(QString::fromUtf8(""), QSize(), QIcon::Normal, QIcon::Off);
}
themeicon->setIcon(icon2);
verticalLayout->addWidget(themeicon);
retranslateUi(Form);
QMetaObject::connectSlotsByName(Form);
} // setupUi
void retranslateUi(QWidget *Form)
{
Form->setWindowTitle(QCoreApplication::translate("Form", "Form", nullptr));
fileicon->setText(QCoreApplication::translate("Form", "fileicon", nullptr));
fileandthemeicon->setText(QCoreApplication::translate("Form", "PushButton", nullptr));
themeicon->setText(QCoreApplication::translate("Form", "PushButton", nullptr));
} // retranslateUi
};
namespace Ui {
class Form: public Ui_Form {};
} // namespace Ui
QT_END_NAMESPACE
#endif // ICONTHEME_H

View File

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0" idbasedtr="true">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string id="windowTitleId">Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QPushButton" name="pushButton">
<property name="toolTip">
<string id="buttonToolTipId">ButtonToolTip</string>
</property>
<property name="statusTip">
<string id="buttonStatusTipId">ButtonStatusTip</string>
</property>
<property name="whatsThis">
<string id="buttonWhatsThisId">ButtonWhatsThis</string>
</property>
<property name="text">
<string id="buttonTextId">PushButton</string>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,67 @@
/********************************************************************************
** Form generated from reading UI file 'idbased.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef IDBASED_H
#define IDBASED_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_Form
{
public:
QVBoxLayout *verticalLayout;
QPushButton *pushButton;
void setupUi(QWidget *Form)
{
if (Form->objectName().isEmpty())
Form->setObjectName("Form");
Form->resize(400, 300);
verticalLayout = new QVBoxLayout(Form);
verticalLayout->setObjectName("verticalLayout");
pushButton = new QPushButton(Form);
pushButton->setObjectName("pushButton");
verticalLayout->addWidget(pushButton);
retranslateUi(Form);
QMetaObject::connectSlotsByName(Form);
} // setupUi
void retranslateUi(QWidget *Form)
{
Form->setWindowTitle(qtTrId("windowTitleId"));
#if QT_CONFIG(tooltip)
pushButton->setToolTip(qtTrId("buttonToolTipId"));
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(statustip)
pushButton->setStatusTip(qtTrId("buttonStatusTipId"));
#endif // QT_CONFIG(statustip)
#if QT_CONFIG(whatsthis)
pushButton->setWhatsThis(qtTrId("buttonWhatsThisId"));
#endif // QT_CONFIG(whatsthis)
pushButton->setText(qtTrId("buttonTextId"));
} // retranslateUi
};
namespace Ui {
class Form: public Ui_Form {};
} // namespace Ui
QT_END_NAMESPACE
#endif // IDBASED_H

View File

@ -0,0 +1,132 @@
<ui version="4.0" >
<class>IdentifierPage</class>
<widget class="QWidget" name="IdentifierPage" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>417</width>
<height>242</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
<layout class="QGridLayout" >
<item row="0" column="1" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0" colspan="3" >
<widget class="QCheckBox" name="identifierCheckBox" >
<property name="text" >
<string>Create identifiers</string>
</property>
</widget>
</item>
<item row="1" column="3" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>161</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="0" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" >
<size>
<width>30</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="1" >
<widget class="QRadioButton" name="globalButton" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Global prefix:</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="2" >
<widget class="QLineEdit" name="prefixLineEdit" >
<property name="enabled" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="3" column="1" colspan="2" >
<widget class="QRadioButton" name="fileNameButton" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Inherit prefix from file names</string>
</property>
</widget>
</item>
<item row="4" column="1" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>31</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>globalButton</sender>
<signal>toggled(bool)</signal>
<receiver>prefixLineEdit</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel" >
<x>122</x>
<y>72</y>
</hint>
<hint type="destinationlabel" >
<x>161</x>
<y>71</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -0,0 +1,106 @@
/********************************************************************************
** Form generated from reading UI file 'identifierpage.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef IDENTIFIERPAGE_H
#define IDENTIFIERPAGE_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QRadioButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_IdentifierPage
{
public:
QGridLayout *gridLayout;
QSpacerItem *spacerItem;
QCheckBox *identifierCheckBox;
QSpacerItem *spacerItem1;
QSpacerItem *spacerItem2;
QRadioButton *globalButton;
QLineEdit *prefixLineEdit;
QRadioButton *fileNameButton;
QSpacerItem *spacerItem3;
void setupUi(QWidget *IdentifierPage)
{
if (IdentifierPage->objectName().isEmpty())
IdentifierPage->setObjectName("IdentifierPage");
IdentifierPage->resize(417, 242);
gridLayout = new QGridLayout(IdentifierPage);
gridLayout->setObjectName("gridLayout");
spacerItem = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed);
gridLayout->addItem(spacerItem, 0, 1, 1, 1);
identifierCheckBox = new QCheckBox(IdentifierPage);
identifierCheckBox->setObjectName("identifierCheckBox");
gridLayout->addWidget(identifierCheckBox, 1, 0, 1, 3);
spacerItem1 = new QSpacerItem(161, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout->addItem(spacerItem1, 1, 3, 1, 1);
spacerItem2 = new QSpacerItem(30, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
gridLayout->addItem(spacerItem2, 2, 0, 1, 1);
globalButton = new QRadioButton(IdentifierPage);
globalButton->setObjectName("globalButton");
globalButton->setEnabled(false);
globalButton->setChecked(true);
gridLayout->addWidget(globalButton, 2, 1, 1, 1);
prefixLineEdit = new QLineEdit(IdentifierPage);
prefixLineEdit->setObjectName("prefixLineEdit");
prefixLineEdit->setEnabled(false);
gridLayout->addWidget(prefixLineEdit, 2, 2, 1, 1);
fileNameButton = new QRadioButton(IdentifierPage);
fileNameButton->setObjectName("fileNameButton");
fileNameButton->setEnabled(false);
gridLayout->addWidget(fileNameButton, 3, 1, 1, 2);
spacerItem3 = new QSpacerItem(20, 31, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout->addItem(spacerItem3, 4, 1, 1, 1);
retranslateUi(IdentifierPage);
QObject::connect(globalButton, &QRadioButton::toggled, prefixLineEdit, &QLineEdit::setEnabled);
QMetaObject::connectSlotsByName(IdentifierPage);
} // setupUi
void retranslateUi(QWidget *IdentifierPage)
{
IdentifierPage->setWindowTitle(QCoreApplication::translate("IdentifierPage", "Form", nullptr));
identifierCheckBox->setText(QCoreApplication::translate("IdentifierPage", "Create identifiers", nullptr));
globalButton->setText(QCoreApplication::translate("IdentifierPage", "Global prefix:", nullptr));
fileNameButton->setText(QCoreApplication::translate("IdentifierPage", "Inherit prefix from file names", nullptr));
} // retranslateUi
};
namespace Ui {
class IdentifierPage: public Ui_IdentifierPage {};
} // namespace Ui
QT_END_NAMESPACE
#endif // IDENTIFIERPAGE_H

View File

@ -0,0 +1,389 @@
<ui version="4.0" >
<comment></comment>
<class>ImageDialog</class>
<widget class="QDialog" >
<property name="objectName" >
<string notr="true" >ImageDialog</string>
</property>
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>320</width>
<height>180</height>
</rect>
</property>
<property name="windowTitle" >
<string>Create Image</string>
</property>
<layout class="QVBoxLayout" >
<property name="objectName" >
<string notr="true" />
</property>
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QGridLayout" >
<property name="objectName" >
<string notr="true" />
</property>
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="1" column="0" >
<widget class="QLabel" name="widthLabel" >
<property name="objectName" >
<string notr="true" >widthLabel</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>27</y>
<width>67</width>
<height>22</height>
</rect>
</property>
<property name="frameShape" >
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow" >
<enum>QFrame::Plain</enum>
</property>
<property name="text" >
<string>Width:</string>
</property>
<property name="textFormat" >
<enum>Qt::AutoText</enum>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="heightLabel" >
<property name="objectName" >
<string notr="true" >heightLabel</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>55</y>
<width>67</width>
<height>22</height>
</rect>
</property>
<property name="frameShape" >
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow" >
<enum>QFrame::Plain</enum>
</property>
<property name="text" >
<string>Height:</string>
</property>
<property name="textFormat" >
<enum>Qt::AutoText</enum>
</property>
</widget>
</item>
<item row="3" column="1" >
<widget class="QComboBox" name="colorDepthCombo" >
<property name="objectName" >
<string notr="true" >colorDepthCombo</string>
</property>
<property name="geometry" >
<rect>
<x>74</x>
<y>83</y>
<width>227</width>
<height>22</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="insertPolicy" >
<enum>QComboBox::InsertAtBottom</enum>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QLineEdit" name="nameLineEdit" >
<property name="objectName" >
<string notr="true" >nameLineEdit</string>
</property>
<property name="geometry" >
<rect>
<x>74</x>
<y>83</y>
<width>227</width>
<height>22</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>Untitled image</string>
</property>
<property name="echoMode" >
<enum>QLineEdit::Normal</enum>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QSpinBox" name="spinBox" >
<property name="objectName" >
<string notr="true" >spinBox</string>
</property>
<property name="geometry" >
<rect>
<x>74</x>
<y>1</y>
<width>227</width>
<height>20</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="buttonSymbols" >
<enum>QAbstractSpinBox::UpDownArrows</enum>
</property>
<property name="value" >
<number>32</number>
</property>
<property name="maximum" >
<number>1024</number>
</property>
<property name="minimum" >
<number>1</number>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QSpinBox" name="spinBox_2" >
<property name="objectName" >
<string notr="true" >spinBox_2</string>
</property>
<property name="geometry" >
<rect>
<x>74</x>
<y>27</y>
<width>227</width>
<height>22</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="buttonSymbols" >
<enum>QAbstractSpinBox::UpDownArrows</enum>
</property>
<property name="value" >
<number>32</number>
</property>
<property name="maximum" >
<number>1024</number>
</property>
<property name="minimum" >
<number>1</number>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="nameLabel" >
<property name="objectName" >
<string notr="true" >nameLabel</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>1</y>
<width>67</width>
<height>20</height>
</rect>
</property>
<property name="frameShape" >
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow" >
<enum>QFrame::Plain</enum>
</property>
<property name="text" >
<string>Name:</string>
</property>
<property name="textFormat" >
<enum>Qt::AutoText</enum>
</property>
</widget>
</item>
<item row="3" column="0" >
<widget class="QLabel" name="colorDepthLabel" >
<property name="objectName" >
<string notr="true" >colorDepthLabel</string>
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>83</y>
<width>67</width>
<height>22</height>
</rect>
</property>
<property name="frameShape" >
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow" >
<enum>QFrame::Plain</enum>
</property>
<property name="text" >
<string>Color depth:</string>
</property>
<property name="textFormat" >
<enum>Qt::AutoText</enum>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer>
<property name="objectName" >
<string notr="true" />
</property>
<property name="geometry" >
<rect>
<x>9</x>
<y>121</y>
<width>302</width>
<height>18</height>
</rect>
</property>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" >
<property name="objectName" >
<string notr="true" />
</property>
<property name="margin" >
<number>1</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<spacer>
<property name="objectName" >
<string notr="true" />
</property>
<property name="geometry" >
<rect>
<x>1</x>
<y>1</y>
<width>128</width>
<height>24</height>
</rect>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="okButton" >
<property name="objectName" >
<string notr="true" >okButton</string>
</property>
<property name="geometry" >
<rect>
<x>135</x>
<y>1</y>
<width>80</width>
<height>24</height>
</rect>
</property>
<property name="text" >
<string>OK</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="cancelButton" >
<property name="objectName" >
<string notr="true" >cancelButton</string>
</property>
<property name="geometry" >
<rect>
<x>221</x>
<y>1</y>
<width>80</width>
<height>24</height>
</rect>
</property>
<property name="text" >
<string>Cancel</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<pixmapfunction></pixmapfunction>
<tabstops>
<tabstop>nameLineEdit</tabstop>
<tabstop>spinBox</tabstop>
<tabstop>spinBox_2</tabstop>
<tabstop>colorDepthCombo</tabstop>
<tabstop>okButton</tabstop>
<tabstop>cancelButton</tabstop>
</tabstops>
<connections>
<connection>
<sender>nameLineEdit</sender>
<signal>returnPressed()</signal>
<receiver>okButton</receiver>
<slot>animateClick()</slot>
<hints>
<hint type="sourcelabel" >
<x>-1</x>
<y>7</y>
</hint>
<hint type="destinationlabel" >
<x>-1</x>
<y>7</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -0,0 +1,217 @@
/********************************************************************************
** Form generated from reading UI file 'imagedialog.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef IMAGEDIALOG_H
#define IMAGEDIALOG_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QDialog>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QVBoxLayout>
QT_BEGIN_NAMESPACE
class Ui_ImageDialog
{
public:
QVBoxLayout *vboxLayout;
QGridLayout *gridLayout;
QLabel *widthLabel;
QLabel *heightLabel;
QComboBox *colorDepthCombo;
QLineEdit *nameLineEdit;
QSpinBox *spinBox;
QSpinBox *spinBox_2;
QLabel *nameLabel;
QLabel *colorDepthLabel;
QSpacerItem *spacerItem;
QHBoxLayout *hboxLayout;
QSpacerItem *spacerItem1;
QPushButton *okButton;
QPushButton *cancelButton;
void setupUi(QDialog *dialog)
{
if (dialog->objectName().isEmpty())
dialog->setObjectName("dialog");
dialog->setObjectName(QString::fromUtf8("ImageDialog"));
dialog->resize(320, 180);
vboxLayout = new QVBoxLayout(dialog);
#ifndef Q_OS_MAC
vboxLayout->setSpacing(6);
#endif
#ifndef Q_OS_MAC
vboxLayout->setContentsMargins(9, 9, 9, 9);
#endif
vboxLayout->setObjectName("vboxLayout");
vboxLayout->setObjectName(QString::fromUtf8(""));
gridLayout = new QGridLayout();
#ifndef Q_OS_MAC
gridLayout->setSpacing(6);
#endif
gridLayout->setContentsMargins(1, 1, 1, 1);
gridLayout->setObjectName("gridLayout");
gridLayout->setObjectName(QString::fromUtf8(""));
widthLabel = new QLabel(dialog);
widthLabel->setObjectName("widthLabel");
widthLabel->setGeometry(QRect(1, 27, 67, 22));
widthLabel->setFrameShape(QFrame::NoFrame);
widthLabel->setFrameShadow(QFrame::Plain);
widthLabel->setTextFormat(Qt::AutoText);
gridLayout->addWidget(widthLabel, 1, 0, 1, 1);
heightLabel = new QLabel(dialog);
heightLabel->setObjectName("heightLabel");
heightLabel->setGeometry(QRect(1, 55, 67, 22));
heightLabel->setFrameShape(QFrame::NoFrame);
heightLabel->setFrameShadow(QFrame::Plain);
heightLabel->setTextFormat(Qt::AutoText);
gridLayout->addWidget(heightLabel, 2, 0, 1, 1);
colorDepthCombo = new QComboBox(dialog);
colorDepthCombo->setObjectName("colorDepthCombo");
colorDepthCombo->setGeometry(QRect(74, 83, 227, 22));
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(colorDepthCombo->sizePolicy().hasHeightForWidth());
colorDepthCombo->setSizePolicy(sizePolicy);
colorDepthCombo->setInsertPolicy(QComboBox::InsertAtBottom);
gridLayout->addWidget(colorDepthCombo, 3, 1, 1, 1);
nameLineEdit = new QLineEdit(dialog);
nameLineEdit->setObjectName("nameLineEdit");
nameLineEdit->setGeometry(QRect(74, 83, 227, 22));
QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Fixed);
sizePolicy1.setHorizontalStretch(1);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(nameLineEdit->sizePolicy().hasHeightForWidth());
nameLineEdit->setSizePolicy(sizePolicy1);
nameLineEdit->setEchoMode(QLineEdit::Normal);
gridLayout->addWidget(nameLineEdit, 0, 1, 1, 1);
spinBox = new QSpinBox(dialog);
spinBox->setObjectName("spinBox");
spinBox->setGeometry(QRect(74, 1, 227, 20));
sizePolicy.setHeightForWidth(spinBox->sizePolicy().hasHeightForWidth());
spinBox->setSizePolicy(sizePolicy);
spinBox->setButtonSymbols(QAbstractSpinBox::UpDownArrows);
spinBox->setValue(32);
spinBox->setMaximum(1024);
spinBox->setMinimum(1);
gridLayout->addWidget(spinBox, 1, 1, 1, 1);
spinBox_2 = new QSpinBox(dialog);
spinBox_2->setObjectName("spinBox_2");
spinBox_2->setGeometry(QRect(74, 27, 227, 22));
sizePolicy.setHeightForWidth(spinBox_2->sizePolicy().hasHeightForWidth());
spinBox_2->setSizePolicy(sizePolicy);
spinBox_2->setButtonSymbols(QAbstractSpinBox::UpDownArrows);
spinBox_2->setValue(32);
spinBox_2->setMaximum(1024);
spinBox_2->setMinimum(1);
gridLayout->addWidget(spinBox_2, 2, 1, 1, 1);
nameLabel = new QLabel(dialog);
nameLabel->setObjectName("nameLabel");
nameLabel->setGeometry(QRect(1, 1, 67, 20));
nameLabel->setFrameShape(QFrame::NoFrame);
nameLabel->setFrameShadow(QFrame::Plain);
nameLabel->setTextFormat(Qt::AutoText);
gridLayout->addWidget(nameLabel, 0, 0, 1, 1);
colorDepthLabel = new QLabel(dialog);
colorDepthLabel->setObjectName("colorDepthLabel");
colorDepthLabel->setGeometry(QRect(1, 83, 67, 22));
colorDepthLabel->setFrameShape(QFrame::NoFrame);
colorDepthLabel->setFrameShadow(QFrame::Plain);
colorDepthLabel->setTextFormat(Qt::AutoText);
gridLayout->addWidget(colorDepthLabel, 3, 0, 1, 1);
vboxLayout->addLayout(gridLayout);
spacerItem = new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding);
vboxLayout->addItem(spacerItem);
hboxLayout = new QHBoxLayout();
#ifndef Q_OS_MAC
hboxLayout->setSpacing(6);
#endif
hboxLayout->setContentsMargins(1, 1, 1, 1);
hboxLayout->setObjectName("hboxLayout");
hboxLayout->setObjectName(QString::fromUtf8(""));
spacerItem1 = new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout->addItem(spacerItem1);
okButton = new QPushButton(dialog);
okButton->setObjectName("okButton");
okButton->setGeometry(QRect(135, 1, 80, 24));
hboxLayout->addWidget(okButton);
cancelButton = new QPushButton(dialog);
cancelButton->setObjectName("cancelButton");
cancelButton->setGeometry(QRect(221, 1, 80, 24));
hboxLayout->addWidget(cancelButton);
vboxLayout->addLayout(hboxLayout);
QWidget::setTabOrder(nameLineEdit, spinBox);
QWidget::setTabOrder(spinBox, spinBox_2);
QWidget::setTabOrder(spinBox_2, colorDepthCombo);
QWidget::setTabOrder(colorDepthCombo, okButton);
QWidget::setTabOrder(okButton, cancelButton);
retranslateUi(dialog);
QObject::connect(nameLineEdit, &QLineEdit::returnPressed, okButton, qOverload<>(&QPushButton::animateClick));
QMetaObject::connectSlotsByName(dialog);
} // setupUi
void retranslateUi(QDialog *dialog)
{
dialog->setWindowTitle(QCoreApplication::translate("ImageDialog", "Create Image", nullptr));
widthLabel->setText(QCoreApplication::translate("ImageDialog", "Width:", nullptr));
heightLabel->setText(QCoreApplication::translate("ImageDialog", "Height:", nullptr));
nameLineEdit->setText(QCoreApplication::translate("ImageDialog", "Untitled image", nullptr));
nameLabel->setText(QCoreApplication::translate("ImageDialog", "Name:", nullptr));
colorDepthLabel->setText(QCoreApplication::translate("ImageDialog", "Color depth:", nullptr));
okButton->setText(QCoreApplication::translate("ImageDialog", "OK", nullptr));
cancelButton->setText(QCoreApplication::translate("ImageDialog", "Cancel", nullptr));
} // retranslateUi
};
namespace Ui {
class ImageDialog: public Ui_ImageDialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // IMAGEDIALOG_H

View File

@ -0,0 +1,79 @@
<ui version="4.0" >
<class>InputPage</class>
<widget class="QWidget" name="InputPage" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>417</width>
<height>242</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
<layout class="QGridLayout" >
<item row="0" column="2" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Preferred" hsizetype="Maximum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>File name:</string>
</property>
</widget>
</item>
<item row="1" column="1" colspan="2" >
<layout class="QHBoxLayout" >
<property name="spacing" >
<number>0</number>
</property>
<item>
<widget class="QLineEdit" name="fileLineEdit" />
</item>
<item>
<widget class="QToolButton" name="browseButton" >
<property name="text" >
<string>...</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="2" column="1" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>31</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,97 @@
/********************************************************************************
** Form generated from reading UI file 'inputpage.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef INPUTPAGE_H
#define INPUTPAGE_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QToolButton>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_InputPage
{
public:
QGridLayout *gridLayout;
QSpacerItem *spacerItem;
QLabel *label;
QHBoxLayout *hboxLayout;
QLineEdit *fileLineEdit;
QToolButton *browseButton;
QSpacerItem *spacerItem1;
void setupUi(QWidget *InputPage)
{
if (InputPage->objectName().isEmpty())
InputPage->setObjectName("InputPage");
InputPage->resize(417, 242);
gridLayout = new QGridLayout(InputPage);
gridLayout->setObjectName("gridLayout");
spacerItem = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed);
gridLayout->addItem(spacerItem, 0, 2, 1, 1);
label = new QLabel(InputPage);
label->setObjectName("label");
QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(label->sizePolicy().hasHeightForWidth());
label->setSizePolicy(sizePolicy);
gridLayout->addWidget(label, 1, 0, 1, 1);
hboxLayout = new QHBoxLayout();
hboxLayout->setSpacing(0);
hboxLayout->setObjectName("hboxLayout");
fileLineEdit = new QLineEdit(InputPage);
fileLineEdit->setObjectName("fileLineEdit");
hboxLayout->addWidget(fileLineEdit);
browseButton = new QToolButton(InputPage);
browseButton->setObjectName("browseButton");
hboxLayout->addWidget(browseButton);
gridLayout->addLayout(hboxLayout, 1, 1, 1, 2);
spacerItem1 = new QSpacerItem(20, 31, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout->addItem(spacerItem1, 2, 1, 1, 1);
retranslateUi(InputPage);
QMetaObject::connectSlotsByName(InputPage);
} // setupUi
void retranslateUi(QWidget *InputPage)
{
InputPage->setWindowTitle(QCoreApplication::translate("InputPage", "Form", nullptr));
label->setText(QCoreApplication::translate("InputPage", "File name:", nullptr));
browseButton->setText(QCoreApplication::translate("InputPage", "...", nullptr));
} // retranslateUi
};
namespace Ui {
class InputPage: public Ui_InputPage {};
} // namespace Ui
QT_END_NAMESPACE
#endif // INPUTPAGE_H

View File

@ -0,0 +1,118 @@
<ui version="4.0" >
<class>InstallDialog</class>
<widget class="QDialog" name="InstallDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>436</width>
<height>245</height>
</rect>
</property>
<property name="windowTitle" >
<string>Install Documentation</string>
</property>
<layout class="QGridLayout" >
<item row="0" column="0" colspan="4" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Available Documentation:</string>
</property>
</widget>
</item>
<item rowspan="4" row="1" column="0" colspan="4" >
<widget class="QListWidget" name="listWidget" />
</item>
<item row="1" column="4" >
<widget class="QPushButton" name="installButton" >
<property name="text" >
<string>Install</string>
</property>
</widget>
</item>
<item row="2" column="4" >
<widget class="QPushButton" name="cancelButton" >
<property name="text" >
<string>Cancel</string>
</property>
</widget>
</item>
<item row="3" column="4" >
<widget class="QPushButton" name="closeButton" >
<property name="text" >
<string>Close</string>
</property>
</widget>
</item>
<item row="4" column="4" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>56</height>
</size>
</property>
</spacer>
</item>
<item row="5" column="0" >
<widget class="QLabel" name="label_4" >
<property name="text" >
<string>Installation Path:</string>
</property>
</widget>
</item>
<item row="5" column="1" colspan="2" >
<widget class="QLineEdit" name="pathLineEdit" />
</item>
<item row="5" column="3" >
<widget class="QToolButton" name="browseButton" >
<property name="text" >
<string>...</string>
</property>
</widget>
</item>
<item row="6" column="0" colspan="5" >
<widget class="Line" name="line" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="7" column="0" colspan="2" >
<widget class="QLabel" name="statusLabel" />
</item>
<item row="7" column="2" colspan="3" >
<widget class="QProgressBar" name="progressBar" >
<property name="value" >
<number>0</number>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>closeButton</sender>
<signal>clicked()</signal>
<receiver>InstallDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>330</x>
<y>107</y>
</hint>
<hint type="destinationlabel" >
<x>332</x>
<y>158</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -0,0 +1,140 @@
/********************************************************************************
** Form generated from reading UI file 'installdialog.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef INSTALLDIALOG_H
#define INSTALLDIALOG_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QFrame>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QListWidget>
#include <QtWidgets/QProgressBar>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QToolButton>
QT_BEGIN_NAMESPACE
class Ui_InstallDialog
{
public:
QGridLayout *gridLayout;
QLabel *label;
QListWidget *listWidget;
QPushButton *installButton;
QPushButton *cancelButton;
QPushButton *closeButton;
QSpacerItem *spacerItem;
QLabel *label_4;
QLineEdit *pathLineEdit;
QToolButton *browseButton;
QFrame *line;
QLabel *statusLabel;
QProgressBar *progressBar;
void setupUi(QDialog *InstallDialog)
{
if (InstallDialog->objectName().isEmpty())
InstallDialog->setObjectName("InstallDialog");
InstallDialog->resize(436, 245);
gridLayout = new QGridLayout(InstallDialog);
gridLayout->setObjectName("gridLayout");
label = new QLabel(InstallDialog);
label->setObjectName("label");
gridLayout->addWidget(label, 0, 0, 1, 4);
listWidget = new QListWidget(InstallDialog);
listWidget->setObjectName("listWidget");
gridLayout->addWidget(listWidget, 1, 0, 4, 4);
installButton = new QPushButton(InstallDialog);
installButton->setObjectName("installButton");
gridLayout->addWidget(installButton, 1, 4, 1, 1);
cancelButton = new QPushButton(InstallDialog);
cancelButton->setObjectName("cancelButton");
gridLayout->addWidget(cancelButton, 2, 4, 1, 1);
closeButton = new QPushButton(InstallDialog);
closeButton->setObjectName("closeButton");
gridLayout->addWidget(closeButton, 3, 4, 1, 1);
spacerItem = new QSpacerItem(20, 56, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout->addItem(spacerItem, 4, 4, 1, 1);
label_4 = new QLabel(InstallDialog);
label_4->setObjectName("label_4");
gridLayout->addWidget(label_4, 5, 0, 1, 1);
pathLineEdit = new QLineEdit(InstallDialog);
pathLineEdit->setObjectName("pathLineEdit");
gridLayout->addWidget(pathLineEdit, 5, 1, 1, 2);
browseButton = new QToolButton(InstallDialog);
browseButton->setObjectName("browseButton");
gridLayout->addWidget(browseButton, 5, 3, 1, 1);
line = new QFrame(InstallDialog);
line->setObjectName("line");
line->setFrameShape(QFrame::HLine);
line->setFrameShadow(QFrame::Sunken);
gridLayout->addWidget(line, 6, 0, 1, 5);
statusLabel = new QLabel(InstallDialog);
statusLabel->setObjectName("statusLabel");
gridLayout->addWidget(statusLabel, 7, 0, 1, 2);
progressBar = new QProgressBar(InstallDialog);
progressBar->setObjectName("progressBar");
progressBar->setValue(0);
progressBar->setOrientation(Qt::Horizontal);
gridLayout->addWidget(progressBar, 7, 2, 1, 3);
retranslateUi(InstallDialog);
QObject::connect(closeButton, &QPushButton::clicked, InstallDialog, qOverload<>(&QDialog::accept));
QMetaObject::connectSlotsByName(InstallDialog);
} // setupUi
void retranslateUi(QDialog *InstallDialog)
{
InstallDialog->setWindowTitle(QCoreApplication::translate("InstallDialog", "Install Documentation", nullptr));
label->setText(QCoreApplication::translate("InstallDialog", "Available Documentation:", nullptr));
installButton->setText(QCoreApplication::translate("InstallDialog", "Install", nullptr));
cancelButton->setText(QCoreApplication::translate("InstallDialog", "Cancel", nullptr));
closeButton->setText(QCoreApplication::translate("InstallDialog", "Close", nullptr));
label_4->setText(QCoreApplication::translate("InstallDialog", "Installation Path:", nullptr));
browseButton->setText(QCoreApplication::translate("InstallDialog", "...", nullptr));
} // retranslateUi
};
namespace Ui {
class InstallDialog: public Ui_InstallDialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // INSTALLDIALOG_H

View File

@ -0,0 +1,160 @@
<ui version="4.0" >
<class>LanguagesDialog</class>
<widget class="QDialog" name="LanguagesDialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle" >
<string>Auxiliary Languages</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout" >
<item>
<widget class="QTreeWidget" name="languagesList" >
<property name="indentation" >
<number>0</number>
</property>
<column>
<property name="text" >
<string>Locale</string>
</property>
</column>
<column>
<property name="text" >
<string>File</string>
</property>
</column>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<item>
<widget class="QToolButton" name="upButton" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="toolTip" >
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
&lt;/style>&lt;/head>&lt;body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Move selected language up&lt;/p>&lt;/body>&lt;/html></string>
</property>
<property name="text" >
<string>up</string>
</property>
<property name="icon" >
<iconset resource="linguist.qrc" >
<normaloff>:/images/up.png</normaloff>:/images/up.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="downButton" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="toolTip" >
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
&lt;/style>&lt;/head>&lt;body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;">Move selected language down&lt;/p>&lt;/body>&lt;/html></string>
</property>
<property name="text" >
<string>down</string>
</property>
<property name="icon" >
<iconset resource="linguist.qrc" >
<normaloff>:/images/down.png</normaloff>:/images/down.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="removeButton" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="toolTip" >
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
&lt;/style>&lt;/head>&lt;body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Remove selected language&lt;/p>&lt;/body>&lt;/html></string>
</property>
<property name="text" >
<string>remove</string>
</property>
<property name="icon" >
<iconset resource="linguist.qrc" >
<normaloff>:/images/editdelete.png</normaloff>:/images/editdelete.png</iconset>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="openFileButton" >
<property name="enabled" >
<bool>true</bool>
</property>
<property name="toolTip" >
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
&lt;/style>&lt;/head>&lt;body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Open auxiliary language files&lt;/p>&lt;/body>&lt;/html></string>
</property>
<property name="text" >
<string>...</string>
</property>
<property name="icon" >
<iconset resource="linguist.qrc" >
<normaloff>:/images/mac/fileopen.png</normaloff>:/images/mac/fileopen.png</iconset>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>121</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="okButton" >
<property name="text" >
<string>OK</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<resources>
<include location="linguist.qrc" />
</resources>
<connections>
<connection>
<sender>okButton</sender>
<signal>clicked()</signal>
<receiver>LanguagesDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel" >
<x>352</x>
<y>39</y>
</hint>
<hint type="destinationlabel" >
<x>233</x>
<y>29</y>
</hint>
</hints>
</connection>
</connections>
</ui>

Some files were not shown because too many files have changed in this diff Show More