![]() |
![]() |
![]() |
libgnomedb Reference Manual | ![]() |
---|---|---|---|---|
GnomeDbEditorPrivate; #define GNOME_DB_EDITOR_LANGUAGE_SQL GtkWidget* gnome_db_editor_new (void); gboolean gnome_db_editor_get_editable (GnomeDbEditor *editor); void gnome_db_editor_set_editable (GnomeDbEditor *editor, gboolean editable); gboolean gnome_db_editor_get_highlight (GnomeDbEditor *editor); void gnome_db_editor_set_highlight (GnomeDbEditor *editor, gboolean highlight); void gnome_db_editor_set_text (GnomeDbEditor *editor, const gchar *text, gint len); gchar* gnome_db_editor_get_all_text (GnomeDbEditor *editor); gboolean gnome_db_editor_load_from_file (GnomeDbEditor *editor, const gchar *filename); gboolean gnome_db_editor_save_to_file (GnomeDbEditor *editor, const gchar *filename); void gnome_db_editor_copy_clipboard (GnomeDbEditor *editor); void gnome_db_editor_cut_clipboard (GnomeDbEditor *editor); void gnome_db_editor_paste_clipboard (GnomeDbEditor *editor);
GtkWidget* gnome_db_editor_new (void);
Create a new GnomeDbEditor widget, which is a multiline text widget with support for several languages used to write database stored procedures and functions. If libgnomedb was compiled with gtksourceview in, this widget will support syntax highlighting for all supported languages.
Returns : | the newly created widget. |
gboolean gnome_db_editor_get_editable (GnomeDbEditor *editor);
Retrieve the editable status of the given editor widget.
editor : | a GnomeDbEditor widget. |
Returns : | the editable status. |
void gnome_db_editor_set_editable (GnomeDbEditor *editor, gboolean editable);
Set the editable state of the given editor widget.
editor : | a GnomeDbEditor widget. |
editable : | editable state. |
gboolean gnome_db_editor_get_highlight (GnomeDbEditor *editor);
Retrieve the highlighting status of the given editor widget.
editor : | a GnomeDbEditor widget. |
Returns : | the highlighting status. |
void gnome_db_editor_set_highlight (GnomeDbEditor *editor, gboolean highlight);
Set the highlighting status on the given editor widget.
editor : | a GnomeDbEditor widget. |
highlight : | highlighting status. |
void gnome_db_editor_set_text (GnomeDbEditor *editor, const gchar *text, gint len);
Set the contents of the given editor widget.
editor : | a GnomeDbEditor widget. |
text : | text to display in the editor. |
len : | length of text. |
gchar* gnome_db_editor_get_all_text (GnomeDbEditor *editor);
Retrieve the full contents of the given editor widget.
editor : | a GnomeDbEditor widget. |
Returns : | the current contents of the editor buffer. You must free the returned value when no longer needed. |
gboolean gnome_db_editor_load_from_file (GnomeDbEditor *editor, const gchar *filename);
Load the given filename into the editor widget.
editor : | a GnomeDbEditor widget. |
filename : | the file to be loaded. |
Returns : | TRUE if successful, FALSE otherwise. |
gboolean gnome_db_editor_save_to_file (GnomeDbEditor *editor, const gchar *filename);
Save the current editor contents to the given file.
editor : | a GnomeDbEditor widget. |
filename : | the file to save to. |
Returns : | TRUE if successful, FALSE otherwise. |
void gnome_db_editor_copy_clipboard (GnomeDbEditor *editor);
Copy currently selected text in the given editor widget to the clipboard.
editor : | a GnomeDbEditor widget. |
void gnome_db_editor_cut_clipboard (GnomeDbEditor *editor);
Moves currently selected text in the given editor widget to the clipboard.
editor : | a GnomeDbEditor widget. |