Skip to content

Commit

Permalink
Add in the GPS image to the dialog box
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4474 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Jan 5, 2006
1 parent a3527ad commit 4c067ca
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 71 deletions.
9 changes: 8 additions & 1 deletion plugins/gps_importer/Makefile.am
Expand Up @@ -23,6 +23,8 @@ plugin_LTLIBRARIES = gpsimporterplugin.la
ui_%.h: %.ui
$(UIC) -o $@ $<

%.qrc.cpp: %.qrc
$(RCC) -o $@ $<

gpsimporterplugin_la_SOURCES = \
qgsgpsplugin.cpp \
Expand All @@ -33,7 +35,9 @@ gpsimporterplugin_la_SOURCES = \
qgsgpsplugingui.cpp \
qgsgpsdevicedialog.cpp \
$(plugin_UI)\
$(plugin_MOC)
$(plugin_MOC) \
$(plugin_QRC) \
$(plugin_RES)

plugin_MOC = \
qgsgpsplugin.moc.cpp \
Expand All @@ -50,6 +54,9 @@ plugin_UIC = \
qgsgpspluginguibase.ui \
qgsgpsdevicedialogbase.ui

plugin_RES = qgsgps_plugin.qrc.cpp

plugin_QRC = qgsgps_plugin.qrc

BUILT_SOURCES = $(plugin_MOC) $(plugin_UI)

Expand Down
5 changes: 5 additions & 0 deletions plugins/gps_importer/qgsgps_plugin.qrc
@@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/" >
<file>gps.xpm</file>
</qresource>
</RCC>
145 changes: 75 additions & 70 deletions plugins/gps_importer/qgsgpspluginguibase.ui
Expand Up @@ -8,8 +8,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>640</width>
<height>370</height>
<width>650</width>
<height>395</height>
</rect>
</property>
<property name="windowTitle" >
Expand All @@ -20,33 +20,59 @@
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>10</number>
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="1" >
<widget class="Line" name="line1" >
<property name="frameShape" >
<enum>QFrame::VLine</enum>
</property>
<property name="frameShadow" >
<enum>QFrame::Sunken</enum>
</property>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="pixmapLabel1" >
<property name="pixmap" >
<pixmap/>
<item row="1" column="0" colspan="3" >
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="scaledContents" >
<bool>true</bool>
<property name="spacing" >
<number>6</number>
</property>
</widget>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" >
<size>
<width>550</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pbnOK" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>&amp;OK</string>
</property>
<property name="shortcut" >
<string>Alt+O</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pbnCancel" >
<property name="text" >
<string>&amp;Cancel</string>
</property>
<property name="shortcut" >
<string>Alt+C</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="2" >
<widget class="QTabWidget" name="tabWidget" >
Expand Down Expand Up @@ -494,54 +520,31 @@ to transfer the data. If you don't have GPSBabel installed where QGIS can find i
</widget>
</widget>
</item>
<item row="1" column="0" colspan="3" >
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
<item row="0" column="1" >
<widget class="Line" name="line1" >
<property name="frameShape" >
<enum>QFrame::VLine</enum>
</property>
<property name="spacing" >
<number>6</number>
<property name="frameShadow" >
<enum>QFrame::Sunken</enum>
</property>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" >
<size>
<width>550</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pbnOK" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>&amp;OK</string>
</property>
<property name="shortcut" >
<string>Alt+O</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pbnCancel" >
<property name="text" >
<string>&amp;Cancel</string>
</property>
<property name="shortcut" >
<string>Alt+C</string>
</property>
</widget>
</item>
</layout>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string/>
</property>
<property name="pixmap" >
<pixmap resource="qgsgps_plugin.qrc" >:/gps.xpm</pixmap>
</property>
<property name="scaledContents" >
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
Expand All @@ -556,6 +559,8 @@ to transfer the data. If you don't have GPSBabel installed where QGIS can find i
<pixmap></pixmap>
</customwidget>
</customwidgets>
<resources/>
<resources>
<include location="qgsgps_plugin.qrc" />
</resources>
<connections/>
</ui>

0 comments on commit 4c067ca

Please sign in to comment.