2005-11-22 12:26:26 +00:00
|
|
|
/*
|
|
|
|
* win32.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-24 23:56:50 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2005-11-22 12:26:26 +00:00
|
|
|
*
|
2005-12-29 19:50:50 +00:00
|
|
|
* $Id$
|
2005-11-22 12:26:26 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2006-07-26 17:02:16 +00:00
|
|
|
#ifdef G_OS_WIN32
|
2005-11-22 12:26:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
void win32_show_pref_file_dialog(GtkEntry *item);
|
|
|
|
|
2006-11-07 11:24:22 +00:00
|
|
|
gboolean win32_show_file_dialog(gboolean file_open);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
|
|
|
void win32_show_font_dialog(void);
|
|
|
|
|
2006-07-27 23:17:31 +00:00
|
|
|
void win32_show_color_dialog(const gchar *colour);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2006-07-24 23:56:50 +00:00
|
|
|
/* Creates a native Windows message box of the given type and returns always TRUE
|
|
|
|
* or FALSE representing th pressed Yes or No button.
|
|
|
|
* If type is not GTK_MESSAGE_QUESTION, it returns always TRUE. */
|
2007-07-04 17:08:53 +00:00
|
|
|
gboolean win32_message_dialog(GtkWidget *parent, GtkMessageType type, const gchar *msg);
|
2006-07-24 23:56:50 +00:00
|
|
|
|
|
|
|
/* Special dialog to ask for an action when closing an unsaved file */
|
2006-07-25 12:44:42 +00:00
|
|
|
gint win32_message_dialog_unsaved(const gchar *msg);
|
|
|
|
|
|
|
|
/* Just a simple wrapper function to open a browser window */
|
|
|
|
void win32_open_browser(const gchar *uri);
|
2006-07-24 23:56:50 +00:00
|
|
|
|
2007-02-19 18:58:32 +00:00
|
|
|
/* Shows a file open dialog.
|
|
|
|
* If allow_new_file is set, the file to be opened doesn't have to exist.
|
|
|
|
* The selected file name is returned. */
|
|
|
|
gchar *win32_show_project_open_dialog(const gchar *title, const gchar *initial_dir, gboolean allow_new_file);
|
|
|
|
|
|
|
|
/* Shows a folder selection dialog.
|
|
|
|
* The selected folder name is returned. */
|
|
|
|
gchar *win32_show_project_folder_dialog(const gchar *title, const gchar *initial_dir);
|
|
|
|
|
2005-11-22 12:26:26 +00:00
|
|
|
#endif
|