Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
user-client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
90e416ed
authored
Jun 12, 2017
by
Belákovics Ádám
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added all info display from lib about VM
parent
36d3dd60
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
353 additions
and
273 deletions
+353
-273
mainwindow.cpp
+10
-0
mainwindow.ui
+343
-273
No files found.
mainwindow.cpp
View file @
90e416ed
...
...
@@ -73,12 +73,22 @@ void MainWindow::loadVMData(std::string id){
ComputeData
data
=
myController
.
getDataByID
(
id
.
c_str
());
currentSelectedVM
=
data
;
ui
->
lVMName
->
setText
(
data
.
name
.
c_str
());
//--- for displaying initial hint
QFont
font
=
ui
->
lVMName
->
font
();
font
.
setPointSize
(
20
);
font
.
setBold
(
false
);
ui
->
lVMName
->
setFont
(
font
);
//---
ui
->
lArch
->
setText
(
data
.
architecture
.
c_str
());
ui
->
lCPU
->
setText
(
std
::
to_string
(
data
.
cpu
).
c_str
());
ui
->
lMemory
->
setText
(
std
::
to_string
(
data
.
memory
).
c_str
());
ui
->
lCores
->
setText
(
std
::
to_string
(
data
.
cores
).
c_str
());
ui
->
lHostname
->
setText
((
data
.
hostname
+
":"
+
std
::
to_string
(
data
.
port
)).
c_str
());
ui
->
lProtocol
->
setText
(
data
.
protocol
.
c_str
());
ui
->
lUsernameVM
->
setText
(
data
.
username
.
c_str
());
ui
->
lPasswordVM
->
setText
(
data
.
password
.
c_str
());
ui
->
lSuspended
->
setText
(
data
.
leaseSuspend
.
c_str
());
ui
->
lRemoved
->
setText
(
data
.
leaseRemoved
.
c_str
());
}
...
...
mainwindow.ui
View file @
90e416ed
...
...
@@ -432,279 +432,6 @@
</property>
</widget>
</item>
<item
row=
"0"
column=
"2"
rowspan=
"2"
>
<layout
class=
"QGridLayout"
name=
"glVMinfo"
>
<item
row=
"1"
column=
"1"
colspan=
"2"
>
<widget
class=
"Line"
name=
"line"
>
<property
name=
"palette"
>
<palette>
<active>
<colorrole
role=
"Base"
>
<brush
brushstyle=
"SolidPattern"
>
<color
alpha=
"255"
>
<red>
255
</red>
<green>
255
</green>
<blue>
255
</blue>
</color>
</brush>
</colorrole>
</active>
<inactive>
<colorrole
role=
"Base"
>
<brush
brushstyle=
"SolidPattern"
>
<color
alpha=
"255"
>
<red>
255
</red>
<green>
255
</green>
<blue>
255
</blue>
</color>
</brush>
</colorrole>
</inactive>
<disabled>
<colorrole
role=
"Base"
>
<brush
brushstyle=
"SolidPattern"
>
<color
alpha=
"255"
>
<red>
240
</red>
<green>
240
</green>
<blue>
240
</blue>
</color>
</brush>
</colorrole>
</disabled>
</palette>
</property>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
</widget>
</item>
<item
row=
"0"
column=
"3"
>
<widget
class=
"QGroupBox"
name=
"groupBox_2"
>
<property
name=
"title"
>
<string/>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout_5"
>
<item
row=
"1"
column=
"1"
>
<widget
class=
"QLabel"
name=
"lStatus"
>
<property
name=
"font"
>
<font>
<pointsize>
15
</pointsize>
<weight>
75
</weight>
<bold>
true
</bold>
</font>
</property>
<property
name=
"text"
>
<string/>
</property>
</widget>
</item>
<item
row=
"1"
column=
"0"
>
<widget
class=
"QLabel"
name=
"lStatusTag"
>
<property
name=
"font"
>
<font>
<pointsize>
15
</pointsize>
<weight>
50
</weight>
<bold>
false
</bold>
</font>
</property>
<property
name=
"text"
>
<string>
Status:
</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item
row=
"4"
column=
"1"
>
<widget
class=
"QGroupBox"
name=
"groupBox_4"
>
<property
name=
"title"
>
<string>
Lease
</string>
</property>
</widget>
</item>
<item
row=
"2"
column=
"1"
colspan=
"3"
>
<widget
class=
"QGroupBox"
name=
"groupBox_3"
>
<property
name=
"title"
>
<string>
Credentials
</string>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout_8"
>
<item
row=
"2"
column=
"1"
>
<widget
class=
"QLineEdit"
name=
"lPasswordVM"
>
<property
name=
"palette"
>
<palette>
<active>
<colorrole
role=
"Base"
>
<brush
brushstyle=
"SolidPattern"
>
<color
alpha=
"255"
>
<red>
255
</red>
<green>
255
</green>
<blue>
255
</blue>
</color>
</brush>
</colorrole>
</active>
<inactive>
<colorrole
role=
"Base"
>
<brush
brushstyle=
"SolidPattern"
>
<color
alpha=
"255"
>
<red>
255
</red>
<green>
255
</green>
<blue>
255
</blue>
</color>
</brush>
</colorrole>
</inactive>
<disabled>
<colorrole
role=
"Base"
>
<brush
brushstyle=
"SolidPattern"
>
<color
alpha=
"255"
>
<red>
240
</red>
<green>
240
</green>
<blue>
240
</blue>
</color>
</brush>
</colorrole>
</disabled>
</palette>
</property>
<property
name=
"echoMode"
>
<enum>
QLineEdit::Password
</enum>
</property>
<property
name=
"readOnly"
>
<bool>
true
</bool>
</property>
</widget>
</item>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QLabel"
name=
"lHostname"
>
<property
name=
"text"
>
<string/>
</property>
</widget>
</item>
<item
row=
"2"
column=
"2"
>
<widget
class=
"QPushButton"
name=
"bShowPassword"
>
<property
name=
"text"
>
<string>
Show
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"0"
>
<widget
class=
"QLabel"
name=
"lUsernameTag"
>
<property
name=
"text"
>
<string>
Username:
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"1"
>
<widget
class=
"QLabel"
name=
"lUsernameVM"
>
<property
name=
"text"
>
<string/>
</property>
</widget>
</item>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"lHastnameTag"
>
<property
name=
"text"
>
<string>
Hostname:
</string>
</property>
</widget>
</item>
<item
row=
"2"
column=
"0"
>
<widget
class=
"QLabel"
name=
"lPasswordTag"
>
<property
name=
"text"
>
<string>
Password:
</string>
</property>
</widget>
</item>
<item
row=
"2"
column=
"3"
>
<widget
class=
"QPushButton"
name=
"bConnect"
>
<property
name=
"text"
>
<string>
Connect
</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item
row=
"4"
column=
"2"
colspan=
"2"
>
<widget
class=
"QGroupBox"
name=
"groupBox"
>
<property
name=
"title"
>
<string>
Hardware
</string>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout_7"
>
<item
row=
"4"
column=
"0"
>
<widget
class=
"QLabel"
name=
"lCoresTag"
>
<property
name=
"text"
>
<string>
Cores:
</string>
</property>
</widget>
</item>
<item
row=
"2"
column=
"0"
>
<widget
class=
"QLabel"
name=
"lCPUTag"
>
<property
name=
"text"
>
<string>
CPU:
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"lMemoryTag"
>
<property
name=
"text"
>
<string>
Memory:
</string>
</property>
</widget>
</item>
<item
row=
"2"
column=
"1"
>
<widget
class=
"QLabel"
name=
"lCPU"
>
<property
name=
"text"
>
<string/>
</property>
</widget>
</item>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QLabel"
name=
"lMemory"
>
<property
name=
"text"
>
<string/>
</property>
</widget>
</item>
<item
row=
"4"
column=
"1"
>
<widget
class=
"QLabel"
name=
"lCores"
>
<property
name=
"text"
>
<string/>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item
row=
"0"
column=
"1"
colspan=
"2"
>
<widget
class=
"QLabel"
name=
"lVMName"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Preferred"
vsizetype=
"MinimumExpanding"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
16777215
</width>
<height>
72
</height>
</size>
</property>
<property
name=
"font"
>
<font>
<family>
Sans Serif
</family>
<pointsize>
20
</pointsize>
</font>
</property>
<property
name=
"text"
>
<string/>
</property>
</widget>
</item>
</layout>
</item>
<item
row=
"2"
column=
"2"
>
<spacer
name=
"horizontalSpacer_3"
>
<property
name=
"orientation"
>
...
...
@@ -765,6 +492,349 @@
</property>
</widget>
</item>
<item
row=
"0"
column=
"2"
>
<layout
class=
"QGridLayout"
name=
"glVMTab"
>
<item
row=
"0"
column=
"0"
>
<layout
class=
"QGridLayout"
name=
"glVMinfo"
>
<item
row=
"1"
column=
"1"
colspan=
"2"
>
<widget
class=
"Line"
name=
"line"
>
<property
name=
"palette"
>
<palette>
<active>
<colorrole
role=
"Base"
>
<brush
brushstyle=
"SolidPattern"
>
<color
alpha=
"255"
>
<red>
255
</red>
<green>
255
</green>
<blue>
255
</blue>
</color>
</brush>
</colorrole>
</active>
<inactive>
<colorrole
role=
"Base"
>
<brush
brushstyle=
"SolidPattern"
>
<color
alpha=
"255"
>
<red>
255
</red>
<green>
255
</green>
<blue>
255
</blue>
</color>
</brush>
</colorrole>
</inactive>
<disabled>
<colorrole
role=
"Base"
>
<brush
brushstyle=
"SolidPattern"
>
<color
alpha=
"255"
>
<red>
240
</red>
<green>
240
</green>
<blue>
240
</blue>
</color>
</brush>
</colorrole>
</disabled>
</palette>
</property>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
</widget>
</item>
<item
row=
"0"
column=
"3"
>
<widget
class=
"QGroupBox"
name=
"gbStatus"
>
<property
name=
"title"
>
<string/>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout_5"
>
<item
row=
"1"
column=
"1"
>
<widget
class=
"QLabel"
name=
"lStatus"
>
<property
name=
"font"
>
<font>
<pointsize>
15
</pointsize>
<weight>
75
</weight>
<bold>
true
</bold>
</font>
</property>
<property
name=
"text"
>
<string/>
</property>
</widget>
</item>
<item
row=
"1"
column=
"0"
>
<widget
class=
"QLabel"
name=
"lStatusTag"
>
<property
name=
"font"
>
<font>
<pointsize>
15
</pointsize>
<weight>
50
</weight>
<bold>
false
</bold>
</font>
</property>
<property
name=
"text"
>
<string>
Status:
</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item
row=
"4"
column=
"1"
>
<widget
class=
"QGroupBox"
name=
"gbLease"
>
<property
name=
"title"
>
<string>
Lease
</string>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout_3"
>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QLabel"
name=
"lSuspended"
>
<property
name=
"text"
>
<string/>
</property>
</widget>
</item>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"lSuspendedTag"
>
<property
name=
"text"
>
<string>
Suspended:
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"0"
>
<widget
class=
"QLabel"
name=
"lRemovedTag"
>
<property
name=
"text"
>
<string>
Removed:
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"1"
>
<widget
class=
"QLabel"
name=
"lRemoved"
>
<property
name=
"text"
>
<string/>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item
row=
"2"
column=
"1"
colspan=
"3"
>
<widget
class=
"QGroupBox"
name=
"gbCredentials"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Preferred"
vsizetype=
"Preferred"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"title"
>
<string>
Credentials
</string>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout_8"
>
<item
row=
"3"
column=
"1"
>
<widget
class=
"QLineEdit"
name=
"lPasswordVM"
>
<property
name=
"palette"
>
<palette>
<active>
<colorrole
role=
"Base"
>
<brush
brushstyle=
"SolidPattern"
>
<color
alpha=
"255"
>
<red>
255
</red>
<green>
255
</green>
<blue>
255
</blue>
</color>
</brush>
</colorrole>
</active>
<inactive>
<colorrole
role=
"Base"
>
<brush
brushstyle=
"SolidPattern"
>
<color
alpha=
"255"
>
<red>
255
</red>
<green>
255
</green>
<blue>
255
</blue>
</color>
</brush>
</colorrole>
</inactive>
<disabled>
<colorrole
role=
"Base"
>
<brush
brushstyle=
"SolidPattern"
>
<color
alpha=
"255"
>
<red>
240
</red>
<green>
240
</green>
<blue>
240
</blue>
</color>
</brush>
</colorrole>
</disabled>
</palette>
</property>
<property
name=
"echoMode"
>
<enum>
QLineEdit::Password
</enum>
</property>
<property
name=
"readOnly"
>
<bool>
true
</bool>
</property>
</widget>
</item>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QLabel"
name=
"lHostname"
>
<property
name=
"text"
>
<string/>
</property>
</widget>
</item>
<item
row=
"3"
column=
"2"
>
<widget
class=
"QPushButton"
name=
"bShowPassword"
>
<property
name=
"text"
>
<string>
Show
</string>
</property>
</widget>
</item>
<item
row=
"2"
column=
"0"
>
<widget
class=
"QLabel"
name=
"lUsernameTag"
>
<property
name=
"text"
>
<string>
Username:
</string>
</property>
</widget>
</item>
<item
row=
"2"
column=
"1"
>
<widget
class=
"QLabel"
name=
"lUsernameVM"
>
<property
name=
"text"
>
<string/>
</property>
</widget>
</item>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"lHastnameTag"
>
<property
name=
"text"
>
<string>
Hostname:
</string>
</property>
</widget>
</item>
<item
row=
"3"
column=
"0"
>
<widget
class=
"QLabel"
name=
"lPasswordTag"
>
<property
name=
"text"
>
<string>
Password:
</string>
</property>
</widget>
</item>
<item
row=
"3"
column=
"3"
>
<widget
class=
"QPushButton"
name=
"bConnect"
>
<property
name=
"text"
>
<string>
Connect
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"0"
>
<widget
class=
"QLabel"
name=
"lProtocolTag"
>
<property
name=
"text"
>
<string>
Protocol:
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"1"
>
<widget
class=
"QLabel"
name=
"lProtocol"
>
<property
name=
"text"
>
<string/>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item
row=
"4"
column=
"2"
colspan=
"2"
>
<widget
class=
"QGroupBox"
name=
"gbResources"
>
<property
name=
"title"
>
<string>
Resources
</string>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout_7"
>
<item
row=
"5"
column=
"0"
>
<widget
class=
"QLabel"
name=
"lCoresTag"
>
<property
name=
"text"
>
<string>
Cores:
</string>
</property>
</widget>
</item>
<item
row=
"3"
column=
"0"
>
<widget
class=
"QLabel"
name=
"lCPUTag"
>
<property
name=
"text"
>
<string>
CPU:
</string>
</property>
</widget>
</item>
<item
row=
"5"
column=
"1"
>
<widget
class=
"QLabel"
name=
"lCores"
>
<property
name=
"text"
>
<string/>
</property>
</widget>
</item>
<item
row=
"0"
column=
"1"
>
<widget
class=
"QLabel"
name=
"lMemory"
>
<property
name=
"text"
>
<string/>
</property>
</widget>
</item>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"lMemoryTag"
>
<property
name=
"text"
>
<string>
Memory:
</string>
</property>
</widget>
</item>
<item
row=
"3"
column=
"1"
>
<widget
class=
"QLabel"
name=
"lCPU"
>
<property
name=
"text"
>
<string/>
</property>
</widget>
</item>
<item
row=
"1"
column=
"0"
>
<widget
class=
"QLabel"
name=
"lArchTag"
>
<property
name=
"text"
>
<string>
Architecture:
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"1"
>
<widget
class=
"QLabel"
name=
"lArch"
>
<property
name=
"text"
>
<string/>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item
row=
"0"
column=
"1"
colspan=
"2"
>
<widget
class=
"QLabel"
name=
"lVMName"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Preferred"
vsizetype=
"MinimumExpanding"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"maximumSize"
>
<size>
<width>
16777215
</width>
<height>
72
</height>
</size>
</property>
<property
name=
"font"
>
<font>
<family>
Sans Serif
</family>
<pointsize>
11
</pointsize>
<weight>
75
</weight>
<bold>
true
</bold>
</font>
</property>
<property
name=
"text"
>
<string>
Choose a virtual machine from the list for additional information.
</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
<widget
class=
"QWidget"
name=
"tTemplate"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment