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
decfb5b5
Commit
decfb5b5
authored
Aug 28, 2009
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Window to display text added to wow
parent
94263582
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
0 deletions
+34
-0
src/lib/co/gtk/co_wow_gtk.cpp
src/lib/co/gtk/co_wow_gtk.cpp
+31
-0
src/lib/co/gtk/co_wow_gtk.h
src/lib/co/gtk/co_wow_gtk.h
+1
-0
src/lib/co/motif/co_wow_motif.h
src/lib/co/motif/co_wow_motif.h
+1
-0
src/lib/co/src/co_wow.h
src/lib/co/src/co_wow.h
+1
-0
No files found.
src/lib/co/gtk/co_wow_gtk.cpp
View file @
decfb5b5
...
@@ -176,6 +176,37 @@ void CoWowGtk::DisplayError( const char *title, const char *text)
...
@@ -176,6 +176,37 @@ void CoWowGtk::DisplayError( const char *title, const char *text)
gtk_widget_show_all
(
dialog
);
gtk_widget_show_all
(
dialog
);
}
}
/************************************************************************
*
* Description: Create a text window.
*
*************************************************************************/
static
void
displaytext_ok_cb
(
GtkWidget
*
w
,
gint
arg1
,
gpointer
data
)
{
gtk_widget_destroy
(
w
);
}
void
CoWowGtk
::
DisplayText
(
const
char
*
title
,
const
char
*
text
)
{
GtkWidget
*
parent
=
m_parent
;
if
(
parent
)
{
while
(
!
GTK_IS_WINDOW
(
parent
))
parent
=
gtk_widget_get_parent
(
parent
);
}
char
*
textutf8
=
g_convert
(
text
,
-
1
,
"UTF-8"
,
"ISO8859-1"
,
NULL
,
NULL
,
NULL
);
GtkWidget
*
dialog
=
gtk_message_dialog_new
(
GTK_WINDOW
(
parent
),
GTK_DIALOG_DESTROY_WITH_PARENT
,
GTK_MESSAGE_OTHER
,
GTK_BUTTONS_CLOSE
,
textutf8
);
g_free
(
textutf8
);
g_signal_connect
(
dialog
,
"response"
,
G_CALLBACK
(
displaytext_ok_cb
),
NULL
);
gtk_window_set_title
(
GTK_WINDOW
(
dialog
),
title
);
gtk_widget_show_all
(
dialog
);
}
/************************************************************************
/************************************************************************
*
*
* Description: Create a window with a scrolled list and Ok and Cancel
* Description: Create a window with a scrolled list and Ok and Cancel
...
...
src/lib/co/gtk/co_wow_gtk.h
View file @
decfb5b5
...
@@ -95,6 +95,7 @@ class CoWowGtk : public CoWow {
...
@@ -95,6 +95,7 @@ class CoWowGtk : public CoWow {
void
(
*
questionbox_cancel
)
(
void
*
,
void
*
),
void
(
*
questionbox_cancel
)
(
void
*
,
void
*
),
void
*
data
);
void
*
data
);
void
DisplayError
(
const
char
*
title
,
const
char
*
text
);
void
DisplayError
(
const
char
*
title
,
const
char
*
text
);
void
DisplayText
(
const
char
*
title
,
const
char
*
text
);
void
*
CreateList
(
const
char
*
title
,
const
char
*
texts
,
void
*
CreateList
(
const
char
*
title
,
const
char
*
texts
,
void
(
action_cb
)(
void
*
,
char
*
),
void
(
action_cb
)(
void
*
,
char
*
),
void
(
cancel_cb
)(
void
*
),
void
(
cancel_cb
)(
void
*
),
...
...
src/lib/co/motif/co_wow_motif.h
View file @
decfb5b5
...
@@ -91,6 +91,7 @@ class CoWowMotif : public CoWow {
...
@@ -91,6 +91,7 @@ class CoWowMotif : public CoWow {
void
(
*
questionbox_cancel
)
(
void
*
,
void
*
),
void
(
*
questionbox_cancel
)
(
void
*
,
void
*
),
void
*
data
);
void
*
data
);
void
DisplayError
(
const
char
*
title
,
const
char
*
text
);
void
DisplayError
(
const
char
*
title
,
const
char
*
text
);
void
DisplayText
(
const
char
*
title
,
const
char
*
text
)
{}
void
*
CreateList
(
const
char
*
title
,
const
char
*
texts
,
void
*
CreateList
(
const
char
*
title
,
const
char
*
texts
,
void
(
action_cb
)(
void
*
,
char
*
),
void
(
action_cb
)(
void
*
,
char
*
),
void
(
cancel_cb
)(
void
*
),
void
(
cancel_cb
)(
void
*
),
...
...
src/lib/co/src/co_wow.h
View file @
decfb5b5
...
@@ -78,6 +78,7 @@ class CoWow {
...
@@ -78,6 +78,7 @@ class CoWow {
void
(
*
questionbox_cancel
)
(
void
*
,
void
*
),
void
(
*
questionbox_cancel
)
(
void
*
,
void
*
),
void
*
data
)
{}
void
*
data
)
{}
virtual
void
DisplayError
(
const
char
*
title
,
const
char
*
text
)
{}
virtual
void
DisplayError
(
const
char
*
title
,
const
char
*
text
)
{}
virtual
void
DisplayText
(
const
char
*
title
,
const
char
*
text
)
{}
virtual
void
*
CreateList
(
const
char
*
title
,
const
char
*
texts
,
virtual
void
*
CreateList
(
const
char
*
title
,
const
char
*
texts
,
void
(
action_cb
)(
void
*
,
char
*
),
void
(
action_cb
)(
void
*
,
char
*
),
void
(
cancel_cb
)(
void
*
),
void
(
cancel_cb
)(
void
*
),
...
...
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