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
dded2fc9
Commit
dded2fc9
authored
Dec 05, 2019
by
pwrd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ge window objects, dirty wasn't reset
parent
b987fdf8
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
3 deletions
+20
-3
xtt/lib/glow/gtk/glow_draw_gtk.cpp
xtt/lib/glow/gtk/glow_draw_gtk.cpp
+2
-2
xtt/lib/glow/qt/glow_scroll_widget_qt.cqt
xtt/lib/glow/qt/glow_scroll_widget_qt.cqt
+1
-1
xtt/lib/glow/src/glow_ctx.h
xtt/lib/glow/src/glow_ctx.h
+1
-0
xtt/lib/glow/src/glow_growctx.cpp
xtt/lib/glow/src/glow_growctx.cpp
+13
-0
xtt/lib/glow/src/glow_growctx.h
xtt/lib/glow/src/glow_growctx.h
+2
-0
xtt/lib/glow/src/glow_growwindow.h
xtt/lib/glow/src/glow_growwindow.h
+1
-0
No files found.
xtt/lib/glow/gtk/glow_draw_gtk.cpp
View file @
dded2fc9
...
@@ -1025,7 +1025,7 @@ void GlowDrawGtk::event_handler(GdkEvent event)
...
@@ -1025,7 +1025,7 @@ void GlowDrawGtk::event_handler(GdkEvent event)
event
.
expose
.
area
.
x
+
event
.
expose
.
area
.
width
,
event
.
expose
.
area
.
x
+
event
.
expose
.
area
.
width
,
event
.
expose
.
area
.
y
+
event
.
expose
.
area
.
height
);
event
.
expose
.
area
.
y
+
event
.
expose
.
area
.
height
);
end
();
end
();
ctx
->
is_dirty
=
0
;
ctx
->
reset_dirty
()
;
break
;
break
;
case
GDK_VISIBILITY_NOTIFY
:
case
GDK_VISIBILITY_NOTIFY
:
switch
(
event
.
visibility
.
state
)
{
switch
(
event
.
visibility
.
state
)
{
...
@@ -1183,7 +1183,7 @@ void GlowDrawGtk::event_handler(GdkEvent event)
...
@@ -1183,7 +1183,7 @@ void GlowDrawGtk::event_handler(GdkEvent event)
event
.
expose
.
area
.
x
+
event
.
expose
.
area
.
width
,
event
.
expose
.
area
.
x
+
event
.
expose
.
area
.
width
,
event
.
expose
.
area
.
y
+
event
.
expose
.
area
.
height
);
event
.
expose
.
area
.
y
+
event
.
expose
.
area
.
height
);
end
();
end
();
ctx
->
is_dirty
=
0
;
ctx
->
reset_dirty
()
;
break
;
break
;
case
GDK_MOTION_NOTIFY
:
case
GDK_MOTION_NOTIFY
:
if
(
event
.
motion
.
is_hint
)
{
if
(
event
.
motion
.
is_hint
)
{
...
...
xtt/lib/glow/qt/glow_scroll_widget_qt.cqt
View file @
dded2fc9
...
@@ -219,7 +219,7 @@ void QtScrollWidgetGlow::paintEvent(QPaintEvent* event)
...
@@ -219,7 +219,7 @@ void QtScrollWidgetGlow::paintEvent(QPaintEvent* event)
ctx->draw(&ctx->navw, r.x(), r.y(), r.x() + r.width(), r.y() + r.height());
ctx->draw(&ctx->navw, r.x(), r.y(), r.x() + r.width(), r.y() + r.height());
draw_ctx->end();
draw_ctx->end();
}
}
ctx->
is_dirty = 0
;
ctx->
reset_dirty()
;
}
}
void QtScrollWidgetGlow::closeEvent(QCloseEvent* event)
void QtScrollWidgetGlow::closeEvent(QCloseEvent* event)
...
...
xtt/lib/glow/src/glow_ctx.h
View file @
dded2fc9
...
@@ -636,6 +636,7 @@ public:
...
@@ -636,6 +636,7 @@ public:
//! Mark that window needs to be redrawn.
//! Mark that window needs to be redrawn.
void
set_dirty
();
void
set_dirty
();
virtual
void
reset_dirty
()
{
is_dirty
=
0
;}
int
is_dirty
;
//!< Defered redraw is active.
int
is_dirty
;
//!< Defered redraw is active.
GlowArray
a_nc
;
//!< Array of nodeclasses.
GlowArray
a_nc
;
//!< Array of nodeclasses.
...
...
xtt/lib/glow/src/glow_growctx.cpp
View file @
dded2fc9
...
@@ -4535,3 +4535,16 @@ int GrowCtx::find_by_name(const char* name, GlowArrayElem** element)
...
@@ -4535,3 +4535,16 @@ int GrowCtx::find_by_name(const char* name, GlowArrayElem** element)
->
window_ctx
->
find_by_name
(
&
name
[
len
+
1
],
element
);
->
window_ctx
->
find_by_name
(
&
name
[
len
+
1
],
element
);
}
}
}
}
void
GrowCtx
::
reset_dirty
()
{
is_dirty
=
0
;
if
(
has_subwindows
)
{
for
(
int
i
=
0
;
i
<
a
.
a_size
;
i
++
)
{
if
(
a
[
i
]
->
type
()
==
glow_eObjectType_GrowWindow
||
a
[
i
]
->
type
()
==
glow_eObjectType_GrowFolder
)
{
((
GrowWindow
*
)
a
[
i
])
->
reset_dirty
();
}
}
}
}
xtt/lib/glow/src/glow_growctx.h
View file @
dded2fc9
...
@@ -1098,6 +1098,8 @@ public:
...
@@ -1098,6 +1098,8 @@ public:
glow_eTextCoding
text_coding
;
//!< Text coding
glow_eTextCoding
text_coding
;
//!< Text coding
int
recursive_trace
;
//!< Subgraph recursive trace
int
recursive_trace
;
//!< Subgraph recursive trace
glow_eEditSetMode
edit_set_mode
;
//!< Special edit mode
glow_eEditSetMode
edit_set_mode
;
//!< Special edit mode
void
reset_dirty
();
};
};
void
grow_auto_scrolling
(
GrowCtx
*
ctx
);
void
grow_auto_scrolling
(
GrowCtx
*
ctx
);
...
...
xtt/lib/glow/src/glow_growwindow.h
View file @
dded2fc9
...
@@ -314,6 +314,7 @@ public:
...
@@ -314,6 +314,7 @@ public:
glow_eDirection
*
direction
);
glow_eDirection
*
direction
);
void
set_input_focus
(
int
focus
,
glow_eEvent
event
);
void
set_input_focus
(
int
focus
,
glow_eEvent
event
);
int
set_source
(
char
*
source
,
char
*
new_owner
);
int
set_source
(
char
*
source
,
char
*
new_owner
);
void
reset_dirty
()
{
window_ctx
->
reset_dirty
();}
static
void
v_value_changed_cb
(
void
*
o
,
double
value
);
static
void
v_value_changed_cb
(
void
*
o
,
double
value
);
static
void
h_value_changed_cb
(
void
*
o
,
double
value
);
static
void
h_value_changed_cb
(
void
*
o
,
double
value
);
...
...
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