Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
85c4da09
Commit
85c4da09
authored
Nov 08, 2018
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Fixed style of xtt_hist widget.
parent
ffe2fc6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
32 deletions
+33
-32
xtt/lib/xtt/qt/xtt_hist_qt.cqt
xtt/lib/xtt/qt/xtt_hist_qt.cqt
+33
-32
No files found.
xtt/lib/xtt/qt/xtt_hist_qt.cqt
View file @
85c4da09
...
...
@@ -67,7 +67,7 @@ HistQt::HistQt(void* hist_parent_ctx, QWidget* hist_parent_wid, char* hist_name,
pwr_tAttrRef* arp, pwr_tStatus* status)
: Hist(hist_parent_ctx, hist_name, arp, status)
{
const int hist_width =
800
;
const int hist_width =
1335
;
const int hist_height = 700;
// shall be MessageHandler.EventLogSize
...
...
@@ -160,29 +160,29 @@ HistQt::HistQt(void* hist_parent_ctx, QWidget* hist_parent_wid, char* hist_name,
sea_type_label->setFixedWidth(120);
info_toggle_w = new QCheckBox(translate_utf8("Info"));
info_toggle_w->setFixedWidth(1
2
0);
info_toggle_w->setFixedWidth(1
1
0);
infosuccess_toggle_w = new QCheckBox(translate_utf8("InfoSuccess"));
infosuccess_toggle_w->setFixedWidth(1
2
0);
infosuccess_toggle_w->setFixedWidth(1
1
0);
alarm_toggle_w = new QCheckBox(translate_utf8("Alarm"));
alarm_toggle_w->setFixedWidth(1
2
0);
alarm_toggle_w->setFixedWidth(1
1
0);
mnt_alarm_toggle_w = new QCheckBox(translate_utf8("MaintenanceAlarm"));
mnt_alarm_toggle_w->setFixedWidth(1
2
0);
mnt_alarm_toggle_w->setFixedWidth(1
1
0);
sys_alarm_toggle_w = new QCheckBox(translate_utf8("SystemAlarm"));
sys_alarm_toggle_w->setFixedWidth(1
2
0);
sys_alarm_toggle_w->setFixedWidth(1
1
0);
user_alarm1_toggle_w = new QCheckBox(translate_utf8("UserAlarm1"));
user_alarm1_toggle_w->setFixedWidth(1
2
0);
user_alarm1_toggle_w->setFixedWidth(1
1
0);
user_alarm2_toggle_w = new QCheckBox(translate_utf8("UserAlarm2"));
user_alarm2_toggle_w->setFixedWidth(1
2
0);
user_alarm2_toggle_w->setFixedWidth(1
1
0);
user_alarm3_toggle_w = new QCheckBox(translate_utf8("UserAlarm3"));
user_alarm3_toggle_w->setFixedWidth(1
2
0);
user_alarm3_toggle_w->setFixedWidth(1
1
0);
user_alarm4_toggle_w = new QCheckBox(translate_utf8("UserAlarm4"));
user_alarm4_toggle_w->setFixedWidth(1
2
0);
user_alarm4_toggle_w->setFixedWidth(1
1
0);
ret_toggle_w = new QCheckBox(translate_utf8("Return"));
ret_toggle_w->setFixedWidth(1
2
0);
ret_toggle_w->setFixedWidth(1
1
0);
ack_toggle_w = new QCheckBox(translate_utf8("Ack"));
ack_toggle_w->setFixedWidth(1
2
0);
ack_toggle_w->setFixedWidth(1
1
0);
Q
HBoxLayout* sea_typebox = new QHBoxLayout
();
Q
ToolBar* sea_typebox = new QToolBar
();
sea_typebox->addWidget(sea_type_label);
sea_typebox->addWidget(info_toggle_w);
sea_typebox->addWidget(infosuccess_toggle_w);
...
...
@@ -201,15 +201,15 @@ HistQt::HistQt(void* hist_parent_ctx, QWidget* hist_parent_wid, char* hist_name,
sea_prio_label->setFixedWidth(120);
prioA_toggle_w = new QCheckBox(translate_utf8("A-Alarm"));
prioA_toggle_w->setFixedWidth(1
2
0);
prioA_toggle_w->setFixedWidth(1
1
0);
prioB_toggle_w = new QCheckBox(translate_utf8("B-Alarm"));
prioB_toggle_w->setFixedWidth(1
2
0);
prioB_toggle_w->setFixedWidth(1
1
0);
prioC_toggle_w = new QCheckBox(translate_utf8("C-Alarm"));
prioC_toggle_w->setFixedWidth(1
2
0);
prioC_toggle_w->setFixedWidth(1
1
0);
prioD_toggle_w = new QCheckBox(translate_utf8("D-Alarm"));
prioD_toggle_w->setFixedWidth(1
2
0);
prioD_toggle_w->setFixedWidth(1
1
0);
Q
HBoxLayout* sea_priobox = new QHBoxLayout
();
Q
ToolBar* sea_priobox = new QToolBar
();
sea_priobox->addWidget(sea_prio_label);
sea_priobox->addWidget(prioA_toggle_w);
sea_priobox->addWidget(prioB_toggle_w);
...
...
@@ -221,32 +221,33 @@ HistQt::HistQt(void* hist_parent_ctx, QWidget* hist_parent_wid, char* hist_name,
sea_eventname_label->setFixedWidth(120);
event_name_entry_w = new QLineEdit();
Q
HBoxLayout* sea_eventnamebox = new QHBoxLayout
();
Q
ToolBar* sea_eventnamebox = new QToolBar
();
sea_eventnamebox->addWidget(sea_eventname_label);
add_expanding(sea_eventnamebox, event_name_entry_w);
event_name_entry_w->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
sea_eventnamebox->addWidget(event_name_entry_w);
// Event text box
QLabel* sea_eventtext_label = new QLabel(translate_utf8("Event text"));
sea_eventtext_label->setFixedWidth(120);
event_text_entry_w = new QLineEdit();
Q
HBoxLayout* sea_eventtextbox = new QHBoxLayout
();
Q
ToolBar* sea_eventtextbox = new QToolBar
();
sea_eventtextbox->addWidget(sea_eventtext_label);
add_expanding(sea_eventtextbox, event_text_entry_w);
event_text_entry_w->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
sea_eventtextbox->addWidget(event_text_entry_w);
// Number of events box
QLabel* sea_numevents_label = new QLabel(translate_utf8("Number of Events:"));
sea_numevents_label->setFixedWidth(140);
QLabel* sea_numevents_label = new QLabel(translate_utf8("Number of Events: "));
nrofevents_string_lbl_w = new QLabel("");
QPushButton* sea_search_button = new QPushButton(translate_utf8("Search"));
sea_search_button->setFixedSize(80, 25);
QObject::connect(
sea_search_button, SIGNAL(clicked()), toplevel, SLOT(ok_btn()));
Q
HBoxLayout* sea_numeventsbox = new QHBoxLayout
();
Q
ToolBar* sea_numeventsbox = new QToolBar
();
sea_numeventsbox->addWidget(sea_numevents_label);
add_expanding(sea_numeventsbox, nrofevents_string_lbl_w);
nrofevents_string_lbl_w->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
sea_numeventsbox->addWidget(nrofevents_string_lbl_w);
sea_numeventsbox->addWidget(sea_search_button);
// Searchcondition box 1
...
...
@@ -267,12 +268,12 @@ HistQt::HistQt(void* hist_parent_ctx, QWidget* hist_parent_wid, char* hist_name,
QVBoxLayout* search_vbox_layout = new QVBoxLayout();
search_vbox_layout->addWidget(sea_timebox);
search_vbox_layout->add
Layou
t(sea_typebox);
search_vbox_layout->add
Layou
t(sea_priobox);
search_vbox_layout->add
Layou
t(sea_eventnamebox);
search_vbox_layout->add
Layou
t(sea_eventtextbox);
search_vbox_layout->add
Widge
t(sea_typebox);
search_vbox_layout->add
Widge
t(sea_priobox);
search_vbox_layout->add
Widge
t(sea_eventnamebox);
search_vbox_layout->add
Widge
t(sea_eventtextbox);
search_vbox_layout->addWidget(separator(QFrame::HLine));
search_vbox_layout->add
Layou
t(sea_numeventsbox);
search_vbox_layout->add
Widge
t(sea_numeventsbox);
search_vbox_layout->addWidget(sea_stringframe);
search_vbox = layout_to_widget(search_vbox_layout);
...
...
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