Skip to content
Snippets Groups Projects
Commit 5a30eb7c authored by Tao Zhong's avatar Tao Zhong
Browse files

Add LayerWidget

parent c8abca6a
Branches
Tags
No related merge requests found
#include "layerwidget.h"
#include "ui_layerwidget.h"
Layerwidget::Layerwidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::Layerwidget)
{
ui->setupUi(this);
}
Layerwidget::~Layerwidget()
{
delete ui;
}
#ifndef LAYERWIDGET_H
#define LAYERWIDGET_H
#include <QWidget>
namespace Ui {
class Layerwidget;
}
class Layerwidget : public QWidget
{
Q_OBJECT
public:
explicit Layerwidget(QWidget *parent = nullptr);
~Layerwidget();
private:
Ui::Layerwidget *ui;
};
#endif // LAYERWIDGET_H
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Layerwidget</class>
<widget class="QWidget" name="Layerwidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>320</width>
<height>400</height>
</rect>
</property>
<property name="windowTitle">
<string>Layer</string>
</property>
<widget class="QScrollArea" name="scrollArea">
<property name="geometry">
<rect>
<x>10</x>
<y>70</y>
<width>300</width>
<height>110</height>
</rect>
</property>
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>298</width>
<height>108</height>
</rect>
</property>
<widget class="QListWidget" name="listWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>299</width>
<height>109</height>
</rect>
</property>
</widget>
</widget>
</widget>
<widget class="QWidget" name="">
<property name="geometry">
<rect>
<x>10</x>
<y>20</y>
<width>301</width>
<height>32</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QPushButton" name="pushButton">
<property name="text">
<string>New</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_2">
<property name="text">
<string>Delete</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_3">
<property name="text">
<string>Close</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<resources/>
<connections/>
</ui>
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
<addaction name="actionGather_data"/> <addaction name="actionGather_data"/>
<addaction name="actionLandmarkWidget"/> <addaction name="actionLandmarkWidget"/>
<addaction name="actionNew_Inifile"/> <addaction name="actionNew_Inifile"/>
<addaction name="actionLayers"/>
</widget> </widget>
<widget class="QMenu" name="menuView"> <widget class="QMenu" name="menuView">
<property name="title"> <property name="title">
...@@ -744,6 +745,11 @@ ...@@ -744,6 +745,11 @@
<string>Meta+E</string> <string>Meta+E</string>
</property> </property>
</action> </action>
<action name="actionLayers">
<property name="text">
<string>Layers</string>
</property>
</action>
</widget> </widget>
<resources> <resources>
<include location="../Resources/resources.qrc"/> <include location="../Resources/resources.qrc"/>
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>316</width> <width>320</width>
<height>579</height> <height>600</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
......
...@@ -39,7 +39,9 @@ FORMS += \ ...@@ -39,7 +39,9 @@ FORMS += \
forms/widgetlandmark.ui \ forms/widgetlandmark.ui \
forms/widgetsettings.ui \ forms/widgetsettings.ui \
forms/inifilewidget.ui \ forms/inifilewidget.ui \
forms/settingdialog.ui forms/settingdialog.ui \
forms/layerwidget.ui \
forms/layerwidget.ui
HEADERS += \ HEADERS += \
src/mainWindow.h \ src/mainWindow.h \
...@@ -79,6 +81,8 @@ HEADERS += \ ...@@ -79,6 +81,8 @@ HEADERS += \
src/tinyxml/tinystr.h \ src/tinyxml/tinystr.h \
src/tinyxml/tinyxml.h \ src/tinyxml/tinyxml.h \
src/inifilewidget.h \ src/inifilewidget.h \
forms/layerwidget.h \
forms/layerwidget.h
SOURCES += \ SOURCES += \
...@@ -111,6 +115,8 @@ SOURCES += \ ...@@ -111,6 +115,8 @@ SOURCES += \
src/tinyxml/tinyxmlerror.cpp \ src/tinyxml/tinyxmlerror.cpp \
src/tinyxml/tinyxmlparser.cpp \ src/tinyxml/tinyxmlparser.cpp \
src/inifilewidget.cpp \ src/inifilewidget.cpp \
forms/layerwidget.cpp \
forms/layerwidget.cpp
#INCLUDEPATH += D:/boost_1_59_0/boost_1_59_0 #INCLUDEPATH += D:/boost_1_59_0/boost_1_59_0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment