mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-30 07:35:59 +00:00
Added GUI for the Type editor.
This commit is contained in:
parent
5fa370463b
commit
62fb0ca1ae
7 changed files with 217 additions and 1 deletions
|
@ -21,12 +21,15 @@ SET(OVQT_PLUG_GEORGES_EDITOR_HDR georges_editor_plugin.h
|
||||||
dfn_browser_ctrl.h
|
dfn_browser_ctrl.h
|
||||||
georges_dfn_dialog.h
|
georges_dfn_dialog.h
|
||||||
filepath_property_manager.h
|
filepath_property_manager.h
|
||||||
|
typ_browser_ctrl.h
|
||||||
|
georges_typ_dialog.h
|
||||||
)
|
)
|
||||||
|
|
||||||
SET(OVQT_PLUG_GEORGES_EDITOR_UIS georges_editor_form.ui
|
SET(OVQT_PLUG_GEORGES_EDITOR_UIS georges_editor_form.ui
|
||||||
georges_dirtree_form.ui
|
georges_dirtree_form.ui
|
||||||
georges_treeview_form.ui
|
georges_treeview_form.ui
|
||||||
georges_dfn_dialog.ui
|
georges_dfn_dialog.ui
|
||||||
|
georges_typ_dialog.ui
|
||||||
)
|
)
|
||||||
|
|
||||||
SET(OVQT_PLUGIN_GEORGES_EDITOR_RCS georges_editor.qrc)
|
SET(OVQT_PLUGIN_GEORGES_EDITOR_RCS georges_editor.qrc)
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#include "georges_dirtree_dialog.h"
|
#include "georges_dirtree_dialog.h"
|
||||||
#include "georges_treeview_dialog.h"
|
#include "georges_treeview_dialog.h"
|
||||||
#include "georges_dfn_dialog.h"
|
#include "georges_dfn_dialog.h"
|
||||||
|
#include "georges_typ_dialog.h"
|
||||||
|
|
||||||
#include "../core/icore.h"
|
#include "../core/icore.h"
|
||||||
#include "../core/menu_manager.h"
|
#include "../core/menu_manager.h"
|
||||||
|
@ -316,7 +317,8 @@ namespace GeorgesQt
|
||||||
|
|
||||||
GeorgesDockWidget* GeorgesEditorForm::loadTypDialog( const QString &fileName )
|
GeorgesDockWidget* GeorgesEditorForm::loadTypDialog( const QString &fileName )
|
||||||
{
|
{
|
||||||
return NULL;
|
GeorgesTypDialog *d = new GeorgesTypDialog();
|
||||||
|
return d;
|
||||||
}
|
}
|
||||||
|
|
||||||
GeorgesDockWidget* GeorgesEditorForm::loadDfnDialog( const QString &fileName )
|
GeorgesDockWidget* GeorgesEditorForm::loadDfnDialog( const QString &fileName )
|
||||||
|
|
|
@ -0,0 +1,36 @@
|
||||||
|
#include "georges_typ_dialog.h"
|
||||||
|
|
||||||
|
GeorgesTypDialog::GeorgesTypDialog( QWidget *parent ) :
|
||||||
|
GeorgesDockWidget( parent )
|
||||||
|
{
|
||||||
|
m_ui.setupUi( this );
|
||||||
|
setupConnections();
|
||||||
|
}
|
||||||
|
|
||||||
|
GeorgesTypDialog::~GeorgesTypDialog()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void GeorgesTypDialog::write()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void GeorgesTypDialog::onAddClicked()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void GeorgesTypDialog::onRemoveClicked()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void GeorgesTypDialog::setupConnections()
|
||||||
|
{
|
||||||
|
connect( m_ui.addButton, SIGNAL( clicked( bool ) ), this, SLOT( onAddClicked() ) );
|
||||||
|
connect( m_ui.removeButton, SIGNAL( clicked( bool ) ), this, SLOT( onRemoveClicked() ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
void GeorgesTypDialog::log( const QString &msg )
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
31
code/studio/src/plugins/georges_editor/georges_typ_dialog.h
Normal file
31
code/studio/src/plugins/georges_editor/georges_typ_dialog.h
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
#ifndef GEORGES_TYP_DIALOG
|
||||||
|
#define GEORGES_TYP_DIALOG
|
||||||
|
|
||||||
|
#include "georges_dock_widget.h"
|
||||||
|
#include "ui_georges_typ_dialog.h"
|
||||||
|
|
||||||
|
|
||||||
|
class GeorgesTypDialog : public GeorgesDockWidget
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
GeorgesTypDialog( QWidget *parent = NULL );
|
||||||
|
~GeorgesTypDialog();
|
||||||
|
|
||||||
|
void write();
|
||||||
|
|
||||||
|
private Q_SLOTS:
|
||||||
|
void onAddClicked();
|
||||||
|
void onRemoveClicked();
|
||||||
|
|
||||||
|
private:
|
||||||
|
void setupConnections();
|
||||||
|
void log( const QString &msg );
|
||||||
|
|
||||||
|
|
||||||
|
Ui::GeorgesTypDialog m_ui;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
140
code/studio/src/plugins/georges_editor/georges_typ_dialog.ui
Normal file
140
code/studio/src/plugins/georges_editor/georges_typ_dialog.ui
Normal file
|
@ -0,0 +1,140 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>GeorgesTypDialog</class>
|
||||||
|
<widget class="QDockWidget" name="GeorgesTypDialog">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>682</width>
|
||||||
|
<height>425</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
<widget class="QWidget" name="dockWidgetContents">
|
||||||
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QTabWidget" name="logTab">
|
||||||
|
<property name="tabPosition">
|
||||||
|
<enum>QTabWidget::West</enum>
|
||||||
|
</property>
|
||||||
|
<property name="currentIndex">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<widget class="QWidget" name="tab">
|
||||||
|
<attribute name="title">
|
||||||
|
<string>Type</string>
|
||||||
|
</attribute>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_3">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QSplitter" name="splitter">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<widget class="QtTreePropertyBrowser" name="browser" native="true">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="QWidget" name="layoutWidget">
|
||||||
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
|
<item row="0" column="0" colspan="3">
|
||||||
|
<widget class="QTreeWidget" name="tree">
|
||||||
|
<column>
|
||||||
|
<property name="text">
|
||||||
|
<string>Label</string>
|
||||||
|
</property>
|
||||||
|
</column>
|
||||||
|
<column>
|
||||||
|
<property name="text">
|
||||||
|
<string>Value</string>
|
||||||
|
</property>
|
||||||
|
</column>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QPushButton" name="addButton">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Add</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QPushButton" name="removeButton">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Remove</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>15</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<widget class="QWidget" name="tab_2">
|
||||||
|
<attribute name="title">
|
||||||
|
<string>Comment</string>
|
||||||
|
</attribute>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_4">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QPlainTextEdit" name="commentEdit"/>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<widget class="QWidget" name="tab_3">
|
||||||
|
<attribute name="title">
|
||||||
|
<string>Log</string>
|
||||||
|
</attribute>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_5">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QPlainTextEdit" name="logEdit"/>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
|
<customwidgets>
|
||||||
|
<customwidget>
|
||||||
|
<class>QtTreePropertyBrowser</class>
|
||||||
|
<extends>QWidget</extends>
|
||||||
|
<header>qttreepropertybrowser.h</header>
|
||||||
|
<container>1</container>
|
||||||
|
</customwidget>
|
||||||
|
</customwidgets>
|
||||||
|
<resources/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
|
@ -0,0 +1 @@
|
||||||
|
#include "typ_browser_ctrl.h"
|
|
@ -0,0 +1,3 @@
|
||||||
|
#ifndef TYP_BROWSER_CTRL
|
||||||
|
#define TYP_BROWSER_CTRL
|
||||||
|
#endif
|
Loading…
Reference in a new issue