2005-11-22 12:26:26 +00:00
|
|
|
/*
|
|
|
|
* dialogs.h - this file is part of Geany, a fast and lightweight IDE
|
|
|
|
*
|
2007-01-14 17:36:42 +00:00
|
|
|
* Copyright 2005-2007 Enrico Tröger <enrico.troeger@uvena.de>
|
|
|
|
* Copyright 2006-2007 Nick Treleaven <nick.treleaven@btinternet.com>
|
2005-11-22 12:26:26 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2006-07-25 12:46:08 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2005-11-22 12:26:26 +00:00
|
|
|
*
|
2005-12-11 02:16:02 +00:00
|
|
|
* $Id$
|
2005-11-22 12:26:26 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef GEANY_DIALOGS_H
|
|
|
|
#define GEANY_DIALOGS_H 1
|
|
|
|
|
|
|
|
/* This shows the file selection dialog to open a file. */
|
2006-09-09 14:36:15 +00:00
|
|
|
void dialogs_show_open_file();
|
2005-11-22 12:26:26 +00:00
|
|
|
|
|
|
|
/* This shows the file selection dialog to save a file. */
|
2006-11-07 11:24:22 +00:00
|
|
|
gboolean dialogs_show_save_as();
|
2005-11-22 12:26:26 +00:00
|
|
|
|
|
|
|
gboolean dialogs_show_unsaved_file(gint idx);
|
|
|
|
|
|
|
|
/* This shows the font selection dialog to choose a font. */
|
2006-09-09 14:36:15 +00:00
|
|
|
void dialogs_show_open_font();
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2006-09-09 14:36:15 +00:00
|
|
|
void dialogs_show_word_count();
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2006-07-27 20:57:13 +00:00
|
|
|
void dialogs_show_color(gchar *colour);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2006-08-19 12:56:30 +00:00
|
|
|
void dialogs_show_input(const gchar *title, const gchar *label_text, const gchar *default_text,
|
|
|
|
GCallback cb_dialog, GCallback cb_entry);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2006-09-09 14:36:15 +00:00
|
|
|
void dialogs_show_goto_line();
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2006-02-22 13:46:20 +00:00
|
|
|
void dialogs_show_file_properties(gint idx);
|
|
|
|
|
2006-10-21 11:01:34 +00:00
|
|
|
gboolean dialogs_show_question(const gchar *text, ...) G_GNUC_PRINTF (1, 2);
|
2006-04-27 18:06:35 +00:00
|
|
|
|
2006-08-18 17:22:57 +00:00
|
|
|
/* extra_text can be NULL; otherwise it is displayed below main_text. */
|
|
|
|
gboolean dialogs_show_question_full(const gchar *yes_btn, const gchar *no_btn,
|
2006-10-21 11:01:34 +00:00
|
|
|
const gchar *extra_text, const gchar *main_text, ...) G_GNUC_PRINTF (4, 5);
|
2006-08-18 17:22:57 +00:00
|
|
|
|
2007-04-23 12:30:27 +00:00
|
|
|
void dialogs_show_msgbox(gint type, const gchar *text, ...) G_GNUC_PRINTF (2, 3);
|
2006-10-25 14:38:48 +00:00
|
|
|
|
2005-11-22 12:26:26 +00:00
|
|
|
#endif
|