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
993ff7af
Commit
993ff7af
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: Fixed nav in flow.
parent
40d83890
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
19 deletions
+14
-19
wb/lib/wb/qt/wb_foe_qt.cqt
wb/lib/wb/qt/wb_foe_qt.cqt
+2
-3
wb/lib/wb/qt/wb_gre_qt.cqt
wb/lib/wb/qt/wb_gre_qt.cqt
+2
-2
wb/lib/wb/qt/wb_gre_qt.h
wb/lib/wb/qt/wb_gre_qt.h
+1
-1
xtt/lib/flow/qt/flow_draw_qt.cqt
xtt/lib/flow/qt/flow_draw_qt.cqt
+8
-7
xtt/lib/ge/qt/ge_qt.cqt
xtt/lib/ge/qt/ge_qt.cqt
+1
-2
xtt/lib/glow/qt/glow_draw_qt.cqt
xtt/lib/glow/qt/glow_draw_qt.cqt
+0
-4
No files found.
wb/lib/wb/qt/wb_foe_qt.cqt
View file @
993ff7af
...
@@ -1030,7 +1030,6 @@ pwr_tStatus WFoeQt::create_window(int x_top, int y_top, int width_adb,
...
@@ -1030,7 +1030,6 @@ pwr_tStatus WFoeQt::create_window(int x_top, int y_top, int width_adb,
statusbar->addWidget(label);
statusbar->addWidget(label);
add_expanding(statusbar, textinput);
add_expanding(statusbar, textinput);
subpane = new QSplitter(Qt::Vertical);
QHBoxLayout* palbox = new QHBoxLayout();
QHBoxLayout* palbox = new QHBoxLayout();
node_palctx = new PalQt(this, "Objects", ldhsession, "PlcEditorPalette",
node_palctx = new PalQt(this, "Objects", ldhsession, "PlcEditorPalette",
&node_palette, &sts);
&node_palette, &sts);
...
@@ -1047,13 +1046,13 @@ pwr_tStatus WFoeQt::create_window(int x_top, int y_top, int width_adb,
...
@@ -1047,13 +1046,13 @@ pwr_tStatus WFoeQt::create_window(int x_top, int y_top, int width_adb,
add_expanding(palbox, con_palette);
add_expanding(palbox, con_palette);
add_expanding(palbox, nav_palette);
add_expanding(palbox, nav_palette);
subpane = new QSplitter(Qt::Vertical);
add_expanding(subpane, palbox);
add_expanding(subpane, palbox);
pane = new QSplitter(Qt::Horizontal);
pane = new QSplitter(Qt::Horizontal);
gre = new WGreQt(this, "Name");
gre = new WGreQt(this, "Name");
((WGreQt*)gre)->new_navigator(subpane);
subpane->addWidget(((WGreQt*)gre)->create_navigator());
subpane->addWidget(((WGreQt*)gre)->nav_widget);
add_expanding(pane, ((WGreQt*)gre)->form_widget);
add_expanding(pane, ((WGreQt*)gre)->form_widget);
pane->addWidget(subpane);
pane->addWidget(subpane);
...
...
wb/lib/wb/qt/wb_gre_qt.cqt
View file @
993ff7af
...
@@ -66,10 +66,10 @@ WGreQt::~WGreQt()
...
@@ -66,10 +66,10 @@ WGreQt::~WGreQt()
}
}
}
}
int WGreQt::new_navigator(QWidget* parent
)
QWidget* WGreQt::create_navigator(
)
{
{
nav_widget = flownavwidgetqt_new(flow_widget);
nav_widget = flownavwidgetqt_new(flow_widget);
return
1
;
return
nav_widget
;
}
}
int WGreQt::new_navigator_popup()
int WGreQt::new_navigator_popup()
...
...
wb/lib/wb/qt/wb_gre_qt.h
View file @
993ff7af
...
@@ -59,7 +59,7 @@ public:
...
@@ -59,7 +59,7 @@ public:
void
trace_stop
();
void
trace_stop
();
void
get_popup_position
(
int
*
x
,
int
*
y
);
void
get_popup_position
(
int
*
x
,
int
*
y
);
int
new_navigator
(
QWidget
*
parent
);
QWidget
*
create_navigator
(
);
int
new_navigator_popup
();
int
new_navigator_popup
();
private:
private:
...
...
xtt/lib/flow/qt/flow_draw_qt.cqt
View file @
993ff7af
...
@@ -728,9 +728,9 @@ int FlowDrawQt::event_handler(FlowCtx* ctx, QEvent* event, QWidget* target)
...
@@ -728,9 +728,9 @@ int FlowDrawQt::event_handler(FlowCtx* ctx, QEvent* event, QWidget* target)
case QEvent::Wheel: {
case QEvent::Wheel: {
QWheelEvent* wheelEvent = ((QWheelEvent*)event);
QWheelEvent* wheelEvent = ((QWheelEvent*)event);
if (wheelEvent->delta() > 0) {
if (wheelEvent->delta() > 0) {
sts = ctx->event_handler(flow_eEvent_ScrollUp,
0, 0
, 0, 0);
sts = ctx->event_handler(flow_eEvent_ScrollUp,
wheelEvent->x(), wheelEvent->y()
, 0, 0);
} else if (wheelEvent->delta() < 0) {
} else if (wheelEvent->delta() < 0) {
sts = ctx->event_handler(flow_eEvent_ScrollDown,
0, 0
, 0, 0);
sts = ctx->event_handler(flow_eEvent_ScrollDown,
wheelEvent->x(), wheelEvent->y()
, 0, 0);
}
}
break;
break;
}
}
...
@@ -786,18 +786,19 @@ int FlowDrawQt::event_handler(FlowCtx* ctx, QEvent* event, QWidget* target)
...
@@ -786,18 +786,19 @@ int FlowDrawQt::event_handler(FlowCtx* ctx, QEvent* event, QWidget* target)
}
}
break;
break;
}
}
case QEvent::Show: {
case QEvent::Paint:
sts = ctx->event_handler_nav(flow_eEvent_Map, 0, 0);
case QEvent::UpdateRequest: {
sts = ctx->event_handler_nav(flow_eEvent_Exposure, 0, 0);
break;
break;
}
}
case QEvent::MouseMove: {
case QEvent::MouseMove: {
Q
Point pos = QCursor::pos(
);
Q
MouseEvent* mouseEvent = ((QMouseEvent*)event
);
if (button1_pressed || button2_pressed || button3_pressed) {
if (button1_pressed || button2_pressed || button3_pressed) {
sts = ctx->event_handler_nav(
sts = ctx->event_handler_nav(
flow_eEvent_ButtonMotion,
pos.x(), pos.
y());
flow_eEvent_ButtonMotion,
mouseEvent->x(), mouseEvent->
y());
} else {
} else {
sts = ctx->event_handler_nav(
sts = ctx->event_handler_nav(
flow_eEvent_CursorMotion,
pos.x(), pos.
y());
flow_eEvent_CursorMotion,
mouseEvent->x(), mouseEvent->
y());
}
}
break;
break;
}
}
...
...
xtt/lib/ge/qt/ge_qt.cqt
View file @
993ff7af
...
@@ -1963,8 +1963,7 @@ GeQt::GeQt(void* x_parent_ctx, ldh_tSesContext x_ldhses, int x_exit_when_close,
...
@@ -1963,8 +1963,7 @@ GeQt::GeQt(void* x_parent_ctx, ldh_tSesContext x_ldhses, int x_exit_when_close,
add_expanding(vpaned, palbox);
add_expanding(vpaned, palbox);
vpaned->addWidget(colpal_main_widget);
vpaned->addWidget(colpal_main_widget);
((GraphQt*)graph)->create_navigator();
vpaned->addWidget(((GraphQt*)graph)->create_navigator());
vpaned->addWidget(((GraphQt*)graph)->nav_widget);
graph_list = new GeItemViewQt(this);
graph_list = new GeItemViewQt(this);
...
...
xtt/lib/glow/qt/glow_draw_qt.cqt
View file @
993ff7af
...
@@ -852,10 +852,6 @@ int GlowDrawQt::event_handler(QEvent* event, QWidget* target)
...
@@ -852,10 +852,6 @@ int GlowDrawQt::event_handler(QEvent* event, QWidget* target)
glow_eEvent_ButtonRelease, mouseEvent->x(), mouseEvent->y());
glow_eEvent_ButtonRelease, mouseEvent->x(), mouseEvent->y());
break;
break;
}
}
case QEvent::Show: {
sts = ctx->event_handler_nav(glow_eEvent_Exposure, 0, 0);
break;
}
case QEvent::Paint:
case QEvent::Paint:
case QEvent::UpdateRequest: {
case QEvent::UpdateRequest: {
ctx->nav_clear();
ctx->nav_clear();
...
...
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