Skip to content

Commit

Permalink
split file
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 2, 2023
1 parent f6562d1 commit 84036c7
Show file tree
Hide file tree
Showing 3 changed files with 135 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/gui/vectortile/qgsvectortilesourceselect.cpp
Expand Up @@ -36,8 +36,6 @@ QgsVectorTileSourceSelect::QgsVectorTileSourceSelect( QWidget *parent, Qt::Windo
{
setupUi( this );

mConnectionDetailsGroupBox->hide();

setWindowTitle( tr( "Add Vector Tile Layer" ) );
mConnectionsGroupBox->setTitle( tr( "Vector Tile Connections" ) );

Expand Down
4 changes: 2 additions & 2 deletions src/gui/vectortile/qgsvectortilesourceselect.h
Expand Up @@ -22,7 +22,7 @@
#define SIP_NO_FILE

#include "qgsabstractdatasourcewidget.h"
#include "ui_qgstilesourceselectbase.h"
#include "ui_qgsvectortilesourceselectbase.h"

/*!
* \brief Dialog to create connections to vector tile servers.
Expand All @@ -33,7 +33,7 @@
* The user can then connect and add layers from the vector tile server
* to the map canvas.
*/
class QgsVectorTileSourceSelect : public QgsAbstractDataSourceWidget, private Ui::QgsTileSourceSelectBase
class QgsVectorTileSourceSelect : public QgsAbstractDataSourceWidget, private Ui::QgsVectorTileSourceSelectBase
{
Q_OBJECT

Expand Down
133 changes: 133 additions & 0 deletions src/ui/qgsvectortilesourceselectbase.ui
@@ -0,0 +1,133 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>QgsVectorTileSourceSelectBase</class>
<widget class="QDialog" name="QgsVectorTileSourceSelectBase">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>558</width>
<height>259</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="2" column="0">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Help</set>
</property>
</widget>
</item>
<item row="1" column="0">
<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>
<item row="0" column="0">
<widget class="QGroupBox" name="mConnectionsGroupBox">
<property name="title">
<string>Connections</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="1" column="4">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>171</width>
<height>30</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0" colspan="7">
<widget class="QComboBox" name="cmbConnections"/>
</item>
<item row="1" column="2">
<widget class="QToolButton" name="btnEdit">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Edit selected service connection</string>
</property>
<property name="text">
<string>Edit</string>
</property>
</widget>
</item>
<item row="1" column="3">
<widget class="QToolButton" name="btnDelete">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Remove connection to selected service</string>
</property>
<property name="text">
<string>Remove</string>
</property>
</widget>
</item>
<item row="1" column="5">
<widget class="QToolButton" name="btnLoad">
<property name="toolTip">
<string>Load connections from file</string>
</property>
<property name="text">
<string>Load</string>
</property>
</widget>
</item>
<item row="1" column="6">
<widget class="QToolButton" name="btnSave">
<property name="toolTip">
<string>Save connections to file</string>
</property>
<property name="text">
<string>Save</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QToolButton" name="btnNew">
<property name="toolTip">
<string>Create a new service connection</string>
</property>
<property name="text">
<string>&amp;New</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<tabstops>
<tabstop>cmbConnections</tabstop>
<tabstop>btnNew</tabstop>
<tabstop>btnEdit</tabstop>
<tabstop>btnDelete</tabstop>
<tabstop>btnLoad</tabstop>
<tabstop>btnSave</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>

0 comments on commit 84036c7

Please sign in to comment.