summaryrefslogtreecommitdiff
path: root/ZeroTierUI
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-11-15 11:09:26 -0500
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-11-15 11:09:26 -0500
commit10f03d4119bcbadf38382e5cf5392f9bc990160f (patch)
treec3000bfe809c0551c615396e848101e40de14c64 /ZeroTierUI
parentb3fdb37b87ee42f385b9bbe6df7657a5b5e1cbf8 (diff)
downloadinfinitytier-10f03d4119bcbadf38382e5cf5392f9bc990160f.tar.gz
infinitytier-10f03d4119bcbadf38382e5cf5392f9bc990160f.zip
More UI work.
Diffstat (limited to 'ZeroTierUI')
-rw-r--r--ZeroTierUI/mainwindow.ui182
-rw-r--r--ZeroTierUI/resources.qrc6
-rw-r--r--ZeroTierUI/zt1icon.pngbin0 -> 44700 bytes
3 files changed, 170 insertions, 18 deletions
diff --git a/ZeroTierUI/mainwindow.ui b/ZeroTierUI/mainwindow.ui
index 60fa1f82..d7a654fd 100644
--- a/ZeroTierUI/mainwindow.ui
+++ b/ZeroTierUI/mainwindow.ui
@@ -13,23 +13,148 @@
<property name="windowTitle">
<string>ZeroTier One</string>
</property>
+ <property name="windowIcon">
+ <iconset resource="resources.qrc">
+ <normaloff>:/img/zt1icon.png</normaloff>:/img/zt1icon.png</iconset>
+ </property>
<widget class="QWidget" name="centralWidget">
<layout class="QVBoxLayout" name="verticalLayout">
<property name="leftMargin">
- <number>0</number>
+ <number>6</number>
</property>
<property name="topMargin">
- <number>0</number>
+ <number>6</number>
</property>
<property name="rightMargin">
- <number>0</number>
+ <number>6</number>
</property>
<property name="bottomMargin">
- <number>0</number>
+ <number>6</number>
</property>
+ <item>
+ <widget class="QScrollArea" name="networksScrollArea">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="horizontalScrollBarPolicy">
+ <enum>Qt::ScrollBarAlwaysOff</enum>
+ </property>
+ <property name="widgetResizable">
+ <bool>true</bool>
+ </property>
+ <widget class="QWidget" name="scrollAreaWidgetContents">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>654</width>
+ <height>222</height>
+ </rect>
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout_2">
+ <property name="leftMargin">
+ <number>0</number>
+ </property>
+ <property name="topMargin">
+ <number>0</number>
+ </property>
+ <property name="rightMargin">
+ <number>0</number>
+ </property>
+ <property name="bottomMargin">
+ <number>0</number>
+ </property>
+ </layout>
+ </widget>
+ </widget>
+ </item>
+ <item>
+ <widget class="QWidget" name="bottomContainerWidget" native="true">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0,0">
+ <property name="leftMargin">
+ <number>2</number>
+ </property>
+ <property name="topMargin">
+ <number>0</number>
+ </property>
+ <property name="rightMargin">
+ <number>2</number>
+ </property>
+ <property name="bottomMargin">
+ <number>0</number>
+ </property>
+ <item>
+ <widget class="QLabel" name="statusLabel">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string>OFFLINE (0 direct peers)</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLineEdit" name="networkIdLineEdit">
+ <property name="font">
+ <font>
+ <family>Courier</family>
+ <pointsize>12</pointsize>
+ </font>
+ </property>
+ <property name="frame">
+ <bool>true</bool>
+ </property>
+ <property name="placeholderText">
+ <string>[Network ID, e.g. 8056c2e21c000001]</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="joinNetworkButton">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="font">
+ <font>
+ <weight>75</weight>
+ <bold>true</bold>
+ <underline>false</underline>
+ </font>
+ </property>
+ <property name="autoFillBackground">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>+ Join</string>
+ </property>
+ <property name="default">
+ <bool>false</bool>
+ </property>
+ <property name="flat">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
</layout>
</widget>
- <widget class="QStatusBar" name="statusBar"/>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
<rect>
@@ -39,22 +164,23 @@
<height>22</height>
</rect>
</property>
- <widget class="QMenu" name="menuFile">
+ <property name="layoutDirection">
+ <enum>Qt::LeftToRight</enum>
+ </property>
+ <widget class="QMenu" name="menuHelp">
<property name="title">
- <string>File</string>
+ <string>Help</string>
</property>
- <addaction name="actionJoin_Network"/>
- <addaction name="separator"/>
- <addaction name="actionExit"/>
+ <addaction name="actionAbout_2"/>
</widget>
- <widget class="QMenu" name="menuHelp">
- <property name="layoutDirection">
- <enum>Qt::LeftToRight</enum>
- </property>
+ <widget class="QMenu" name="menuFile">
<property name="title">
- <string>Help</string>
+ <string>File</string>
</property>
- <addaction name="actionAbout"/>
+ <addaction name="actionJoin_Network_2"/>
+ <addaction name="actionShow_Detailed_Status"/>
+ <addaction name="separator"/>
+ <addaction name="actionExit_2"/>
</widget>
<addaction name="menuFile"/>
<addaction name="menuHelp"/>
@@ -74,8 +200,30 @@
<string>About</string>
</property>
</action>
+ <action name="actionAbout_2">
+ <property name="text">
+ <string>About</string>
+ </property>
+ </action>
+ <action name="actionJoin_Network_2">
+ <property name="text">
+ <string>Join Network</string>
+ </property>
+ </action>
+ <action name="actionShow_Detailed_Status">
+ <property name="text">
+ <string>Show Detailed Status</string>
+ </property>
+ </action>
+ <action name="actionExit_2">
+ <property name="text">
+ <string>Exit</string>
+ </property>
+ </action>
</widget>
<layoutdefault spacing="6" margin="11"/>
- <resources/>
+ <resources>
+ <include location="resources.qrc"/>
+ </resources>
<connections/>
</ui>
diff --git a/ZeroTierUI/resources.qrc b/ZeroTierUI/resources.qrc
index 2496c877..a788ae7f 100644
--- a/ZeroTierUI/resources.qrc
+++ b/ZeroTierUI/resources.qrc
@@ -1 +1,5 @@
-<RCC/> \ No newline at end of file
+<RCC>
+ <qresource prefix="/img">
+ <file>zt1icon.png</file>
+ </qresource>
+</RCC>
diff --git a/ZeroTierUI/zt1icon.png b/ZeroTierUI/zt1icon.png
new file mode 100644
index 00000000..bc265167
--- /dev/null
+++ b/ZeroTierUI/zt1icon.png
Binary files differ