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
40d83890
Commit
40d83890
authored
Nov 27, 2020
by
Christoffer Ackelman
Committed by
Esteban Blanc
Dec 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Changed from checkboxes to radiobuttons for selecting mode in the PLC editor.
parent
73afcc2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
25 deletions
+23
-25
wb/lib/wb/qt/wb_foe_qt.cqt
wb/lib/wb/qt/wb_foe_qt.cqt
+19
-21
wb/lib/wb/qt/wb_foe_qt.h
wb/lib/wb/qt/wb_foe_qt.h
+4
-4
No files found.
wb/lib/wb/qt/wb_foe_qt.cqt
View file @
40d83890
...
...
@@ -436,37 +436,33 @@ void WFoeQtWidget::activate_helpclass()
// (and not directly by the user ) the event is 0.
// These callbacks are use to determine in which mode the user works:
// SG 01.05.91
void WFoeQtWidget::activate_trace_togg(
bool set
)
void WFoeQtWidget::activate_trace_togg()
{
foe->activate_trace_togg(
set
);
foe->activate_trace_togg(
true
);
}
// Callbacks from the toggle buttons under the customize entry.
void WFoeQtWidget::activate_simulate_togg(
bool set
)
void WFoeQtWidget::activate_simulate_togg()
{
foe->activate_simulate_togg(
set
);
foe->activate_simulate_togg(
true
);
}
void WFoeQtWidget::activate_view_togg(
bool set
)
void WFoeQtWidget::activate_view_togg()
{
if (sender() != foe->view_togg) {
foe->view_togg->setChecked(true);
}
set = foe->view_togg->isChecked();
foe->activate_view_togg(set);
foe->activate_view_togg(true);
}
void WFoeQtWidget::activate_edit_togg(
bool set
)
void WFoeQtWidget::activate_edit_togg()
{
if (sender() != foe->edit_togg) {
foe->edit_togg->setChecked(true);
}
set = foe->edit_togg->isChecked();
foe->activate_edit_togg(set);
foe->activate_edit_togg(true);
}
void WFoeQtWidget::valchanged_textinput()
...
...
@@ -757,7 +753,7 @@ pwr_tStatus WFoeQt::create_window(int x_top, int y_top, int width_adb,
// File Entry
QMenu* file = menu_bar->addMenu(translate_utf8("&File"));
save = addMenuItem(
toplevel, file, "Save", SLOT(activate_save()), "", "document-save");
toplevel, file, "Save", SLOT(activate_save()), "
CTRL+S
", "document-save");
// Submenu Print
QMenu* file_print = file->addMenu(translate_utf8("&Print"));
...
...
@@ -949,14 +945,16 @@ pwr_tStatus WFoeQt::create_window(int x_top, int y_top, int width_adb,
// Mode entry
QMenu* mode = menu_bar->addMenu(translate_utf8("&Mode"));
view_togg = addCheckableMenuItem(
toplevel, mode, "&View", SLOT(activate_view_togg(bool)));
edit_togg = addCheckableMenuItem(
toplevel, mode, "&Edit", SLOT(activate_edit_togg(bool)), "CTRL+E");
trace_togg = addCheckableMenuItem(
toplevel, mode, "&Trace", SLOT(activate_trace_togg(bool)));
simulate_togg = addCheckableMenuItem(
toplevel, mode, "&Simulate", SLOT(activate_simulate_togg(bool)));
QActionGroup* mode_group = new QActionGroup(toplevel);
view_togg = addMenuRadioItem(
toplevel, mode, "&View", SLOT(activate_view_togg()), mode_group);
edit_togg = addMenuRadioItem(
toplevel, mode, "&Edit", SLOT(activate_edit_togg()), mode_group);
edit_togg->setShortcut(fl("CTRL+E"));
trace_togg = addMenuRadioItem(
toplevel, mode, "&Trace", SLOT(activate_trace_togg()), mode_group);
simulate_togg = addMenuRadioItem(
toplevel, mode, "&Simulate", SLOT(activate_simulate_togg()), mode_group);
// Menu Help
QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
...
...
wb/lib/wb/qt/wb_foe_qt.h
View file @
40d83890
...
...
@@ -228,10 +228,10 @@ public slots:
void
activate_helpplc
();
void
activate_helpplclist
();
void
activate_helpclass
();
void
activate_trace_togg
(
bool
set
);
void
activate_simulate_togg
(
bool
set
);
void
activate_view_togg
(
bool
set
);
void
activate_edit_togg
(
bool
set
);
void
activate_trace_togg
();
void
activate_simulate_togg
();
void
activate_view_togg
();
void
activate_edit_togg
();
void
valchanged_textinput
();
void
popup_unmap_cb
();
...
...
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