geany  1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
  Fossies Dox: geany-1.38.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

dialogs.h
Go to the documentation of this file.
1/*
2 * dialogs.h - this file is part of Geany, a fast and lightweight IDE
3 *
4 * Copyright 2005 The Geany contributors
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
21/**
22 * @file dialogs.h
23 * File related dialogs, miscellaneous dialogs, font dialog.
24 **/
25
26
27#ifndef GEANY_DIALOGS_H
28#define GEANY_DIALOGS_H 1
29
30#include "document.h"
31
32#include "gtkcompat.h"
33
34G_BEGIN_DECLS
35
36gboolean dialogs_show_question(const gchar *text, ...) G_GNUC_PRINTF (1, 2);
37
38void dialogs_show_msgbox(GtkMessageType type, const gchar *text, ...) G_GNUC_PRINTF (2, 3);
39
40gboolean dialogs_show_save_as(void);
41
42gboolean dialogs_show_input_numeric(const gchar *title, const gchar *label_text,
43 gdouble *value, gdouble min, gdouble max, gdouble step);
44
45gchar *dialogs_show_input(const gchar *title, GtkWindow *parent,
46 const gchar *label_text, const gchar *default_text);
47
48
49#ifdef GEANY_PRIVATE
50
51typedef void (*GeanyInputCallback)(const gchar *text, gpointer data);
52
53
54void dialogs_show_open_file(void);
55
57
58void dialogs_show_open_font(void);
59
60void dialogs_show_word_count(void);
61
62void dialogs_show_color(gchar *colour);
63
64gchar *dialogs_show_input_goto_line(const gchar *title, GtkWindow *parent,
65 const gchar *label_text, const gchar *default_text);
66
67GtkWidget *dialogs_show_input_persistent(const gchar *title, GtkWindow *parent,
68 const gchar *label_text, const gchar *default_text, GeanyInputCallback input_cb, gpointer input_cb_data);
69
71
72gboolean dialogs_show_question_full(GtkWidget *parent, const gchar *yes_btn, const gchar *no_btn,
73 const gchar *extra_text, const gchar *main_text, ...) G_GNUC_PRINTF (5, 6);
74
75gint dialogs_show_prompt(GtkWidget *parent,
76 const gchar *btn_1, GtkResponseType response_1,
77 const gchar *btn_2, GtkResponseType response_2,
78 const gchar *btn_3, GtkResponseType response_3,
79 const gchar *extra_text, const gchar *main_text, ...) G_GNUC_PRINTF (9, 10);
80
81void dialogs_show_msgbox_with_secondary(GtkMessageType type, const gchar *text, const gchar *secondary);
82
83#endif /* GEANY_PRIVATE */
84
85G_END_DECLS
86
87#endif /* GEANY_DIALOGS_H */
gboolean dialogs_show_question_full(GtkWidget *parent, const gchar *yes_btn, const gchar *no_btn, const gchar *extra_text, const gchar *main_text,...)
Definition: dialogs.c:1393
void dialogs_show_file_properties(GeanyDocument *doc)
Definition: dialogs.c:1149
GtkWidget * dialogs_show_input_persistent(const gchar *title, GtkWindow *parent, const gchar *label_text, const gchar *default_text, GeanyInputCallback input_cb, gpointer input_cb_data)
Definition: dialogs.c:1043
gint dialogs_show_prompt(GtkWidget *parent, const gchar *btn_1, GtkResponseType response_1, const gchar *btn_2, GtkResponseType response_2, const gchar *btn_3, GtkResponseType response_3, const gchar *extra_text, const gchar *main_text,...)
Definition: dialogs.c:1417
void dialogs_show_open_file(void)
Definition: dialogs.c:449
gchar * dialogs_show_input_goto_line(const gchar *title, GtkWindow *parent, const gchar *label_text, const gchar *default_text)
Definition: dialogs.c:1079
gboolean dialogs_show_unsaved_file(GeanyDocument *doc)
Definition: dialogs.c:797
void dialogs_show_open_font(void)
Definition: dialogs.c:876
void dialogs_show_msgbox_with_secondary(GtkMessageType type, const gchar *text, const gchar *secondary)
Definition: dialogs.c:753
gboolean dialogs_show_save_as(void)
Shows the Save As dialog for the current notebook page.
Definition: dialogs.c:667
gboolean dialogs_show_question(const gchar *text,...)
Shows a question message box with text and Yes/No buttons.
Definition: dialogs.c:1370
gboolean dialogs_show_input_numeric(const gchar *title, const gchar *label_text, gdouble *value, gdouble min, gdouble max, gdouble step)
Shows an input box to enter a numerical value using a GtkSpinButton.
Definition: dialogs.c:1108
gchar * dialogs_show_input(const gchar *title, GtkWindow *parent, const gchar *label_text, const gchar *default_text)
Asks the user for text input.
Definition: dialogs.c:1067
void dialogs_show_msgbox(GtkMessageType type, const gchar *text,...)
Shows a message box of the type type with text.
Definition: dialogs.c:729
Document related actions: new, save, open, etc.
gchar * text
Definition: editor.c:83
unsigned int max
Structure for representing an open tab with all its properties.
Definition: document.h:81