Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating GUI

  • Loading branch information...
commit 4919d35292808e1866d74b4ae92371c909c2add7 1 parent 570a4ea
@Ignotus authored
Showing with 209 additions and 148 deletions.
  1. +59 −20 plugins/ipconnect/configurationwidget.ui
  2. +150 −128 ui/newgamewidget.ui
View
79 plugins/ipconnect/configurationwidget.ui
@@ -20,17 +20,30 @@
<string>Game configuration</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
- <item row="0" column="1">
+ <item row="0" column="0">
<widget class="KTabWidget" name="tabWidget">
<property name="currentIndex">
- <number>0</number>
+ <number>1</number>
</property>
<widget class="QWidget" name="tabWidgetPage1">
<attribute name="title">
<string>Create Game</string>
</attribute>
<layout class="QGridLayout" name="gridLayout">
- <item row="1" column="0">
+ <item row="0" column="1">
+ <spacer name="verticalSpacer_4">
+ <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="1" column="1">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Connecting port:</string>
@@ -40,7 +53,7 @@
</property>
</widget>
</item>
- <item row="2" column="1">
+ <item row="2" column="2">
<widget class="KComboBox" name="user">
<item>
<property name="text">
@@ -54,7 +67,7 @@
</item>
</widget>
</item>
- <item row="2" column="0">
+ <item row="2" column="1">
<widget class="QLabel" name="label_2">
<property name="text">
<string>You are:</string>
@@ -64,7 +77,7 @@
</property>
</widget>
</item>
- <item row="3" column="0">
+ <item row="3" column="1">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
@@ -77,7 +90,7 @@
</property>
</spacer>
</item>
- <item row="1" column="1">
+ <item row="1" column="2">
<widget class="QSpinBox" name="listenPort">
<property name="maximum">
<number>99999</number>
@@ -87,7 +100,7 @@
</property>
</widget>
</item>
- <item row="3" column="1">
+ <item row="2" column="3">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
@@ -100,15 +113,15 @@
</property>
</spacer>
</item>
- <item row="0" column="0">
- <spacer name="verticalSpacer_4">
+ <item row="2" column="0">
+ <spacer name="horizontalSpacer_3">
<property name="orientation">
- <enum>Qt::Vertical</enum>
+ <enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
- <width>20</width>
- <height>40</height>
+ <width>40</width>
+ <height>20</height>
</size>
</property>
</spacer>
@@ -120,7 +133,7 @@
<string>Join Game</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_5">
- <item row="3" column="1">
+ <item row="3" column="2">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
@@ -133,7 +146,7 @@
</property>
</spacer>
</item>
- <item row="1" column="1">
+ <item row="1" column="2">
<widget class="KLineEdit" name="host">
<property name="inputMask">
<string>000.000.000.000; </string>
@@ -143,7 +156,7 @@
</property>
</widget>
</item>
- <item row="2" column="0">
+ <item row="2" column="1">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Port:</string>
@@ -153,7 +166,7 @@
</property>
</widget>
</item>
- <item row="2" column="1">
+ <item row="2" column="2">
<widget class="QSpinBox" name="connectionPort">
<property name="maximum">
<number>99999</number>
@@ -163,7 +176,7 @@
</property>
</widget>
</item>
- <item row="1" column="0">
+ <item row="1" column="1">
<widget class="QLabel" name="label">
<property name="text">
<string>IP:</string>
@@ -173,7 +186,7 @@
</property>
</widget>
</item>
- <item row="3" column="0">
+ <item row="3" column="1">
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
@@ -186,7 +199,7 @@
</property>
</spacer>
</item>
- <item row="0" column="0">
+ <item row="0" column="1">
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
@@ -199,6 +212,32 @@
</property>
</spacer>
</item>
+ <item row="2" column="0">
+ <spacer name="horizontalSpacer_4">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item row="2" column="3">
+ <spacer name="horizontalSpacer_5">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
</layout>
</widget>
</widget>
View
278 ui/newgamewidget.ui
@@ -14,136 +14,158 @@
<string>New Game</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
- <item row="3" column="1">
- <widget class="KComboBox" name="GameMode">
- <property name="autoCompletion">
- <bool>false</bool>
- </property>
- <item>
- <property name="text">
- <string>Default Mode</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>Extra Turn</string>
- </property>
- </item>
- </widget>
- </item>
- <item row="1" column="0">
- <widget class="QLabel" name="label">
- <property name="text">
- <string>Height:</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
- </property>
- </widget>
- </item>
- <item row="5" column="1">
- <spacer name="horizontalSpacer">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>40</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- <item row="2" column="1">
- <widget class="QSpinBox" name="WidthSpinBox">
- <property name="minimum">
- <number>5</number>
- </property>
- <property name="maximum">
- <number>40</number>
- </property>
- </widget>
- </item>
- <item row="4" column="1">
- <widget class="KComboBox" name="FirstMoving">
- <item>
- <property name="text">
- <string>First Player</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>Second Player</string>
- </property>
- </item>
- </widget>
- </item>
- <item row="5" 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="4" column="0">
- <widget class="QLabel" name="label_4">
- <property name="text">
- <string>First Moving:</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
- </property>
- </widget>
- </item>
- <item row="3" column="0">
- <widget class="QLabel" name="label_3">
- <property name="text">
- <string>Game Mode:</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
- </property>
- </widget>
- </item>
- <item row="1" column="1">
- <widget class="QSpinBox" name="HeightSpinBox">
- <property name="minimum">
- <number>5</number>
- </property>
- <property name="maximum">
- <number>40</number>
- </property>
+ <item row="0" column="0" colspan="3">
+ <widget class="QGroupBox" name="groupBox">
+ <property name="title">
+ <string>Configuring the game board</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout">
+ <item row="4" column="3">
+ <widget class="KComboBox" name="GameMode">
+ <property name="autoCompletion">
+ <bool>false</bool>
+ </property>
+ <item>
+ <property name="text">
+ <string>Default Mode</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Extra Turn</string>
+ </property>
+ </item>
+ </widget>
+ </item>
+ <item row="6" column="1">
+ <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="5" column="0">
+ <spacer name="horizontalSpacer_2">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item row="5" column="4">
+ <spacer name="horizontalSpacer">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item row="5" column="1">
+ <widget class="QLabel" name="label_4">
+ <property name="text">
+ <string>First Moving:</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item row="4" column="1">
+ <widget class="QLabel" name="label_3">
+ <property name="text">
+ <string>Game Mode:</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="3">
+ <widget class="QSpinBox" name="HeightSpinBox">
+ <property name="minimum">
+ <number>5</number>
+ </property>
+ <property name="maximum">
+ <number>40</number>
+ </property>
+ </widget>
+ </item>
+ <item row="3" column="3">
+ <widget class="QSpinBox" name="WidthSpinBox">
+ <property name="minimum">
+ <number>5</number>
+ </property>
+ <property name="maximum">
+ <number>40</number>
+ </property>
+ </widget>
+ </item>
+ <item row="5" column="3">
+ <widget class="KComboBox" name="FirstMoving">
+ <item>
+ <property name="text">
+ <string>First Player</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Second Player</string>
+ </property>
+ </item>
+ </widget>
+ </item>
+ <item row="3" column="0" colspan="2">
+ <widget class="QLabel" name="label_2">
+ <property name="text">
+ <string>Width:</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1">
+ <widget class="QLabel" name="label">
+ <property name="text">
+ <string>Height:</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="3">
+ <spacer name="verticalSpacer_2">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ </layout>
</widget>
</item>
- <item row="2" column="0">
- <widget class="QLabel" name="label_2">
- <property name="text">
- <string>Width:</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
- </property>
- </widget>
- </item>
- <item row="0" column="0">
- <spacer name="verticalSpacer_2">
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>20</width>
- <height>40</height>
- </size>
- </property>
- </spacer>
- </item>
</layout>
</widget>
<customwidgets>
Please sign in to comment.
Something went wrong with that request. Please try again.