/* * * Copyright (C) 2006-2011 Anders Brander , * * Anders Kvist and Klaus Post * * 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 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GTK_INTERFACE_H #define GTK_INTERFACE_H enum { OP_NONE = 0, OP_BUSY, OP_MOVE }; extern void gui_set_busy(gboolean rawstudio_is_busy); extern gboolean gui_is_busy(void); extern void gui_status_notify(const char *text); extern void gui_status_error(const char *text); extern guint gui_status_push(const char *text) G_GNUC_WARN_UNUSED_RESULT; extern void gui_status_pop(const guint msgid); extern void icon_set_flags(const gchar *filename, GtkTreeIter *iter, const guint *priority, const gboolean *exported); extern void gui_dialog_simple(gchar *title, gchar *message); extern GtkUIManager *gui_get_uimanager(void); extern void gui_set_values(RS_BLOB *rs, gint x, gint y); extern int gui_init(int argc, char **argv, RS_BLOB *rs); extern void gui_setprio(RS_BLOB *rs, guint prio); extern void gui_widget_show(GtkWidget *widget, gboolean show, const gchar *conf_fullscreen_key, const gchar *conf_windowed_key); extern gboolean gui_fullscreen_changed(GtkWidget *widget, gboolean is_fullscreen, const gchar *action, gboolean default_fullscreen, gboolean default_windowed, const gchar *conf_fullscreen_key, const gchar *conf_windowed_key); extern void gui_make_preference_window(RS_BLOB *rs); extern void rs_window_set_title(const char *str); extern void gui_select_preview_screen(RS_BLOB *rs); extern void gui_disable_preview_screen(RS_BLOB *rs); extern GtkWindow *rawstudio_window; extern GdkGC *dashed; extern GdkGC *grid; #endif /* GTK_INTERFACE_H */