r5162 | eht16 | 2010-08-15 13:53:09 +0100 (Sun, 15 Aug 2010) | 1 line
[geany-mirror.git] / src / win32.h
blobd05dc9bd34bf812316d2a559e4c2bde5e24719dc
1 /*
2 * win32.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2005-2010 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5 * Copyright 2006-2010 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 * $Id$
25 #ifdef G_OS_WIN32
28 void win32_show_pref_file_dialog(GtkEntry *item);
30 gchar *win32_show_file_dialog(GtkWindow *parent, const gchar *title, const gchar *initial_dir);
32 gboolean win32_show_document_open_dialog(GtkWindow *parent, const gchar *title, const gchar *initial_dir);
34 gchar *win32_show_document_save_as_dialog(GtkWindow *parent, const gchar *title,
35 const gchar *initial_file);
37 void win32_show_font_dialog(void);
39 void win32_show_color_dialog(const gchar *colour);
41 gboolean win32_message_dialog(GtkWidget *parent, GtkMessageType type, const gchar *msg);
43 gint win32_message_dialog_unsaved(const gchar *msg);
45 void win32_open_browser(const gchar *uri);
47 gchar *win32_show_project_open_dialog(GtkWidget *parent, const gchar *title,
48 const gchar *initial_dir, gboolean allow_new_file,
49 gboolean project_file_filter);
51 gchar *win32_show_folder_dialog(GtkWidget *parent, const gchar *title, const gchar *initial_dir);
53 gint win32_check_write_permission(const gchar *dir);
55 void win32_init_debug_code(void);
57 void win32_set_working_directory(const gchar *dir);
59 gchar *win32_get_hostname(void);
61 gboolean win32_get_exit_status(GPid child_pid);
63 gboolean win32_spawn(const gchar *dir, gchar **argv, gchar **env, GSpawnFlags flags,
64 gchar **std_out, gchar **std_err, gint *exit_status, GError **error);
66 gchar *win32_get_shortcut_target(const gchar *file_name);
68 gchar *win32_get_installation_dir(void);
70 gchar *win32_expand_environment_variables(const gchar *str);
72 #endif