compiles using Qt 5.15 with no errors

This commit is contained in:
Dorian Zedler 2020-12-01 10:03:43 +01:00
parent 7d120ccd0a
commit a3bb08af43
Signed by: dorian
GPG key ID: D3B255CB8BC7CD37
26 changed files with 292 additions and 396 deletions

View file

@ -47,7 +47,7 @@
<attribute name="title"> <attribute name="title">
<string>Imaging</string> <string>Imaging</string>
</attribute> </attribute>
<widget class="Q3ScrollView" name="imagingView" native="true"> <widget class="QScrollArea" name="imagingView">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
@ -56,11 +56,21 @@
<height>180</height> <height>180</height>
</rect> </rect>
</property> </property>
<property name="autoFillBackground"> <property name="widgetResizable">
<bool>true</bool> <bool>true</bool>
</property> </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> </widget>
<widget class="Q3ScrollView" name="partitionView" native="true"> <widget class="QScrollArea" name="partitionView">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>429</x> <x>429</x>
@ -69,9 +79,19 @@
<height>180</height> <height>180</height>
</rect> </rect>
</property> </property>
<property name="autoFillBackground"> <property name="widgetResizable">
<bool>true</bool> <bool>true</bool>
</property> </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> </widget>
</widget> </widget>
@ -406,17 +426,7 @@ p, li { white-space: pre-wrap; }
</widget> </widget>
</widget> </widget>
<layoutdefault spacing="6" margin="11"/> <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> <includes>
<include location="local">q3scrollview.h</include>
<include location="local">q3scrollview.h</include>
</includes> </includes>
<resources/> <resources/>
<connections/> <connections/>

View file

@ -1,7 +1,8 @@
<ui version="4.0" > <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>linboImageSelector</class> <class>linboImageSelector</class>
<widget class="QDialog" name="linboImageSelector" > <widget class="QDialog" name="linboImageSelector">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
@ -9,14 +10,14 @@
<height>451</height> <height>451</height>
</rect> </rect>
</property> </property>
<property name="windowTitle" > <property name="windowTitle">
<string>Image erstellen</string> <string>Image erstellen</string>
</property> </property>
<property name="whatsThis" > <property name="whatsThis">
<string/> <string/>
</property> </property>
<widget class="QLabel" name="textLabel2" > <widget class="QLabel" name="textLabel2">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>0</y> <y>0</y>
@ -24,62 +25,20 @@
<height>80</height> <height>80</height>
</rect> </rect>
</property> </property>
<property name="text" > <property name="text">
<string>Vorhandenes Image neu erstellen oder [Neues Image] zur Erstellung einer neuen Image-Datei auswählen. <string>Vorhandenes Image neu erstellen oder [Neues Image] zur Erstellung einer neuen Image-Datei auswählen.
Auswahl:</string> Auswahl:</string>
</property> </property>
<property name="alignment" > <property name="alignment">
<set>Qt::AlignVCenter</set> <set>Qt::AlignVCenter</set>
</property> </property>
<property name="wordWrap" > <property name="wordWrap">
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
<widget class="Q3ButtonGroup" name="imageButtons" > <widget class="QLabel" name="textLabel2_2">
<property name="geometry" > <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" >
<rect> <rect>
<x>10</x> <x>10</x>
<y>230</y> <y>230</y>
@ -87,15 +46,15 @@ Auswahl:</string>
<height>30</height> <height>30</height>
</rect> </rect>
</property> </property>
<property name="text" > <property name="text">
<string>Dateiname für neue Imagedatei eingeben:</string> <string>Dateiname für neue Imagedatei eingeben:</string>
</property> </property>
<property name="wordWrap" > <property name="wordWrap">
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
<widget class="QLineEdit" name="specialName" > <widget class="QLineEdit" name="specialName">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>260</y> <y>260</y>
@ -103,12 +62,12 @@ Auswahl:</string>
<height>30</height> <height>30</height>
</rect> </rect>
</property> </property>
<property name="text" > <property name="text">
<string>Neu</string> <string>Neu</string>
</property> </property>
</widget> </widget>
<widget class="QLabel" name="descriptionLabel" > <widget class="QLabel" name="descriptionLabel">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>290</y> <y>290</y>
@ -116,15 +75,15 @@ Auswahl:</string>
<height>30</height> <height>30</height>
</rect> </rect>
</property> </property>
<property name="text" > <property name="text">
<string>Informationen zum Image:</string> <string>Informationen zum Image:</string>
</property> </property>
<property name="wordWrap" > <property name="wordWrap">
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
<widget class="QPushButton" name="createButton" > <widget class="QPushButton" name="createButton">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>420</y> <y>420</y>
@ -132,15 +91,15 @@ Auswahl:</string>
<height>21</height> <height>21</height>
</rect> </rect>
</property> </property>
<property name="toolTip" > <property name="toolTip">
<string>Erstellt das ausgewählte Image&lt;br>im lokalen Cache</string> <string>Erstellt das ausgewählte Image&lt;br&gt;im lokalen Cache</string>
</property> </property>
<property name="text" > <property name="text">
<string>Erstellen</string> <string>Erstellen</string>
</property> </property>
</widget> </widget>
<widget class="QPushButton" name="createUploadButton" > <widget class="QPushButton" name="createUploadButton">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>110</x> <x>110</x>
<y>420</y> <y>420</y>
@ -148,15 +107,15 @@ Auswahl:</string>
<height>21</height> <height>21</height>
</rect> </rect>
</property> </property>
<property name="toolTip" > <property name="toolTip">
<string>Erstellt das ausgewählte Image im lokalen Cache und lädt es &lt;br> anschliessend auf den Server hoch</string> <string>Erstellt das ausgewählte Image im lokalen Cache und lädt es &lt;br&gt; anschliessend auf den Server hoch</string>
</property> </property>
<property name="text" > <property name="text">
<string>Erstellen+Hochladen</string> <string>Erstellen+Hochladen</string>
</property> </property>
</widget> </widget>
<widget class="QPushButton" name="cancelButton" > <widget class="QPushButton" name="cancelButton">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>280</x> <x>280</x>
<y>420</y> <y>420</y>
@ -164,36 +123,15 @@ Auswahl:</string>
<height>21</height> <height>21</height>
</rect> </rect>
</property> </property>
<property name="toolTip" > <property name="toolTip">
<string>Abbrechen ohne Imageerstellung</string> <string>Abbrechen ohne Imageerstellung</string>
</property> </property>
<property name="text" > <property name="text">
<string>Abbruch</string> <string>Abbruch</string>
</property> </property>
</widget> </widget>
<widget class="Q3ListBox" name="listBox" > <widget class="QTextEdit" name="infoEditor">
<property name="geometry" > <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" >
<rect> <rect>
<x>10</x> <x>10</x>
<y>320</y> <y>320</y>
@ -202,8 +140,8 @@ Auswahl:</string>
</rect> </rect>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" name="checkReboot" > <widget class="QCheckBox" name="checkReboot">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>400</y> <y>400</y>
@ -211,12 +149,12 @@ Auswahl:</string>
<height>19</height> <height>19</height>
</rect> </rect>
</property> </property>
<property name="text" > <property name="text">
<string>Reboot</string> <string>Reboot</string>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" name="checkShutdown" > <widget class="QCheckBox" name="checkShutdown">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>70</x> <x>70</x>
<y>400</y> <y>400</y>
@ -224,28 +162,66 @@ Auswahl:</string>
<height>19</height> <height>19</height>
</rect> </rect>
</property> </property>
<property name="text" > <property name="text">
<string>Shutdown</string> <string>Shutdown</string>
</property> </property>
</widget> </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>
<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> </widget>
<layoutdefault spacing="6" margin="11" /> <layoutdefault spacing="6" margin="11"/>
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction> <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> <tabstops>
<tabstop>listBox</tabstop>
<tabstop>baseRadioButton</tabstop> <tabstop>baseRadioButton</tabstop>
<tabstop>specialName</tabstop> <tabstop>specialName</tabstop>
<tabstop>createButton</tabstop> <tabstop>createButton</tabstop>

View file

@ -1,7 +1,8 @@
<ui version="4.0" > <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>linboImageUpload</class> <class>linboImageUpload</class>
<widget class="QDialog" name="linboImageUpload" > <widget class="QDialog" name="linboImageUpload">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
@ -9,32 +10,11 @@
<height>213</height> <height>213</height>
</rect> </rect>
</property> </property>
<property name="windowTitle" > <property name="windowTitle">
<string>Image Auswahl</string> <string>Image Auswahl</string>
</property> </property>
<widget class="Q3ListBox" name="listBox" > <widget class="QLabel" name="OSLabel">
<property name="geometry" > <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" >
<rect> <rect>
<x>10</x> <x>10</x>
<y>10</y> <y>10</y>
@ -42,18 +22,18 @@
<height>31</height> <height>31</height>
</rect> </rect>
</property> </property>
<property name="text" > <property name="text">
<string>Welches Image soll hochgeladen werden?</string> <string>Welches Image soll hochgeladen werden?</string>
</property> </property>
<property name="alignment" > <property name="alignment">
<set>Qt::AlignCenter</set> <set>Qt::AlignCenter</set>
</property> </property>
<property name="wordWrap" > <property name="wordWrap">
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
<widget class="QPushButton" name="cancelButton" > <widget class="QPushButton" name="cancelButton">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>230</x> <x>230</x>
<y>170</y> <y>170</y>
@ -61,15 +41,15 @@
<height>31</height> <height>31</height>
</rect> </rect>
</property> </property>
<property name="toolTip" > <property name="toolTip">
<string>Abbrechen ohne Hochladen</string> <string>Abbrechen ohne Hochladen</string>
</property> </property>
<property name="text" > <property name="text">
<string>Abbruch</string> <string>Abbruch</string>
</property> </property>
</widget> </widget>
<widget class="QPushButton" name="okButton" > <widget class="QPushButton" name="okButton">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>170</y> <y>170</y>
@ -77,15 +57,15 @@
<height>31</height> <height>31</height>
</rect> </rect>
</property> </property>
<property name="toolTip" > <property name="toolTip">
<string>Lädt das ausgewählte&lt;br>Image auf den Server hoch</string> <string>Lädt das ausgewählte&lt;br&gt;Image auf den Server hoch</string>
</property> </property>
<property name="text" > <property name="text">
<string>OK</string> <string>OK</string>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" name="checkReboot" > <widget class="QCheckBox" name="checkReboot">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>150</y> <y>150</y>
@ -93,12 +73,12 @@
<height>19</height> <height>19</height>
</rect> </rect>
</property> </property>
<property name="text" > <property name="text">
<string>Reboot</string> <string>Reboot</string>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" name="checkShutdown" > <widget class="QCheckBox" name="checkShutdown">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>70</x> <x>70</x>
<y>150</y> <y>150</y>
@ -106,20 +86,23 @@
<height>19</height> <height>19</height>
</rect> </rect>
</property> </property>
<property name="text" > <property name="text">
<string>Shutdown</string> <string>Shutdown</string>
</property> </property>
</widget> </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>
</widget> </widget>
<layoutdefault spacing="6" margin="11" /> <layoutdefault spacing="6" margin="11"/>
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction> <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
<customwidgets>
<customwidget>
<class>Q3ListBox</class>
<extends>Q3Frame</extends>
<header>q3listbox.h</header>
</customwidget>
</customwidgets>
<resources/> <resources/>
<connections/> <connections/>
</ui> </ui>

View file

@ -13,19 +13,6 @@
<property name="windowTitle"> <property name="windowTitle">
<string>Image Info</string> <string>Image Info</string>
</property> </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"> <widget class="QPushButton" name="saveButton">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
@ -42,22 +29,19 @@
<string>Speichern</string> <string>Speichern</string>
</property> </property>
</widget> </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> </widget>
<layoutdefault spacing="6" margin="11"/> <layoutdefault spacing="6" margin="11"/>
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction> <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/> <resources/>
<connections/> <connections/>
</ui> </ui>

View file

@ -1,7 +1,8 @@
<ui version="4.0" > <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>linboMulticastBox</class> <class>linboMulticastBox</class>
<widget class="QDialog" name="linboMulticastBox" > <widget class="QDialog" name="linboMulticastBox">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
@ -9,66 +10,11 @@
<height>155</height> <height>155</height>
</rect> </rect>
</property> </property>
<property name="windowTitle" > <property name="windowTitle">
<string>Update Cache</string> <string>Update Cache</string>
</property> </property>
<widget class="Q3ButtonGroup" name="updateMethodGroup" > <widget class="QPushButton" name="okButton">
<property name="geometry" > <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" >
<rect> <rect>
<x>10</x> <x>10</x>
<y>120</y> <y>120</y>
@ -76,15 +22,15 @@
<height>21</height> <height>21</height>
</rect> </rect>
</property> </property>
<property name="toolTip" > <property name="toolTip">
<string>Aktualisiert den lokalen&lt;br>Cache mit der gewählten Methode</string> <string>Aktualisiert den lokalen&lt;br&gt;Cache mit der gewählten Methode</string>
</property> </property>
<property name="text" > <property name="text">
<string>OK</string> <string>OK</string>
</property> </property>
</widget> </widget>
<widget class="QPushButton" name="cancelButton" > <widget class="QPushButton" name="cancelButton">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>130</x> <x>130</x>
<y>120</y> <y>120</y>
@ -92,15 +38,15 @@
<height>21</height> <height>21</height>
</rect> </rect>
</property> </property>
<property name="toolTip" > <property name="toolTip">
<string>Abbrechen ohne Cache-Aktualisierung</string> <string>Abbrechen ohne Cache-Aktualisierung</string>
</property> </property>
<property name="text" > <property name="text">
<string>Abbruch</string> <string>Abbruch</string>
</property> </property>
</widget> </widget>
<widget class="QCheckBox" name="checkFormat" > <widget class="QCheckBox" name="checkFormat">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>10</x> <x>10</x>
<y>100</y> <y>100</y>
@ -108,21 +54,68 @@
<height>19</height> <height>19</height>
</rect> </rect>
</property> </property>
<property name="text" > <property name="text">
<string>Cache Partition formatieren</string> <string>Cache Partition formatieren</string>
</property> </property>
</widget> </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>
<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> </widget>
<layoutdefault spacing="6" margin="11" /> <layoutdefault spacing="6" margin="11"/>
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction> <pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
<customwidgets>
<customwidget>
<class>Q3ButtonGroup</class>
<extends>Q3GroupBox</extends>
<header>Qt3Support/Q3ButtonGroup</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources/> <resources/>
<connections/> <connections/>
</ui> </ui>

View file

@ -7,7 +7,7 @@
#include <qvariant.h> #include <qvariant.h>
#include <qwidget.h> #include <qwidget.h>
#include <qdialog.h> #include <qdialog.h>
#include <q3process.h> #include <qprocess.h>
#include <qstring.h> #include <qstring.h>
#include <QTextEdit> #include <QTextEdit>
#include "linboDialog.hh" #include "linboDialog.hh"
@ -20,7 +20,7 @@ class linboCounterImpl : public QWidget, public Ui::linboCounter, public linboDi
private: private:
QTextEdit *Console; QTextEdit *Console;
Q3Process* myProcess; QProcess* myProcess;
QString line; QString line;
QWidget *myMainApp,*myParent; QWidget *myMainApp,*myParent;
QStringList myCommand; QStringList myCommand;

View file

@ -10,7 +10,6 @@
#include <qwidget.h> #include <qwidget.h>
#include <qdialog.h> #include <qdialog.h>
#include <QTextEdit> #include <QTextEdit>
#include <q3buttongroup.h>
#include <qstringlist.h> #include <qstringlist.h>
#include <qstring.h> #include <qstring.h>
#include <QProcess> #include <QProcess>

View file

@ -10,6 +10,7 @@
#include <qstringlist.h> #include <qstringlist.h>
#include <qtimer.h> #include <qtimer.h>
#include <qdialog.h> #include <qdialog.h>
#include <QPushButton>
#include "linboProgressImpl.hh" #include "linboProgressImpl.hh"
#include "linboYesNoImpl.hh" #include "linboYesNoImpl.hh"
#include "linboPasswordBoxImpl.hh" #include "linboPasswordBoxImpl.hh"

View file

@ -11,7 +11,7 @@
#include <QProcess> #include <QProcess>
#include <qstring.h> #include <qstring.h>
#include <QTextEdit> #include <QTextEdit>
#include <Qt3Support/Q3TextBrowser> #include <QTextBrowser>
#include "linboProgressImpl.hh" #include "linboProgressImpl.hh"
#include "linboDialog.hh" #include "linboDialog.hh"
#include "linboLogConsole.hh" #include "linboLogConsole.hh"

View file

@ -10,7 +10,6 @@
#include <qwidget.h> #include <qwidget.h>
#include <qdialog.h> #include <qdialog.h>
#include <qpushbutton.h> #include <qpushbutton.h>
#include <Q3TextEdit>
#include <qstringlist.h> #include <qstringlist.h>
#include <QProcess> #include <QProcess>
#include <iostream> #include <iostream>

View file

@ -26,8 +26,8 @@
#include <QBoxLayout> #include <QBoxLayout>
#include <QFont> #include <QFont>
#include <QFontDatabase> #include <QFontDatabase>
#include <QScreen>
#include "linboGUIImpl.hh"
#include "linbostartpage.h" #include "linbostartpage.h"
#include "linbobackend.h" #include "linbobackend.h"

View file

@ -43,9 +43,7 @@
#include <QButtonGroup> #include <QButtonGroup>
#include <QLabel> #include <QLabel>
#include <QProgressBar> #include <QProgressBar>
#include <QMacStyle>
#include "linboGUIImpl.hh"
#include "linbobackend.h" #include "linbobackend.h"
#include "linboosselectbutton.h" #include "linboosselectbutton.h"
#include "qmodernprogressbar.h" #include "qmodernprogressbar.h"

View file

@ -3,7 +3,6 @@ DEPENDPATH += .
INCLUDEPATH += . INCLUDEPATH += .
CFLAGS += -DQWS -static CFLAGS += -DQWS -static
QT += \ QT += \
#qt3support \
gui \ gui \
svg svg
@ -15,8 +14,7 @@ target.path = /usr/bin
INCLUDEPATH += \ INCLUDEPATH += \
headers/ \ headers/ \
headers/backend \ headers/backend
headers/legacy
# Input # Input
HEADERS += \ HEADERS += \
@ -25,22 +23,6 @@ HEADERS += \
headers/backend/linboimage.h \ headers/backend/linboimage.h \
headers/backend/linbologger.h \ headers/backend/linbologger.h \
headers/backend/linboos.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/backend/linbobackend.h \
headers/linbogui.h \ headers/linbogui.h \
headers/linboosselectbutton.h \ headers/linboosselectbutton.h \
@ -58,22 +40,6 @@ SOURCES += \
sources/backend/linboimage.cpp \ sources/backend/linboimage.cpp \
sources/backend/linbologger.cpp \ sources/backend/linbologger.cpp \
sources/backend/linboos.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/backend/linbobackend.cpp \
sources/linbogui.cpp \ sources/linbogui.cpp \
sources/linboosselectbutton.cpp \ sources/linboosselectbutton.cpp \
@ -86,22 +52,6 @@ SOURCES += \
sources/qmodernpushbuttonoverlay.cpp \ sources/qmodernpushbuttonoverlay.cpp \
sources/qmodernstackedwidget.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 += \
resources/linbo.qrc resources/linbo.qrc

View file

@ -24,8 +24,9 @@
LinboBackend::LinboBackend(QObject *parent) : QObject(parent) LinboBackend::LinboBackend(QObject *parent) : QObject(parent)
{ {
this->setState(Initializing);
this->currentOs = nullptr; this->currentOs = nullptr;
this->logger = nullptr;
this->state = Initializing;
// Init some objects // Init some objects
this->logger = new LinboLogger("/tmp/linbo.log", this); this->logger = new LinboLogger("/tmp/linbo.log", this);
@ -406,7 +407,8 @@ void LinboBackend::setState(LinboState state) {
this->state = state; this->state = state;
emit this->stateChanged(this->state); emit this->stateChanged(this->state);
this->logger->log("Linbo state changed to: " + QString::number(state), LinboLogType::LinboGuiInfo); if(this->logger != nullptr)
this->logger->log("Linbo state changed to: " + QString::number(state), LinboLogType::LinboGuiInfo);
} }
void LinboBackend::loadStartConfiguration(QString startConfFilePath) { void LinboBackend::loadStartConfiguration(QString startConfFilePath) {
@ -431,7 +433,6 @@ void LinboBackend::loadStartConfiguration(QString startConfFilePath) {
// ignore capitalization // ignore capitalization
thisLine = thisLine.toLower(); thisLine = thisLine.toLower();
// remove empty characters // remove empty characters
thisLine = thisLine.stripWhiteSpace();
thisLine = thisLine.simplified(); thisLine = thisLine.simplified();
// ignore empty lines // ignore empty lines
if(thisLine.length() == 0) if(thisLine.length() == 0)
@ -457,8 +458,8 @@ void LinboBackend::loadStartConfiguration(QString startConfFilePath) {
if(keyValueList.length() < 2) if(keyValueList.length() < 2)
continue; continue;
QString key = keyValueList[0].stripWhiteSpace(); QString key = keyValueList[0].simplified();
QString value = keyValueList[1].stripWhiteSpace(); QString value = keyValueList[1].simplified();
// ignore empty keys and values // ignore empty keys and values
if(key.isEmpty() || value.isEmpty()) if(key.isEmpty() || value.isEmpty())
@ -548,7 +549,7 @@ void LinboBackend::loadEnvironmentValues() {
this->config->setMacAddress(this->executeCommand(true, "mac").replace("\n", "")); this->config->setMacAddress(this->executeCommand(true, "mac").replace("\n", ""));
// Version // Version
this->config->setLinboVersion(this->executeCommand(true, "version").stripWhiteSpace().replace("\n", "")); this->config->setLinboVersion(this->executeCommand(true, "version").simplified().replace("\n", ""));
// hostname // hostname
this->config->setHostname(this->executeCommand(true, "hostname").replace("\n", "")); 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 == "size") partition->setSize(value.toInt());
else if(key == "id") partition->setId(value); else if(key == "id") partition->setId(value);
else if(key == "fstype") partition->setFstype(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"); QStringList trueWords("yes");
trueWords.append("true"); trueWords.append("true");
trueWords.append("enable"); trueWords.append("enable");
return trueWords.contains(value.stripWhiteSpace()); return trueWords.contains(value.simplified());
} }

View file

@ -1,10 +1,11 @@
#include "linboConsoleImpl.hh" #include "linboConsoleImpl.hh"
#include "linboProgressImpl.hh" #include "linboProgressImpl.hh"
#include "linboGUIImpl.hh" #include "linboGUIImpl.hh"
#include <q3progressbar.h> #include <QProgressBar>
#include <qapplication.h> #include <qapplication.h>
#include <QtGui> #include <QtGui>
#include <QByteArray> #include <QByteArray>
#include <QDesktopWidget>
#include "linboPushButton.hh" #include "linboPushButton.hh"

View file

@ -24,22 +24,22 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
#include "linboGUIImpl.hh" #include "linboGUIImpl.hh"
#include <signal.h> // for signal() #include <signal.h> // for signal()
#include <qpushbutton.h> #include <qpushbutton.h>
#include <q3buttongroup.h> #include <QButtonGroup>
#include <qstringlist.h> #include <qstringlist.h>
#include <qlabel.h> #include <qlabel.h>
#include <qtabwidget.h> #include <qtabwidget.h>
#include <q3listbox.h> #include <QListView>
#include <qapplication.h> #include <qapplication.h>
#include <q3scrollview.h> #include <QListView>
#include <qtooltip.h> #include <qtooltip.h>
#include <qfile.h> #include <qfile.h>
#include <q3textstream.h> #include <QTextStream>
#include <qpixmap.h> #include <qpixmap.h>
#include <qimage.h> #include <qimage.h>
#include <QBrush> #include <QBrush>
#include <qregexp.h> #include <qregexp.h>
#include <stdlib.h> #include <stdlib.h>
#include <q3stylesheet.h> //#include <q3stylesheet.h>
#include "linboProgressImpl.hh" #include "linboProgressImpl.hh"
#include "linboMulticastBoxImpl.hh" #include "linboMulticastBoxImpl.hh"
@ -53,8 +53,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
#include "linboConsoleImpl.hh" #include "linboConsoleImpl.hh"
#include <QtGui> #include <QtGui>
#include <QTextCursor> #include <QTextCursor>
#include <qwindowsystem_qws.h>
#include <QWSServer> //#include <qwindowsystem_qws.h>
//#include <QWSServer>
#define LINBO_CMD(arg) QStringList("linbo_cmd") << (arg); #define LINBO_CMD(arg) QStringList("linbo_cmd") << (arg);
@ -62,7 +63,7 @@ void read_qstring( ifstream* input,
QString& tmp ) { QString& tmp ) {
char line[500]; char line[500];
input->getline(line,500,'\n'); input->getline(line,500,'\n');
tmp = QString::fromAscii( line, -1 ).stripWhiteSpace(); tmp = QByteArray::fromHex(QString(line).remove(" ").toLocal8Bit());
} }
void read_bool( ifstream* input, void read_bool( ifstream* input,

View file

@ -1,13 +1,13 @@
#include "linboImageSelectorImpl.hh" #include "linboImageSelectorImpl.hh"
#include <unistd.h> #include <unistd.h>
#include <q3progressbar.h> #include <QProgressBar>
#include <qapplication.h> #include <qapplication.h>
#include <q3buttongroup.h> #include <QButtonGroup>
#include <q3listbox.h> #include <QListView>
#include <QtGui> #include <QtGui>
#include <qradiobutton.h> #include <qradiobutton.h>
//Added by qt3to4: //Added by qt3to4:
#include <Q3TextStream> #include <QTextStream>
#include "linboImageUploadImpl.hh" #include "linboImageUploadImpl.hh"
#include "linboPushButton.hh" #include "linboPushButton.hh"

View file

@ -1,8 +1,8 @@
#include "linboImageUploadImpl.hh" #include "linboImageUploadImpl.hh"
#include <unistd.h> #include <unistd.h>
#include <q3progressbar.h> #include <QProgressBar>
#include <qapplication.h> #include <qapplication.h>
#include <q3listbox.h> #include <QListView>
#include <QtGui> #include <QtGui>
#include "linboPushButton.hh" #include "linboPushButton.hh"
#include "linboYesNoImpl.hh" #include "linboYesNoImpl.hh"

View file

@ -2,7 +2,7 @@
#include <unistd.h> #include <unistd.h>
#include <qapplication.h> #include <qapplication.h>
#include <QtGui> #include <QtGui>
#include <q3textstream.h> #include <QTextStream>
linboInfoBrowserImpl::linboInfoBrowserImpl(QWidget* parent ) : linboDialog() linboInfoBrowserImpl::linboInfoBrowserImpl(QWidget* parent ) : linboDialog()
{ {

View file

@ -1,6 +1,6 @@
#include "linboInputBoxImpl.hh" #include "linboInputBoxImpl.hh"
#include <unistd.h> #include <unistd.h>
#include <q3progressbar.h> #include <QProgressBar>
#include <qapplication.h> #include <qapplication.h>
#include <QtGui> #include <QtGui>
#include "linboPushButton.hh" #include "linboPushButton.hh"

View file

@ -1,7 +1,7 @@
#include "linboMulticastBoxImpl.hh" #include "linboMulticastBoxImpl.hh"
#include <unistd.h> #include <unistd.h>
#include "linboProgressImpl.hh" #include "linboProgressImpl.hh"
#include <q3progressbar.h> #include <QProgressBar>
#include <qapplication.h> #include <qapplication.h>
#include <qradiobutton.h> #include <qradiobutton.h>
#include "linboPushButton.hh" #include "linboPushButton.hh"

View file

@ -1,5 +1,5 @@
#include "linboPasswordBoxImpl.hh" #include "linboPasswordBoxImpl.hh"
#include <q3process.h> #include <QProcess>
#include <iostream> #include <iostream>
#include <qmovie.h> #include <qmovie.h>
#include <qpoint.h> #include <qpoint.h>

View file

@ -1,15 +1,15 @@
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <q3progressbar.h> #include <QProgressBar>
#include <iostream> #include <iostream>
#include <qapplication.h> #include <qapplication.h>
#include <QtDebug> #include <QtDebug>
#include "linboPushButton.hh" #include "linboPushButton.hh"
linbopushbutton::linbopushbutton( QWidget* parent, linbopushbutton::linbopushbutton( QWidget* parent,
const char* name ) : QPushButton( parent, const char* name ) : QPushButton( parent )
name )
{ {
Q_UNUSED(name)
connect(this, SIGNAL(clicked()), this, SLOT(lclicked())); connect(this, SIGNAL(clicked()), this, SLOT(lclicked()));
// myprocess = new Q3Process( this ) // myprocess = new Q3Process( this )
@ -98,7 +98,7 @@ void linbopushbutton::lclicked()
//myMainApp->setEnabled( false ); //myMainApp->setEnabled( false );
myQDialog->show(); myQDialog->show();
myQDialog->raise(); myQDialog->raise();
myQDialog->setActiveWindow(); //myQDialog->setActiveWindow();
myQDialog->setEnabled( true ); myQDialog->setEnabled( true );
} }
@ -112,7 +112,7 @@ void linbopushbutton::lclicked()
progwindow->raise(); progwindow->raise();
// progwindow->setTextBrowser( Console ); // progwindow->setTextBrowser( Console );
progwindow->setActiveWindow(); //progwindow->setActiveWindow();
progwindow->setUpdatesEnabled( true ); progwindow->setUpdatesEnabled( true );
progwindow->setEnabled( true ); progwindow->setEnabled( true );
} }

View file

@ -24,10 +24,10 @@ LinboGui::LinboGui()
Qt::WindowFlags flags; Qt::WindowFlags flags;
flags = Qt::FramelessWindowHint | Qt::WindowStaysOnBottomHint; flags = Qt::FramelessWindowHint | Qt::WindowStaysOnBottomHint;
setWindowFlags( flags ); setWindowFlags( flags );
setAttribute( Qt::WA_AlwaysShowToolTips ); setAttribute(Qt::WA_AlwaysShowToolTips);
this->setGeometry(QApplication::desktop()->screenGeometry()); this->setGeometry(QGuiApplication::screens().at(0)->geometry());
this->setFixedHeight(QApplication::desktop()->screenGeometry().height()); this->setFixedHeight(QGuiApplication::screens().at(0)->geometry().height());
this->setFixedWidth(QApplication::desktop()->screenGeometry().width()); this->setFixedWidth(QGuiApplication::screens().at(0)->geometry().width());
// Load segoe font // Load segoe font
QFontDatabase::addApplicationFont(":/fonts/SegoeUI.ttf"); QFontDatabase::addApplicationFont(":/fonts/SegoeUI.ttf");

View file

@ -28,8 +28,8 @@ LinboStartPage::LinboStartPage(LinboBackend* backend, QWidget *parent) : QWidget
this->setGeometry(QRect(0,0,parent->width(), parent->height())); this->setGeometry(QRect(0,0,parent->width(), parent->height()));
// create an instance of the old GUI (as a backup) // create an instance of the old GUI (as a backup)
linboGUIImpl* legacyGui = new linboGUIImpl(this); //linboGUIImpl* legacyGui = new linboGUIImpl(this);
legacyGui->setStyleSheet( "QDialog { background: white }"); //legacyGui->setStyleSheet( "QDialog { background: white }");
// create the main layout // create the main layout
@ -53,7 +53,7 @@ LinboStartPage::LinboStartPage(LinboBackend* backend, QWidget *parent) : QWidget
this->startActionsWidget->setFixedHeight(this->height() * 0.45); this->startActionsWidget->setFixedHeight(this->height() * 0.45);
this->startActionsWidget->setFixedWidth(this->width()); 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")); versionLabel->setFont(QFont("Segoe UI"));
mainLayout->addWidget(versionLabel); 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)); powerActionsLayoutWidget->setGeometry(QRect(this->width() - (width + margins), this->height() - (height + margins), width * 1.1, height));
QModernPushButton* settingsActionButton = new QModernPushButton(":/svgIcons/settingsAction.svg"); 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); this->powerActionButtons.append(settingsActionButton);
settingsActionButton->setFixedHeight(buttonWidth); settingsActionButton->setFixedHeight(buttonWidth);
settingsActionButton->setFixedWidth(buttonWidth); settingsActionButton->setFixedWidth(buttonWidth);

View file

@ -1,4 +1,4 @@
#include <QWSServer> //#include <QWSServer>
#include <QApplication> #include <QApplication>
#include "linbogui.h" #include "linbogui.h"
@ -8,11 +8,11 @@ int main( int argc, char* argv[] )
QApplication linboGuiApp( argc, argv ); QApplication linboGuiApp( argc, argv );
QWSServer* wsServer = QWSServer::instance(); /*QWSServer* wsServer = QWSServer::instance();
if ( wsServer ) { if ( wsServer ) {
wsServer->refresh(); wsServer->refresh();
} }*/
LinboGui* linboGui = new LinboGui; LinboGui* linboGui = new LinboGui;
linboGui->show(); linboGui->show();