20130313
[gdash.git] / src / editor / editorwidgets.hpp
blob1e38f28db1fc19845a5b334fe71f36320b769d80
1 /*
2 * Copyright (c) 2007-2013, Czirkos Zoltan http://code.google.com/p/gdash/
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 #ifndef _GD_EDITOR_WIDGETS
17 #define _GD_EDITOR_WIDGETS
19 #include "config.h"
21 #include <gtk/gtk.h>
23 #include "cave/cavetypes.hpp"
25 class GdColor;
27 GtkWidget *gd_color_combo_new(const GdColor& color);
28 void gd_color_combo_set(GtkComboBox *combo, const GdColor& color);
29 const GdColor& gd_color_combo_get_color(GtkWidget *widget);
31 void gd_element_button_set_dialog_title(GtkWidget *button, const char *title);
32 void gd_element_button_set_dialog_sensitive(GtkWidget *button, gboolean sens);
33 GdElementEnum gd_element_button_get(GtkWidget *button);
34 GtkWidget *gd_element_button_new(GdElementEnum initial_element, gboolean stays_open, const char *special_title);
35 void gd_element_button_set(GtkWidget *button, GdElementEnum element);
36 void gd_element_button_update_pixbuf(GtkWidget *button);
38 GtkWidget *gd_direction_combo_new(GdDirectionEnum initial);
39 GdDirectionEnum gd_direction_combo_get_direction(GtkWidget *combo);
41 GtkWidget *gd_scheduling_combo_new(GdSchedulingEnum initial);
42 GdSchedulingEnum gd_scheduling_combo_get_scheduling(GtkWidget *combo);
45 #endif