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
a034befd
Commit
a034befd
authored
Aug 04, 2009
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolution buttons disabled in some curve windows
parent
647216f2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
4 deletions
+17
-4
xtt/lib/ge/gtk/ge_curve_gtk.cpp
xtt/lib/ge/gtk/ge_curve_gtk.cpp
+12
-4
xtt/lib/ge/gtk/ge_curve_gtk.h
xtt/lib/ge/gtk/ge_curve_gtk.h
+3
-0
xtt/lib/ge/src/ge_curve.h
xtt/lib/ge/src/ge_curve.h
+1
-0
xtt/lib/xtt/gtk/xtt_sevhist_gtk.cpp
xtt/lib/xtt/gtk/xtt_sevhist_gtk.cpp
+1
-0
No files found.
xtt/lib/ge/gtk/ge_curve_gtk.cpp
View file @
a034befd
...
...
@@ -200,6 +200,12 @@ void GeCurveGtk::activate_minmax_cancel( GtkWidget *w, gpointer data)
g_object_set
(
((
GeCurveGtk
*
)
curve
)
->
minmax_widget
,
"visible"
,
FALSE
,
NULL
);
}
void
GeCurveGtk
::
enable_resolution_buttons
()
{
g_object_set
(
tools_higher_res
,
"visible"
,
TRUE
,
NULL
);
g_object_set
(
tools_lower_res
,
"visible"
,
TRUE
,
NULL
);
}
void
GeCurveGtk
::
pop
()
{
gtk_window_present
(
GTK_WINDOW
(
toplevel
));
...
...
@@ -478,16 +484,16 @@ GeCurveGtk::GeCurveGtk( void *gc_parent_ctx,
g_object_set
(
tools_page_right
,
"can-focus"
,
FALSE
,
NULL
);
gtk_toolbar_append_widget
(
tools
,
tools_page_right
,
CoWowGtk
::
translate_utf8
(
"Page right"
),
""
);
GtkWidget
*
tools_higher_res
=
gtk_button_new
();
dcli_translate_filename
(
fname
,
"$pwr_exe/
ge_redo
.png"
);
tools_higher_res
=
gtk_button_new
();
dcli_translate_filename
(
fname
,
"$pwr_exe/
xtt_up
.png"
);
gtk_container_add
(
GTK_CONTAINER
(
tools_higher_res
),
gtk_image_new_from_file
(
fname
));
g_signal_connect
(
tools_higher_res
,
"clicked"
,
G_CALLBACK
(
activate_higher_res
),
this
);
g_object_set
(
tools_higher_res
,
"can-focus"
,
FALSE
,
NULL
);
gtk_toolbar_append_widget
(
tools
,
tools_higher_res
,
CoWowGtk
::
translate_utf8
(
"Higer resolution"
),
""
);
GtkWidget
*
tools_lower_res
=
gtk_button_new
();
dcli_translate_filename
(
fname
,
"$pwr_exe/
ge_undo
.png"
);
tools_lower_res
=
gtk_button_new
();
dcli_translate_filename
(
fname
,
"$pwr_exe/
xtt_down
.png"
);
gtk_container_add
(
GTK_CONTAINER
(
tools_lower_res
),
gtk_image_new_from_file
(
fname
));
g_signal_connect
(
tools_lower_res
,
"clicked"
,
G_CALLBACK
(
activate_lower_res
),
this
);
...
...
@@ -530,6 +536,8 @@ GeCurveGtk::GeCurveGtk( void *gc_parent_ctx,
gtk_paned_set_position
(
GTK_PANED
(
vpaned1
),
names_height
);
gtk_paned_set_position
(
GTK_PANED
(
vpaned2
),
window_height
-
names_height
-
nav_height
-
50
);
g_object_set
(
tools_higher_res
,
"visible"
,
FALSE
,
NULL
);
g_object_set
(
tools_lower_res
,
"visible"
,
FALSE
,
NULL
);
wow
=
new
CoWowGtk
(
toplevel
);
}
...
...
xtt/lib/ge/gtk/ge_curve_gtk.h
View file @
a034befd
...
...
@@ -47,6 +47,8 @@ class GeCurveGtk : public GeCurve {
GtkWidget
*
minmax_widget
;
GtkWidget
*
minmax_textmin_widget
;
GtkWidget
*
minmax_textmax_widget
;
GtkWidget
*
tools_higher_res
;
GtkWidget
*
tools_lower_res
;
CoWowFocusTimerGtk
focustimer
;
void
pop
();
...
...
@@ -56,6 +58,7 @@ class GeCurveGtk : public GeCurve {
void
axis_set_width
(
int
width
);
void
create_minmax_dialog
();
void
set_inputfocus
();
void
enable_resolution_buttons
();
~
GeCurveGtk
();
...
...
xtt/lib/ge/src/ge_curve.h
View file @
a034befd
...
...
@@ -145,6 +145,7 @@ class GeCurve {
virtual
void
resize
()
{}
virtual
void
open_minmax
(
int
idx
)
{}
virtual
void
axis_set_width
(
int
width
)
{}
virtual
void
enable_resolution_buttons
()
{}
void
set_inputfocus
()
{}
int
read_file
(
char
*
filename
);
...
...
xtt/lib/xtt/gtk/xtt_sevhist_gtk.cpp
View file @
a034befd
...
...
@@ -67,6 +67,7 @@ XttSevHistGtk::XttSevHistGtk( void *parent_ctx,
curve
->
help_cb
=
sevhist_help_cb
;
curve
->
higher_res_cb
=
sevhist_higher_res_cb
;
curve
->
lower_res_cb
=
sevhist_lower_res_cb
;
curve
->
enable_resolution_buttons
();
wow
=
new
CoWowGtk
(
parent_widget
);
timerid
=
wow
->
timer_new
();
...
...
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