Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
ngps
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs
gui
ngps
Commits
669e9f70
Commit
669e9f70
authored
3 months ago
by
Claudio Scafuri
Browse files
Options
Downloads
Patches
Plain Diff
Energy saving
parent
000aa168
No related branches found
No related tags found
1 merge request
!2
Energy saving
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
src/ngps.cpp
+2
-1
2 additions, 1 deletion
src/ngps.cpp
src/ngps.ui
+151
-0
151 additions, 0 deletions
src/ngps.ui
with
154 additions
and
1 deletion
.gitignore
+
1
−
0
View file @
669e9f70
...
...
@@ -28,3 +28,4 @@ src/ui_*.h
*.includes
.qmake.stash
*.pro.user
Makefile.user
This diff is collapsed.
Click to expand it.
src/ngps.cpp
+
2
−
1
View file @
669e9f70
...
...
@@ -41,7 +41,8 @@ Ngps::Ngps(CumbiaPool *cumbia_pool, QWidget *parent) :
ui
=
new
Ui
::
Ngps
;
ui
->
setupUi
(
this
,
cu_pool
,
m_ctrl_factory_pool
);
connect
(
ui
->
pushButtonModules
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
show_dialogstack
()));
//connect(ui->pushButtonModules, SIGNAL(clicked()), this , SLOT(show_dialogstack()));
ui
->
pushButtonModules
->
setVisible
(
false
);
//utill modules readout is fixed
// mloader.modules() to get the list of loaded modules
// cumbia
...
...
This diff is collapsed.
Click to expand it.
src/ngps.ui
+
151
−
0
View file @
669e9f70
...
...
@@ -99,6 +99,33 @@
</property>
</widget>
</item>
<item>
<widget
class=
"QuLabel"
name=
"quLabel_7"
>
<property
name=
"source"
>
<string>
$1/energySaving
</string>
</property>
<property
name=
"trueString"
stdset=
"0"
>
<string>
En. sav. ON
</string>
</property>
<property
name=
"falseString"
stdset=
"0"
>
<string>
En. sav. OFF
</string>
</property>
<property
name=
"trueColor"
stdset=
"0"
>
<color>
<red>
0
</red>
<green>
151
</green>
<blue>
84
</blue>
</color>
</property>
<property
name=
"falseColor"
stdset=
"0"
>
<color>
<red>
224
</red>
<green>
230
</green>
<blue>
230
</blue>
</color>
</property>
</widget>
</item>
<item>
<layout
class=
"QGridLayout"
name=
"gridLayout_2"
>
<item
row=
"0"
column=
"0"
>
...
...
@@ -418,6 +445,125 @@
</item>
</layout>
</widget>
<widget
class=
"QWidget"
name=
"energySaving"
>
<attribute
name=
"title"
>
<string>
energy saving
</string>
</attribute>
<layout
class=
"QGridLayout"
name=
"gridLayout_6"
>
<item
row=
"0"
column=
"0"
>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_2"
>
<item>
<widget
class=
"QuCheckBox"
name=
"quCheckBox"
>
<property
name=
"font"
>
<font>
<pointsize>
11
</pointsize>
</font>
</property>
<property
name=
"text"
>
<string>
energy saving
</string>
</property>
<property
name=
"source"
>
<string>
$1/energySaving
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QuButton"
name=
"quButton_8"
>
<property
name=
"font"
>
<font>
<pointsize>
11
</pointsize>
</font>
</property>
<property
name=
"text"
>
<string>
En. Saving On
</string>
</property>
<property
name=
"target"
>
<string>
$1/EnergySaving(1)
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QuButton"
name=
"quButton_9"
>
<property
name=
"font"
>
<font>
<pointsize>
11
</pointsize>
</font>
</property>
<property
name=
"text"
>
<string>
En. Saving Off
</string>
</property>
<property
name=
"target"
>
<string>
$1/EnergySaving(0)
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"Line"
name=
"line"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
</widget>
</item>
<item>
<widget
class=
"QuButton"
name=
"quButton_6"
>
<property
name=
"font"
>
<font>
<pointsize>
11
</pointsize>
</font>
</property>
<property
name=
"text"
>
<string>
RUN
</string>
</property>
<property
name=
"target"
>
<string>
$1-
>
run
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QuButton"
name=
"quButton_7"
>
<property
name=
"font"
>
<font>
<pointsize>
11
</pointsize>
</font>
</property>
<property
name=
"text"
>
<string>
STOP
</string>
</property>
<property
name=
"target"
>
<string>
$1-
>
stop
</string>
</property>
</widget>
</item>
</layout>
</item>
<item
row=
"0"
column=
"1"
>
<spacer
name=
"horizontalSpacer_7"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
244
</width>
<height>
20
</height>
</size>
</property>
</spacer>
</item>
<item
row=
"1"
column=
"0"
>
<spacer
name=
"verticalSpacer_2"
>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
20
</width>
<height>
311
</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
...
...
@@ -459,6 +605,11 @@
<extends>
EApplyNumeric
</extends>
<header>
quapplynumeric.h
</header>
</customwidget>
<customwidget>
<class>
QuCheckBox
</class>
<extends>
QCheckBox
</extends>
<header>
qucheckbox.h
</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment