2005-11-22 12:26:26 +00:00
|
|
|
/*
|
|
|
|
* win32.h - this file is part of Geany, a fast and lightweight IDE
|
|
|
|
*
|
2010-01-01 22:55:18 +00:00
|
|
|
* Copyright 2005-2010 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
|
|
|
* Copyright 2006-2010 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)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);
|
|
|
|
|
2009-12-20 21:49:23 +00:00
|
|
|
gchar *win32_show_file_dialog(GtkWindow *parent, const gchar *title, const gchar *initial_dir);
|
|
|
|
|
2010-05-16 17:42:45 +00:00
|
|
|
gboolean win32_show_document_open_dialog(GtkWindow *parent, const gchar *title, const gchar *initial_dir);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2010-05-10 21:52:43 +00:00
|
|
|
gchar *win32_show_document_save_as_dialog(GtkWindow *parent, const gchar *title,
|
|
|
|
const gchar *initial_file);
|
|
|
|
|
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
|
|
|
|
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
|
|
|
|
2006-07-25 12:44:42 +00:00
|
|
|
gint win32_message_dialog_unsaved(const gchar *msg);
|
|
|
|
|
|
|
|
void win32_open_browser(const gchar *uri);
|
2006-07-24 23:56:50 +00:00
|
|
|
|
2007-12-07 16:31:38 +00:00
|
|
|
gchar *win32_show_project_open_dialog(GtkWidget *parent, const gchar *title,
|
|
|
|
const gchar *initial_dir, gboolean allow_new_file,
|
|
|
|
gboolean project_file_filter);
|
2007-02-19 18:58:32 +00:00
|
|
|
|
2009-12-20 21:49:23 +00:00
|
|
|
gchar *win32_show_folder_dialog(GtkWidget *parent, const gchar *title, const gchar *initial_dir);
|
2007-02-19 18:58:32 +00:00
|
|
|
|
2007-11-04 15:48:14 +00:00
|
|
|
gint win32_check_write_permission(const gchar *dir);
|
|
|
|
|
2009-02-24 18:26:16 +00:00
|
|
|
void win32_init_debug_code(void);
|
2007-12-30 15:54:00 +00:00
|
|
|
|
2009-02-24 18:26:16 +00:00
|
|
|
void win32_set_working_directory(const gchar *dir);
|
|
|
|
|
|
|
|
gchar *win32_get_hostname(void);
|
2008-02-10 17:53:18 +00:00
|
|
|
|
2008-03-14 16:59:36 +00:00
|
|
|
gboolean win32_get_exit_status(GPid child_pid);
|
|
|
|
|
2008-02-24 10:27:32 +00:00
|
|
|
gboolean win32_spawn(const gchar *dir, gchar **argv, gchar **env, GSpawnFlags flags,
|
2008-02-27 16:08:07 +00:00
|
|
|
gchar **std_out, gchar **std_err, gint *exit_status, GError **error);
|
2008-02-24 10:27:32 +00:00
|
|
|
|
2008-03-26 18:53:59 +00:00
|
|
|
gchar *win32_get_shortcut_target(const gchar *file_name);
|
|
|
|
|
2009-03-26 20:10:47 +00:00
|
|
|
gchar *win32_get_installation_dir(void);
|
|
|
|
|
2009-08-02 13:33:39 +00:00
|
|
|
gchar *win32_expand_environment_variables(const gchar *str);
|
|
|
|
|
2005-11-22 12:26:26 +00:00
|
|
|
#endif
|