mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Added Sets Database Dialog.
This commit is contained in:
parent
4a2010bd8d
commit
9eb0dd4cd1
4 changed files with 130 additions and 3 deletions
|
@ -176,7 +176,8 @@ SOURCES += common/view.cpp \
|
|||
qt/lc_qfinddialog.cpp \
|
||||
qt/lc_qmodellistdialog.cpp \
|
||||
common/lc_partselectionwidget.cpp \
|
||||
common/lc_timelinewidget.cpp
|
||||
common/lc_timelinewidget.cpp \
|
||||
qt/lc_setsdatabasedialog.cpp
|
||||
HEADERS += \
|
||||
common/view.h \
|
||||
common/texfont.h \
|
||||
|
@ -235,7 +236,8 @@ HEADERS += \
|
|||
qt/lc_qfinddialog.h \
|
||||
qt/lc_qmodellistdialog.h \
|
||||
common/lc_partselectionwidget.h \
|
||||
common/lc_timelinewidget.h
|
||||
common/lc_timelinewidget.h \
|
||||
qt/lc_setsdatabasedialog.h
|
||||
FORMS += \
|
||||
qt/lc_qpovraydialog.ui \
|
||||
qt/lc_qarraydialog.ui \
|
||||
|
@ -251,7 +253,8 @@ FORMS += \
|
|||
qt/lc_qimagedialog.ui \
|
||||
qt/lc_qupdatedialog.ui \
|
||||
qt/lc_qfinddialog.ui \
|
||||
qt/lc_qmodellistdialog.ui
|
||||
qt/lc_qmodellistdialog.ui \
|
||||
qt/lc_setsdatabasedialog.ui
|
||||
OTHER_FILES +=
|
||||
RESOURCES += leocad.qrc
|
||||
|
||||
|
|
14
qt/lc_setsdatabasedialog.cpp
Normal file
14
qt/lc_setsdatabasedialog.cpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include "lc_setsdatabasedialog.h"
|
||||
#include "ui_lc_setsdatabasedialog.h"
|
||||
|
||||
lcSetsDatabaseDialog::lcSetsDatabaseDialog(QWidget* Parent)
|
||||
: QDialog(Parent),
|
||||
ui(new Ui::lcSetsDatabaseDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
}
|
||||
|
||||
lcSetsDatabaseDialog::~lcSetsDatabaseDialog()
|
||||
{
|
||||
delete ui;
|
||||
}
|
19
qt/lc_setsdatabasedialog.h
Normal file
19
qt/lc_setsdatabasedialog.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
namespace Ui {
|
||||
class lcSetsDatabaseDialog;
|
||||
}
|
||||
|
||||
class lcSetsDatabaseDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit lcSetsDatabaseDialog(QWidget* Parent = nullptr);
|
||||
~lcSetsDatabaseDialog();
|
||||
|
||||
private:
|
||||
Ui::lcSetsDatabaseDialog* ui;
|
||||
};
|
91
qt/lc_setsdatabasedialog.ui
Normal file
91
qt/lc_setsdatabasedialog.ui
Normal file
|
@ -0,0 +1,91 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>lcSetsDatabaseDialog</class>
|
||||
<widget class="QDialog" name="lcSetsDatabaseDialog">
|
||||
<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="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QListView" name="setsList"/>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Filter:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="filterEdit"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QFrame" name="frame">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::HLine</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</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>lcSetsDatabaseDialog</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>lcSetsDatabaseDialog</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>
|
Loading…
Reference in a new issue