![]() | ![]() | ![]() | libgnomedb Reference Manual | ![]() |
---|
struct 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
Returns : | the newly created widget. |
gboolean gnome_db_editor_get_editable (GnomeDbEditor *editor);
Retrieve the editable status of the given editor widget.
editor : | a |
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 |
editable : | editable state. |
gboolean gnome_db_editor_get_highlight (GnomeDbEditor *editor);
Retrieve the highlighting status of the given editor widget.
editor : | a |
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 |
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 |
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 |
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 |
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 |
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 |
void gnome_db_editor_cut_clipboard (GnomeDbEditor *editor);
Moves currently selected text in the given editor widget to the clipboard.
editor : | a |
void gnome_db_editor_paste_clipboard (GnomeDbEditor *editor);
Paste clipboard contents into editor widget, at the current position.
editor : | a |
<<< GnomeDbDsnConfig | GnomeDbErrorDialog >>> |