gtkmisc.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #if !defined(INCLUDED_GTKMISC_H)
00032 #define INCLUDED_GTKMISC_H
00033
00034 #include <string>
00035 #include <gtk/gtkmain.h>
00036 #include "radiant_i18n.h"
00037
00038 inline void process_gui ()
00039 {
00040 while (gtk_events_pending()) {
00041 gtk_main_iteration();
00042 }
00043 }
00044
00045 void command_connect_accelerator (const std::string& commandName);
00046 void command_disconnect_accelerator (const std::string& commandName);
00047 void toggle_add_accelerator (const std::string& commandName);
00048 void toggle_remove_accelerator (const std::string& name);
00049
00050 typedef struct _GtkMenu GtkMenu;
00051 typedef struct _GtkMenuItem GtkMenuItem;
00052 typedef struct _GtkCheckMenuItem GtkCheckMenuItem;
00053
00054
00055 GtkMenuItem
00056 * create_menu_item_with_mnemonic (GtkMenu *menu, const std::string& mnemonic, const std::string& commandName, const std::string& icon = "");
00057
00058 GtkCheckMenuItem* create_check_menu_item_with_mnemonic (GtkMenu* menu, const std::string& mnemonic,
00059 const std::string& commandName, const std::string& icon = "");
00060
00061 typedef struct _GtkButton GtkButton;
00062 typedef struct _GtkToggleButton GtkToggleButton;
00063 typedef struct _GtkToolbar GtkToolbar;
00064
00065
00066 GtkButton* toolbar_append_button (GtkToolbar* toolbar, const std::string& description, const std::string& icon,
00067 const std::string& commandName);
00068
00069 GtkToggleButton* toolbar_append_toggle_button (GtkToolbar* toolbar, const std::string& description,
00070 const std::string& icon, const std::string& commandName);
00071
00072 template<typename Element> class BasicVector3;
00073 typedef BasicVector3<float> Vector3;
00074 bool color_dialog (GtkWidget *parent, Vector3& color, const std::string& title = _("Choose Color"));
00075
00076 typedef struct _GtkEntry GtkEntry;
00077 void button_clicked_entry_browse_file (GtkWidget* widget, GtkEntry* entry);
00078 void button_clicked_entry_browse_directory (GtkWidget* widget, GtkEntry* entry);
00079
00080 #endif