Qt5 migration #1
26 changed files with 292 additions and 396 deletions
|
@ -47,7 +47,7 @@
|
|||
<attribute name="title">
|
||||
<string>Imaging</string>
|
||||
</attribute>
|
||||
<widget class="Q3ScrollView" name="imagingView" native="true">
|
||||
<widget class="QScrollArea" name="imagingView">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
|
@ -56,11 +56,21 @@
|
|||
<height>180</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="autoFillBackground">
|
||||
<property name="widgetResizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<widget class="QWidget" name="scrollAreaWidgetContents">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>408</width>
|
||||
<height>178</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="Q3ScrollView" name="partitionView" native="true">
|
||||
</widget>
|
||||
<widget class="QScrollArea" name="partitionView">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>429</x>
|
||||
|
@ -69,9 +79,19 @@
|
|||
<height>180</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="autoFillBackground">
|
||||
<property name="widgetResizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<widget class="QWidget" name="scrollAreaWidgetContents_2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>178</width>
|
||||
<height>178</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
@ -406,17 +426,7 @@ p, li { white-space: pre-wrap; }
|
|||
</widget>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>Q3ScrollView</class>
|
||||
<extends>QWidget</extends>
|
||||
<header location="global">qscrollview.h</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<includes>
|
||||
<include location="local">q3scrollview.h</include>
|
||||
<include location="local">q3scrollview.h</include>
|
||||
</includes>
|
||||
<resources/>
|
||||
<connections/>
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
<ui version="4.0" >
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>linboImageSelector</class>
|
||||
<widget class="QDialog" name="linboImageSelector" >
|
||||
<property name="geometry" >
|
||||
<widget class="QDialog" name="linboImageSelector">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
|
@ -9,14 +10,14 @@
|
|||
<height>451</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle" >
|
||||
<property name="windowTitle">
|
||||
<string>Image erstellen</string>
|
||||
</property>
|
||||
<property name="whatsThis" >
|
||||
<property name="whatsThis">
|
||||
<string/>
|
||||
</property>
|
||||
<widget class="QLabel" name="textLabel2" >
|
||||
<property name="geometry" >
|
||||
<widget class="QLabel" name="textLabel2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>0</y>
|
||||
|
@ -24,62 +25,20 @@
|
|||
<height>80</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<property name="text">
|
||||
<string>Vorhandenes Image neu erstellen oder [Neues Image] zur Erstellung einer neuen Image-Datei auswählen.
|
||||
|
||||
Auswahl:</string>
|
||||
</property>
|
||||
<property name="alignment" >
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="wordWrap" >
|
||||
<property name="wordWrap">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="Q3ButtonGroup" name="imageButtons" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>160</y>
|
||||
<width>361</width>
|
||||
<height>70</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="title" >
|
||||
<string>Image-Typ für neue Image-Datei:</string>
|
||||
</property>
|
||||
<widget class="QRadioButton" name="baseRadioButton" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>20</y>
|
||||
<width>251</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>Neues Basisimage</string>
|
||||
</property>
|
||||
<property name="checked" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QRadioButton" name="incrRadioButton" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>40</y>
|
||||
<width>251</width>
|
||||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>Differentielles Image</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QLabel" name="textLabel2_2" >
|
||||
<property name="geometry" >
|
||||
<widget class="QLabel" name="textLabel2_2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>230</y>
|
||||
|
@ -87,15 +46,15 @@ Auswahl:</string>
|
|||
<height>30</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<property name="text">
|
||||
<string>Dateiname für neue Imagedatei eingeben:</string>
|
||||
</property>
|
||||
<property name="wordWrap" >
|
||||
<property name="wordWrap">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLineEdit" name="specialName" >
|
||||
<property name="geometry" >
|
||||
<widget class="QLineEdit" name="specialName">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>260</y>
|
||||
|
@ -103,12 +62,12 @@ Auswahl:</string>
|
|||
<height>30</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<property name="text">
|
||||
<string>Neu</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="descriptionLabel" >
|
||||
<property name="geometry" >
|
||||
<widget class="QLabel" name="descriptionLabel">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>290</y>
|
||||
|
@ -116,15 +75,15 @@ Auswahl:</string>
|
|||
<height>30</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<property name="text">
|
||||
<string>Informationen zum Image:</string>
|
||||
</property>
|
||||
<property name="wordWrap" >
|
||||
<property name="wordWrap">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="createButton" >
|
||||
<property name="geometry" >
|
||||
<widget class="QPushButton" name="createButton">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>420</y>
|
||||
|
@ -132,15 +91,15 @@ Auswahl:</string>
|
|||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="toolTip" >
|
||||
<string>Erstellt das ausgewählte Image<br>im lokalen Cache</string>
|
||||
<property name="toolTip">
|
||||
<string>Erstellt das ausgewählte Image<br>im lokalen Cache</string>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<property name="text">
|
||||
<string>Erstellen</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="createUploadButton" >
|
||||
<property name="geometry" >
|
||||
<widget class="QPushButton" name="createUploadButton">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>110</x>
|
||||
<y>420</y>
|
||||
|
@ -148,15 +107,15 @@ Auswahl:</string>
|
|||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="toolTip" >
|
||||
<string>Erstellt das ausgewählte Image im lokalen Cache und lädt es <br> anschliessend auf den Server hoch</string>
|
||||
<property name="toolTip">
|
||||
<string>Erstellt das ausgewählte Image im lokalen Cache und lädt es <br> anschliessend auf den Server hoch</string>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<property name="text">
|
||||
<string>Erstellen+Hochladen</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="cancelButton" >
|
||||
<property name="geometry" >
|
||||
<widget class="QPushButton" name="cancelButton">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>280</x>
|
||||
<y>420</y>
|
||||
|
@ -164,36 +123,15 @@ Auswahl:</string>
|
|||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="toolTip" >
|
||||
<property name="toolTip">
|
||||
<string>Abbrechen ohne Imageerstellung</string>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<property name="text">
|
||||
<string>Abbruch</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="Q3ListBox" name="listBox" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>80</y>
|
||||
<width>360</width>
|
||||
<height>72</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="vScrollBarMode" >
|
||||
<enum>Q3ScrollView::Auto</enum>
|
||||
</property>
|
||||
<property name="hScrollBarMode" >
|
||||
<enum>Q3ScrollView::Auto</enum>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text" >
|
||||
<string>New Item</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
<widget class="QTextEdit" name="infoEditor" >
|
||||
<property name="geometry" >
|
||||
<widget class="QTextEdit" name="infoEditor">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>320</y>
|
||||
|
@ -202,8 +140,8 @@ Auswahl:</string>
|
|||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="checkReboot" >
|
||||
<property name="geometry" >
|
||||
<widget class="QCheckBox" name="checkReboot">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>400</y>
|
||||
|
@ -211,12 +149,12 @@ Auswahl:</string>
|
|||
<height>19</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<property name="text">
|
||||
<string>Reboot</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="checkShutdown" >
|
||||
<property name="geometry" >
|
||||
<widget class="QCheckBox" name="checkShutdown">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>70</x>
|
||||
<y>400</y>
|
||||
|
@ -224,28 +162,66 @@ Auswahl:</string>
|
|||
<height>19</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<property name="text">
|
||||
<string>Shutdown</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QListView" name="listBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>80</y>
|
||||
<width>360</width>
|
||||
<height>72</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11" />
|
||||
<widget class="QGroupBox" name="imageButtons">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>160</y>
|
||||
<width>361</width>
|
||||
<height>70</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>GroupBox</string>
|
||||
</property>
|
||||
<widget class="QRadioButton" name="baseRadioButton">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>20</y>
|
||||
<width>251</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Neues Basisimage</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QRadioButton" name="incrRadioButton">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>40</y>
|
||||
<width>251</width>
|
||||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Differentielles Image</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>Q3ButtonGroup</class>
|
||||
<extends>Q3GroupBox</extends>
|
||||
<header>Qt3Support/Q3ButtonGroup</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>Q3ListBox</class>
|
||||
<extends>Q3Frame</extends>
|
||||
<header>q3listbox.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<tabstops>
|
||||
<tabstop>listBox</tabstop>
|
||||
<tabstop>baseRadioButton</tabstop>
|
||||
<tabstop>specialName</tabstop>
|
||||
<tabstop>createButton</tabstop>
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
<ui version="4.0" >
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>linboImageUpload</class>
|
||||
<widget class="QDialog" name="linboImageUpload" >
|
||||
<property name="geometry" >
|
||||
<widget class="QDialog" name="linboImageUpload">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
|
@ -9,32 +10,11 @@
|
|||
<height>213</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle" >
|
||||
<property name="windowTitle">
|
||||
<string>Image Auswahl</string>
|
||||
</property>
|
||||
<widget class="Q3ListBox" name="listBox" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>50</y>
|
||||
<width>320</width>
|
||||
<height>90</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="vScrollBarMode" >
|
||||
<enum>Q3ScrollView::Auto</enum>
|
||||
</property>
|
||||
<property name="hScrollBarMode" >
|
||||
<enum>Q3ScrollView::Auto</enum>
|
||||
</property>
|
||||
<item>
|
||||
<property name="text" >
|
||||
<string>New Item</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
<widget class="QLabel" name="OSLabel" >
|
||||
<property name="geometry" >
|
||||
<widget class="QLabel" name="OSLabel">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>10</y>
|
||||
|
@ -42,18 +22,18 @@
|
|||
<height>31</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<property name="text">
|
||||
<string>Welches Image soll hochgeladen werden?</string>
|
||||
</property>
|
||||
<property name="alignment" >
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
<property name="wordWrap" >
|
||||
<property name="wordWrap">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="cancelButton" >
|
||||
<property name="geometry" >
|
||||
<widget class="QPushButton" name="cancelButton">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>230</x>
|
||||
<y>170</y>
|
||||
|
@ -61,15 +41,15 @@
|
|||
<height>31</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="toolTip" >
|
||||
<property name="toolTip">
|
||||
<string>Abbrechen ohne Hochladen</string>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<property name="text">
|
||||
<string>Abbruch</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="okButton" >
|
||||
<property name="geometry" >
|
||||
<widget class="QPushButton" name="okButton">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>170</y>
|
||||
|
@ -77,15 +57,15 @@
|
|||
<height>31</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="toolTip" >
|
||||
<string>Lädt das ausgewählte<br>Image auf den Server hoch</string>
|
||||
<property name="toolTip">
|
||||
<string>Lädt das ausgewählte<br>Image auf den Server hoch</string>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<property name="text">
|
||||
<string>OK</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="checkReboot" >
|
||||
<property name="geometry" >
|
||||
<widget class="QCheckBox" name="checkReboot">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>150</y>
|
||||
|
@ -93,12 +73,12 @@
|
|||
<height>19</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<property name="text">
|
||||
<string>Reboot</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="checkShutdown" >
|
||||
<property name="geometry" >
|
||||
<widget class="QCheckBox" name="checkShutdown">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>70</x>
|
||||
<y>150</y>
|
||||
|
@ -106,20 +86,23 @@
|
|||
<height>19</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<property name="text">
|
||||
<string>Shutdown</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QListView" name="listBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>50</y>
|
||||
<width>320</width>
|
||||
<height>90</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11" />
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>Q3ListBox</class>
|
||||
<extends>Q3Frame</extends>
|
||||
<header>q3listbox.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
|
|
@ -13,19 +13,6 @@
|
|||
<property name="windowTitle">
|
||||
<string>Image Info</string>
|
||||
</property>
|
||||
<widget class="Q3TextEdit" name="editor">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>10</y>
|
||||
<width>340</width>
|
||||
<height>230</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="readOnly">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="saveButton">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
|
@ -42,22 +29,19 @@
|
|||
<string>Speichern</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPlainTextEdit" name="editor">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>10</y>
|
||||
<width>340</width>
|
||||
<height>230</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>Q3Frame</class>
|
||||
<extends>QFrame</extends>
|
||||
<header>Qt3Support/Q3Frame</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>Q3TextEdit</class>
|
||||
<extends>Q3Frame</extends>
|
||||
<header>q3textedit.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
<ui version="4.0" >
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>linboMulticastBox</class>
|
||||
<widget class="QDialog" name="linboMulticastBox" >
|
||||
<property name="geometry" >
|
||||
<widget class="QDialog" name="linboMulticastBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
|
@ -9,66 +10,11 @@
|
|||
<height>155</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle" >
|
||||
<property name="windowTitle">
|
||||
<string>Update Cache</string>
|
||||
</property>
|
||||
<widget class="Q3ButtonGroup" name="updateMethodGroup" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>10</y>
|
||||
<width>180</width>
|
||||
<height>81</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="title" >
|
||||
<string>Auswahl</string>
|
||||
</property>
|
||||
<widget class="QRadioButton" name="rsyncButton" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>20</y>
|
||||
<width>150</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>Update mit Rsync</string>
|
||||
</property>
|
||||
<property name="checked" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QRadioButton" name="multicastButton" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>40</y>
|
||||
<width>160</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>Update mit Multicast</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QRadioButton" name="torrentButton" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>60</y>
|
||||
<width>165</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>Update mit Bittorrent</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="okButton" >
|
||||
<property name="geometry" >
|
||||
<widget class="QPushButton" name="okButton">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>120</y>
|
||||
|
@ -76,15 +22,15 @@
|
|||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="toolTip" >
|
||||
<string>Aktualisiert den lokalen<br>Cache mit der gewählten Methode</string>
|
||||
<property name="toolTip">
|
||||
<string>Aktualisiert den lokalen<br>Cache mit der gewählten Methode</string>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<property name="text">
|
||||
<string>OK</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="cancelButton" >
|
||||
<property name="geometry" >
|
||||
<widget class="QPushButton" name="cancelButton">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>130</x>
|
||||
<y>120</y>
|
||||
|
@ -92,15 +38,15 @@
|
|||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="toolTip" >
|
||||
<property name="toolTip">
|
||||
<string>Abbrechen ohne Cache-Aktualisierung</string>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<property name="text">
|
||||
<string>Abbruch</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="checkFormat" >
|
||||
<property name="geometry" >
|
||||
<widget class="QCheckBox" name="checkFormat">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>100</y>
|
||||
|
@ -108,21 +54,68 @@
|
|||
<height>19</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<property name="text">
|
||||
<string>Cache Partition formatieren</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QGroupBox" name="updateMethodGroup">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>10</y>
|
||||
<width>180</width>
|
||||
<height>81</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>GroupBox</string>
|
||||
</property>
|
||||
<widget class="QRadioButton" name="rsyncButton">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>20</y>
|
||||
<width>150</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Update mit Rsync</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11" />
|
||||
<widget class="QRadioButton" name="multicastButton">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>40</y>
|
||||
<width>160</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Update mit Multicast</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QRadioButton" name="torrentButton">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>60</y>
|
||||
<width>165</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Update mit Bittorrent</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>Q3ButtonGroup</class>
|
||||
<extends>Q3GroupBox</extends>
|
||||
<header>Qt3Support/Q3ButtonGroup</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include <qvariant.h>
|
||||
#include <qwidget.h>
|
||||
#include <qdialog.h>
|
||||
#include <q3process.h>
|
||||
#include <qprocess.h>
|
||||
#include <qstring.h>
|
||||
#include <QTextEdit>
|
||||
#include "linboDialog.hh"
|
||||
|
@ -20,7 +20,7 @@ class linboCounterImpl : public QWidget, public Ui::linboCounter, public linboDi
|
|||
|
||||
private:
|
||||
QTextEdit *Console;
|
||||
Q3Process* myProcess;
|
||||
QProcess* myProcess;
|
||||
QString line;
|
||||
QWidget *myMainApp,*myParent;
|
||||
QStringList myCommand;
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#include <qwidget.h>
|
||||
#include <qdialog.h>
|
||||
#include <QTextEdit>
|
||||
#include <q3buttongroup.h>
|
||||
#include <qstringlist.h>
|
||||
#include <qstring.h>
|
||||
#include <QProcess>
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include <qstringlist.h>
|
||||
#include <qtimer.h>
|
||||
#include <qdialog.h>
|
||||
#include <QPushButton>
|
||||
#include "linboProgressImpl.hh"
|
||||
#include "linboYesNoImpl.hh"
|
||||
#include "linboPasswordBoxImpl.hh"
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include <QProcess>
|
||||
#include <qstring.h>
|
||||
#include <QTextEdit>
|
||||
#include <Qt3Support/Q3TextBrowser>
|
||||
#include <QTextBrowser>
|
||||
#include "linboProgressImpl.hh"
|
||||
#include "linboDialog.hh"
|
||||
#include "linboLogConsole.hh"
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#include <qwidget.h>
|
||||
#include <qdialog.h>
|
||||
#include <qpushbutton.h>
|
||||
#include <Q3TextEdit>
|
||||
#include <qstringlist.h>
|
||||
#include <QProcess>
|
||||
#include <iostream>
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
#include <QBoxLayout>
|
||||
#include <QFont>
|
||||
#include <QFontDatabase>
|
||||
#include <QScreen>
|
||||
|
||||
#include "linboGUIImpl.hh"
|
||||
#include "linbostartpage.h"
|
||||
#include "linbobackend.h"
|
||||
|
||||
|
|
|
@ -43,9 +43,7 @@
|
|||
#include <QButtonGroup>
|
||||
#include <QLabel>
|
||||
#include <QProgressBar>
|
||||
#include <QMacStyle>
|
||||
|
||||
#include "linboGUIImpl.hh"
|
||||
#include "linbobackend.h"
|
||||
#include "linboosselectbutton.h"
|
||||
#include "qmodernprogressbar.h"
|
||||
|
|
52
linboGUI.pro
52
linboGUI.pro
|
@ -3,7 +3,6 @@ DEPENDPATH += .
|
|||
INCLUDEPATH += .
|
||||
CFLAGS += -DQWS -static
|
||||
QT += \
|
||||
#qt3support \
|
||||
gui \
|
||||
svg
|
||||
|
||||
|
@ -15,8 +14,7 @@ target.path = /usr/bin
|
|||
|
||||
INCLUDEPATH += \
|
||||
headers/ \
|
||||
headers/backend \
|
||||
headers/legacy
|
||||
headers/backend
|
||||
|
||||
# Input
|
||||
HEADERS += \
|
||||
|
@ -25,22 +23,6 @@ HEADERS += \
|
|||
headers/backend/linboimage.h \
|
||||
headers/backend/linbologger.h \
|
||||
headers/backend/linboos.h \
|
||||
headers/legacy/image_description.hh \
|
||||
headers/legacy/linboConsoleImpl.hh \
|
||||
headers/legacy/linboCounterImpl.hh \
|
||||
headers/legacy/linboGUIImpl.hh \
|
||||
headers/legacy/linboImageSelectorImpl.hh \
|
||||
headers/legacy/linboImageUploadImpl.hh \
|
||||
headers/legacy/linboInfoBrowserImpl.hh \
|
||||
headers/legacy/linboInputBoxImpl.hh \
|
||||
headers/legacy/linboMsgImpl.hh \
|
||||
headers/legacy/linboMulticastBoxImpl.hh \
|
||||
headers/legacy/linboPasswordBoxImpl.hh \
|
||||
headers/legacy/linboProgressImpl.hh \
|
||||
headers/legacy/linboPushButton.hh \
|
||||
headers/legacy/linboLogConsole.hh \
|
||||
headers/legacy/linboRegisterBoxImpl.hh \
|
||||
headers/legacy/linboYesNoImpl.hh \
|
||||
headers/backend/linbobackend.h \
|
||||
headers/linbogui.h \
|
||||
headers/linboosselectbutton.h \
|
||||
|
@ -58,22 +40,6 @@ SOURCES += \
|
|||
sources/backend/linboimage.cpp \
|
||||
sources/backend/linbologger.cpp \
|
||||
sources/backend/linboos.cpp \
|
||||
sources/legacy/image_description.cc \
|
||||
sources/legacy/linboConsoleImpl.cc \
|
||||
sources/legacy/linboCounterImpl.cc \
|
||||
sources/legacy/linboGUIImpl.cc \
|
||||
sources/legacy/linboImageSelectorImpl.cc \
|
||||
sources/legacy/linboImageUploadImpl.cc \
|
||||
sources/legacy/linboInfoBrowserImpl.cc \
|
||||
sources/legacy/linboInputBoxImpl.cc \
|
||||
sources/legacy/linboMsgImpl.cc \
|
||||
sources/legacy/linboMulticastBoxImpl.cc \
|
||||
sources/legacy/linboPasswordBoxImpl.cc \
|
||||
sources/legacy/linboProgressImpl.cc \
|
||||
sources/legacy/linboPushButton.cc \
|
||||
sources/legacy/linboLogConsole.cc \
|
||||
sources/legacy/linboRegisterBoxImpl.cc \
|
||||
sources/legacy/linboYesNoImpl.cc \
|
||||
sources/backend/linbobackend.cpp \
|
||||
sources/linbogui.cpp \
|
||||
sources/linboosselectbutton.cpp \
|
||||
|
@ -86,22 +52,6 @@ SOURCES += \
|
|||
sources/qmodernpushbuttonoverlay.cpp \
|
||||
sources/qmodernstackedwidget.cpp
|
||||
|
||||
FORMS += \
|
||||
forms/linboConsole.ui \
|
||||
forms/linboCounter.ui \
|
||||
forms/linboGUI.ui \
|
||||
forms/linboImageSelector.ui \
|
||||
forms/linboImageUpload.ui \
|
||||
forms/linboInfoBrowser.ui \
|
||||
forms/linboInputBox.ui \
|
||||
forms/linboMovie.ui \
|
||||
forms/linboMsg.ui \
|
||||
forms/linboMulticastBox.ui \
|
||||
forms/linboPasswordBox.ui \
|
||||
forms/linboProgress.ui \
|
||||
forms/linboRegisterBox.ui \
|
||||
forms/linboYesNo.ui
|
||||
|
||||
RESOURCES += \
|
||||
resources/linbo.qrc
|
||||
|
||||
|
|
|
@ -24,8 +24,9 @@
|
|||
|
||||
LinboBackend::LinboBackend(QObject *parent) : QObject(parent)
|
||||
{
|
||||
this->setState(Initializing);
|
||||
this->currentOs = nullptr;
|
||||
this->logger = nullptr;
|
||||
this->state = Initializing;
|
||||
|
||||
// Init some objects
|
||||
this->logger = new LinboLogger("/tmp/linbo.log", this);
|
||||
|
@ -406,6 +407,7 @@ void LinboBackend::setState(LinboState state) {
|
|||
this->state = state;
|
||||
emit this->stateChanged(this->state);
|
||||
|
||||
if(this->logger != nullptr)
|
||||
this->logger->log("Linbo state changed to: " + QString::number(state), LinboLogType::LinboGuiInfo);
|
||||
}
|
||||
|
||||
|
@ -431,7 +433,6 @@ void LinboBackend::loadStartConfiguration(QString startConfFilePath) {
|
|||
// ignore capitalization
|
||||
thisLine = thisLine.toLower();
|
||||
// remove empty characters
|
||||
thisLine = thisLine.stripWhiteSpace();
|
||||
thisLine = thisLine.simplified();
|
||||
// ignore empty lines
|
||||
if(thisLine.length() == 0)
|
||||
|
@ -457,8 +458,8 @@ void LinboBackend::loadStartConfiguration(QString startConfFilePath) {
|
|||
if(keyValueList.length() < 2)
|
||||
continue;
|
||||
|
||||
QString key = keyValueList[0].stripWhiteSpace();
|
||||
QString value = keyValueList[1].stripWhiteSpace();
|
||||
QString key = keyValueList[0].simplified();
|
||||
QString value = keyValueList[1].simplified();
|
||||
|
||||
// ignore empty keys and values
|
||||
if(key.isEmpty() || value.isEmpty())
|
||||
|
@ -548,7 +549,7 @@ void LinboBackend::loadEnvironmentValues() {
|
|||
this->config->setMacAddress(this->executeCommand(true, "mac").replace("\n", ""));
|
||||
|
||||
// Version
|
||||
this->config->setLinboVersion(this->executeCommand(true, "version").stripWhiteSpace().replace("\n", ""));
|
||||
this->config->setLinboVersion(this->executeCommand(true, "version").simplified().replace("\n", ""));
|
||||
|
||||
// hostname
|
||||
this->config->setHostname(this->executeCommand(true, "hostname").replace("\n", ""));
|
||||
|
@ -603,7 +604,7 @@ void LinboBackend::writeToPartitionConfig(QMap<QString, QString> config, LinboDi
|
|||
else if(key == "size") partition->setSize(value.toInt());
|
||||
else if(key == "id") partition->setId(value);
|
||||
else if(key == "fstype") partition->setFstype(value);
|
||||
else if(key.startsWith("bootable", false)) partition->setBootable(toBool(value));
|
||||
else if(key.startsWith("bootable")) partition->setBootable(toBool(value));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -635,5 +636,5 @@ bool LinboBackend::toBool(const QString& value) {
|
|||
QStringList trueWords("yes");
|
||||
trueWords.append("true");
|
||||
trueWords.append("enable");
|
||||
return trueWords.contains(value.stripWhiteSpace());
|
||||
return trueWords.contains(value.simplified());
|
||||
}
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
#include "linboConsoleImpl.hh"
|
||||
#include "linboProgressImpl.hh"
|
||||
#include "linboGUIImpl.hh"
|
||||
#include <q3progressbar.h>
|
||||
#include <QProgressBar>
|
||||
#include <qapplication.h>
|
||||
#include <QtGui>
|
||||
#include <QByteArray>
|
||||
#include <QDesktopWidget>
|
||||
#include "linboPushButton.hh"
|
||||
|
||||
|
||||
|
|
|
@ -24,22 +24,22 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|||
#include "linboGUIImpl.hh"
|
||||
#include <signal.h> // for signal()
|
||||
#include <qpushbutton.h>
|
||||
#include <q3buttongroup.h>
|
||||
#include <QButtonGroup>
|
||||
#include <qstringlist.h>
|
||||
#include <qlabel.h>
|
||||
#include <qtabwidget.h>
|
||||
#include <q3listbox.h>
|
||||
#include <QListView>
|
||||
#include <qapplication.h>
|
||||
#include <q3scrollview.h>
|
||||
#include <QListView>
|
||||
#include <qtooltip.h>
|
||||
#include <qfile.h>
|
||||
#include <q3textstream.h>
|
||||
#include <QTextStream>
|
||||
#include <qpixmap.h>
|
||||
#include <qimage.h>
|
||||
#include <QBrush>
|
||||
#include <qregexp.h>
|
||||
#include <stdlib.h>
|
||||
#include <q3stylesheet.h>
|
||||
//#include <q3stylesheet.h>
|
||||
|
||||
#include "linboProgressImpl.hh"
|
||||
#include "linboMulticastBoxImpl.hh"
|
||||
|
@ -53,8 +53,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|||
#include "linboConsoleImpl.hh"
|
||||
#include <QtGui>
|
||||
#include <QTextCursor>
|
||||
#include <qwindowsystem_qws.h>
|
||||
#include <QWSServer>
|
||||
|
||||
//#include <qwindowsystem_qws.h>
|
||||
//#include <QWSServer>
|
||||
|
||||
#define LINBO_CMD(arg) QStringList("linbo_cmd") << (arg);
|
||||
|
||||
|
@ -62,7 +63,7 @@ void read_qstring( ifstream* input,
|
|||
QString& tmp ) {
|
||||
char line[500];
|
||||
input->getline(line,500,'\n');
|
||||
tmp = QString::fromAscii( line, -1 ).stripWhiteSpace();
|
||||
tmp = QByteArray::fromHex(QString(line).remove(" ").toLocal8Bit());
|
||||
}
|
||||
|
||||
void read_bool( ifstream* input,
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
#include "linboImageSelectorImpl.hh"
|
||||
#include <unistd.h>
|
||||
#include <q3progressbar.h>
|
||||
#include <QProgressBar>
|
||||
#include <qapplication.h>
|
||||
#include <q3buttongroup.h>
|
||||
#include <q3listbox.h>
|
||||
#include <QButtonGroup>
|
||||
#include <QListView>
|
||||
#include <QtGui>
|
||||
#include <qradiobutton.h>
|
||||
//Added by qt3to4:
|
||||
#include <Q3TextStream>
|
||||
#include <QTextStream>
|
||||
#include "linboImageUploadImpl.hh"
|
||||
#include "linboPushButton.hh"
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#include "linboImageUploadImpl.hh"
|
||||
#include <unistd.h>
|
||||
#include <q3progressbar.h>
|
||||
#include <QProgressBar>
|
||||
#include <qapplication.h>
|
||||
#include <q3listbox.h>
|
||||
#include <QListView>
|
||||
#include <QtGui>
|
||||
#include "linboPushButton.hh"
|
||||
#include "linboYesNoImpl.hh"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include <unistd.h>
|
||||
#include <qapplication.h>
|
||||
#include <QtGui>
|
||||
#include <q3textstream.h>
|
||||
#include <QTextStream>
|
||||
|
||||
linboInfoBrowserImpl::linboInfoBrowserImpl(QWidget* parent ) : linboDialog()
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "linboInputBoxImpl.hh"
|
||||
#include <unistd.h>
|
||||
#include <q3progressbar.h>
|
||||
#include <QProgressBar>
|
||||
#include <qapplication.h>
|
||||
#include <QtGui>
|
||||
#include "linboPushButton.hh"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "linboMulticastBoxImpl.hh"
|
||||
#include <unistd.h>
|
||||
#include "linboProgressImpl.hh"
|
||||
#include <q3progressbar.h>
|
||||
#include <QProgressBar>
|
||||
#include <qapplication.h>
|
||||
#include <qradiobutton.h>
|
||||
#include "linboPushButton.hh"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include "linboPasswordBoxImpl.hh"
|
||||
#include <q3process.h>
|
||||
#include <QProcess>
|
||||
#include <iostream>
|
||||
#include <qmovie.h>
|
||||
#include <qpoint.h>
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <q3progressbar.h>
|
||||
#include <QProgressBar>
|
||||
#include <iostream>
|
||||
#include <qapplication.h>
|
||||
#include <QtDebug>
|
||||
#include "linboPushButton.hh"
|
||||
|
||||
linbopushbutton::linbopushbutton( QWidget* parent,
|
||||
const char* name ) : QPushButton( parent,
|
||||
name )
|
||||
const char* name ) : QPushButton( parent )
|
||||
{
|
||||
Q_UNUSED(name)
|
||||
connect(this, SIGNAL(clicked()), this, SLOT(lclicked()));
|
||||
|
||||
// myprocess = new Q3Process( this )
|
||||
|
@ -98,7 +98,7 @@ void linbopushbutton::lclicked()
|
|||
//myMainApp->setEnabled( false );
|
||||
myQDialog->show();
|
||||
myQDialog->raise();
|
||||
myQDialog->setActiveWindow();
|
||||
//myQDialog->setActiveWindow();
|
||||
myQDialog->setEnabled( true );
|
||||
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ void linbopushbutton::lclicked()
|
|||
progwindow->raise();
|
||||
// progwindow->setTextBrowser( Console );
|
||||
|
||||
progwindow->setActiveWindow();
|
||||
//progwindow->setActiveWindow();
|
||||
progwindow->setUpdatesEnabled( true );
|
||||
progwindow->setEnabled( true );
|
||||
}
|
||||
|
|
|
@ -24,10 +24,10 @@ LinboGui::LinboGui()
|
|||
Qt::WindowFlags flags;
|
||||
flags = Qt::FramelessWindowHint | Qt::WindowStaysOnBottomHint;
|
||||
setWindowFlags( flags );
|
||||
setAttribute( Qt::WA_AlwaysShowToolTips );
|
||||
this->setGeometry(QApplication::desktop()->screenGeometry());
|
||||
this->setFixedHeight(QApplication::desktop()->screenGeometry().height());
|
||||
this->setFixedWidth(QApplication::desktop()->screenGeometry().width());
|
||||
setAttribute(Qt::WA_AlwaysShowToolTips);
|
||||
this->setGeometry(QGuiApplication::screens().at(0)->geometry());
|
||||
this->setFixedHeight(QGuiApplication::screens().at(0)->geometry().height());
|
||||
this->setFixedWidth(QGuiApplication::screens().at(0)->geometry().width());
|
||||
|
||||
// Load segoe font
|
||||
QFontDatabase::addApplicationFont(":/fonts/SegoeUI.ttf");
|
||||
|
|
|
@ -28,8 +28,8 @@ LinboStartPage::LinboStartPage(LinboBackend* backend, QWidget *parent) : QWidget
|
|||
this->setGeometry(QRect(0,0,parent->width(), parent->height()));
|
||||
|
||||
// create an instance of the old GUI (as a backup)
|
||||
linboGUIImpl* legacyGui = new linboGUIImpl(this);
|
||||
legacyGui->setStyleSheet( "QDialog { background: white }");
|
||||
//linboGUIImpl* legacyGui = new linboGUIImpl(this);
|
||||
//legacyGui->setStyleSheet( "QDialog { background: white }");
|
||||
|
||||
// create the main layout
|
||||
|
||||
|
@ -53,7 +53,7 @@ LinboStartPage::LinboStartPage(LinboBackend* backend, QWidget *parent) : QWidget
|
|||
this->startActionsWidget->setFixedHeight(this->height() * 0.45);
|
||||
this->startActionsWidget->setFixedWidth(this->width());
|
||||
|
||||
QLabel* versionLabel = new QLabel(backend->getConfig()->getLinboVersion() + " - mod by Dorian Zedler");
|
||||
QLabel* versionLabel = new QLabel(backend->getConfig()->getLinboVersion() );//+ " - GUI by Dorian Zedler");
|
||||
versionLabel->setFont(QFont("Segoe UI"));
|
||||
mainLayout->addWidget(versionLabel);
|
||||
|
||||
|
@ -67,7 +67,7 @@ LinboStartPage::LinboStartPage(LinboBackend* backend, QWidget *parent) : QWidget
|
|||
powerActionsLayoutWidget->setGeometry(QRect(this->width() - (width + margins), this->height() - (height + margins), width * 1.1, height));
|
||||
|
||||
QModernPushButton* settingsActionButton = new QModernPushButton(":/svgIcons/settingsAction.svg");
|
||||
connect(settingsActionButton, SIGNAL(clicked()), legacyGui, SLOT(loginAndOpen()));
|
||||
//connect(settingsActionButton, SIGNAL(clicked()), legacyGui, SLOT(loginAndOpen()));
|
||||
this->powerActionButtons.append(settingsActionButton);
|
||||
settingsActionButton->setFixedHeight(buttonWidth);
|
||||
settingsActionButton->setFixedWidth(buttonWidth);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include <QWSServer>
|
||||
//#include <QWSServer>
|
||||
#include <QApplication>
|
||||
|
||||
#include "linbogui.h"
|
||||
|
@ -8,11 +8,11 @@ int main( int argc, char* argv[] )
|
|||
QApplication linboGuiApp( argc, argv );
|
||||
|
||||
|
||||
QWSServer* wsServer = QWSServer::instance();
|
||||
/*QWSServer* wsServer = QWSServer::instance();
|
||||
|
||||
if ( wsServer ) {
|
||||
wsServer->refresh();
|
||||
}
|
||||
}*/
|
||||
|
||||
LinboGui* linboGui = new LinboGui;
|
||||
linboGui->show();
|
||||
|
|
Reference in a new issue