00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef INSTIGATE_TOOLKIT_WINDOW
00011 #define INSTIGATE_TOOLKIT_WINDOW
00012
00022
00023
00024
00025
00026
00027
00028 #include <cassert>
00029 #include <gtkmm.h>
00030 #include <gtksourceviewmm.h>
00031 #include <libgnomecanvasmm.h>
00032 #include <libgtkhtml/gtkhtml.h>
00033 #include <list>
00034 #include <map>
00035 #include <QtGui>
00036 #include <stdint.h>
00037 #include <set>
00038
00039
00040 namespace instigate {
00041 namespace toolkit {
00042 enum toolkit_type {gtk, qt};
00043 extern toolkit_type toolkit_mode;
00044 class window;
00045 class qt_graphics_view;
00046 class item;
00047 class gtk_key_event;
00048 template <typename T>
00049 class qt_item;
00050 template <typename T>
00051 class qt_widget;
00052 }
00053 }
00054
00091 class instigate::toolkit::window
00092 {
00093 friend class application;
00094 friend class qt_graphics_view;
00095 friend class item;
00096 template <typename T>
00097 friend class qt_widget;
00098 friend class qt_event_handler;
00099 friend class gtk_key_event;
00100
00101 public:
00102 enum widget_type {
00103 layout = 0,
00104 button = 1,
00105 edit_box = 2,
00106 text_box = 3,
00107 combo_box = 4,
00108 main_window = 5,
00109 label = 6,
00110 menu_bar = 7,
00111 menu_item = 8,
00112 menu = 9,
00113 sub_menu = 10,
00114 notebook = 11,
00115 notebook_page = 12,
00116 check_box = 13,
00117 toolbar = 14,
00118 toolitem = 15,
00119 action = 16,
00120 check_menu_item = 17,
00121 tool_button = 18,
00122 action_group = 19,
00123 radio_menu_item = 20,
00124 tree = 21,
00125 statusbar = 22,
00126 scrollwindow = 23,
00127 chooser_button = 24,
00128 file_chooser = 25,
00129 paned_window = 26,
00130 color_button = 27,
00131 list = 28,
00132 frame = 29,
00133 image = 30,
00134 table = 31,
00135 html_view = 32,
00136 progressbar = 33
00137 };
00138
00139
00140 typedef std::vector<std::string> rows;
00141
00143 typedef std::vector<std::string> widget_children;
00144
00145 void replace_all_occurrences(std::string&, const std::string&,
00146 const std::string&) const throw();
00147
00148 private:
00149 class gtk_radio_group;
00150
00151 struct tree_view_column
00152 : public Gtk::TreeModel::ColumnRecord
00153 {
00154 void add_sub_column(Gtk::TreeModelColumnBase* b) throw()
00155 {
00156 assert(0 != b);
00157 add(*b);
00158 }
00159 };
00160
00161 struct gtk_tree_view_base
00162 {
00163 enum column_type {
00164 label_column = 0,
00165 icon_column = 1,
00166 check_column = 2
00167 };
00168
00170 struct gtk_column_properties
00171 {
00172 std::string m_column_path;
00173 bool m_editable;
00174 bool m_enable;
00175 std::string m_title;
00176 gtk_column_properties(const std::string& s,
00177 bool b, bool n, std::string& t) throw()
00178 : m_column_path(s)
00179 , m_editable(b)
00180 , m_enable(n)
00181 , m_title(t)
00182 {}
00183 };
00184
00186 typedef std::vector<gtk_column_properties> columns_properties;
00187
00188 typedef std::map<std::string, Gtk::TreeModel::Row> tree_rows;
00189
00190 typedef std::map<std::string, Gtk::TreeView::Column*>
00191 tree_columns;
00192
00194 typedef std::vector<std::pair<column_type,
00195 Gtk::TreeModelColumnBase*> > base_types;
00196
00198 typedef std::map<std::string, base_types> column_records;
00199
00200 typedef std::map<std::string, std::pair<column_type,
00201 Gtk::TreeModelColumnBase*> > tree_fields;
00202
00203 typedef std::map<std::string, std::string>
00204 gtk_row_path_to_toolkit_row_path;
00205
00206 typedef std::map<std::string, std::string>
00207 toolkit_row_path_to_gtk_row_path;
00208
00209 typedef std::map<std::string, std::string> colors;
00210
00211 tree_view_column* m_tree_view_column;
00212 tree_rows m_tree_rows;
00213 columns_properties m_columns_properties;
00214 tree_columns m_tree_columns;
00215 column_records m_column_records;
00216 tree_fields m_tree_fields;
00217 gtk_row_path_to_toolkit_row_path
00218 m_gtk_row_path_to_toolkit_row_path;
00219 toolkit_row_path_to_gtk_row_path
00220 m_toolkit_row_path_to_gtk_row_path;
00221 std::string m_last_expanded_row;
00222 std::string m_last_collapsed_row;
00223 colors m_colors;
00224
00225 gtk_tree_view_base() throw();
00226
00227 virtual ~gtk_tree_view_base() throw();
00228 };
00229
00230 struct gtk_tree_view : public gtk_tree_view_base
00231 {
00232 Glib::RefPtr<Gtk::TreeStore> m_tree_view_model;
00233
00234 gtk_tree_view() throw();
00235
00236 ~gtk_tree_view() throw() { }
00237 };
00238
00239 struct gtk_list_view : public gtk_tree_view_base
00240 {
00241 Glib::RefPtr<Gtk::ListStore> m_list_view_model;
00242
00243 gtk_list_view() throw();
00244
00245 ~gtk_list_view() throw() { }
00246 };
00247
00248 struct qt_tree_view
00249 {
00251 typedef std::pair<QStandardItem*, int> standard_item;
00252
00254 typedef std::map<std::string, standard_item> rows;
00255
00257 typedef std::map<int, QModelIndex> model_index;
00258
00260 typedef std::map<std::string, model_index> row_index;
00261
00262 typedef std::map<QStandardItem*, std::string> tree_row_paths;
00263
00264 typedef std::multimap<std::string, QStandardItem*>
00265 path_to_row_items;
00266
00268 struct qt_column_properties
00269 {
00270 std::string m_column_path;
00271 bool m_editable;
00272 bool m_enable;
00273 std::string m_title;
00274
00275 qt_column_properties(const std::string& s,
00276 bool b, bool n, std::string& t) throw()
00277 : m_column_path(s),
00278 m_editable(b),
00279 m_enable(n),
00280 m_title(t){}
00281
00282 };
00283
00284 typedef std::vector<qt_column_properties> columns_properties;
00285
00287 typedef std::map<std::string, columns_properties::size_type>
00288 tree_columns;
00289
00291 typedef std::map<int, std::string> tree_column_paths;
00292
00293 QStandardItemModel* m_tree_model;
00294 rows m_rows;
00295 row_index m_row_index;
00296 tree_row_paths m_tree_row_paths;
00297 tree_columns m_tree_columns;
00298 columns_properties m_columns_properties;
00299 std::vector<int> m_fields;
00300 std::string m_last_expanded_row;
00301 std::string m_last_collapsed_row;
00302 path_to_row_items m_path_to_row_items;
00303 tree_column_paths m_tree_column_paths;
00304
00305 qt_tree_view() throw();
00306
00307 ~qt_tree_view() throw();
00308 };
00309
00310 typedef gtk_tree_view_base::gtk_row_path_to_toolkit_row_path::iterator
00311 gtk_row_path_iterator;
00312
00313 private:
00314 class qt_notebook : public QTabWidget
00315 {
00316 public:
00317 void set_tab_text_color(int i, const std::string& s) throw();
00318 qt_notebook(QWidget* p = 0)
00319 : QTabWidget(p)
00320 {}
00321 };
00322
00323 struct qt_notebook_page {
00324 int position;
00325 std::string tab_text;
00326 std::string tab_text_color;
00327 std::string tab_font_style;
00328 bool is_current;
00329 bool is_hide;
00330 qt_notebook_page()
00331 : position(0)
00332 , tab_text("")
00333 , tab_text_color("")
00334 , tab_font_style("")
00335 , is_current(false)
00336 , is_hide(false)
00337 {}
00338 };
00339
00341 private:
00343 typedef std::pair<QObject*, widget_type> qt_widget_types;
00344
00346 typedef std::pair<Gtk::Widget*, widget_type> gtk_widget_types;
00347
00349 typedef std::map<std::string, qt_widget_types> qt_widgets;
00350
00352 typedef std::map<std::string, gtk_widget_types> gtk_widgets;
00353
00355 typedef std::map<std::string, const std::string> stock_ids;
00356
00357 typedef std::map<std::string, gtk_tree_view_base*> gtk_tree_views;
00358
00359 typedef std::map<std::string, qt_tree_view*> qt_tree_views;
00360
00362 typedef std::map<std::string, Gtk::PackOptions> gtk_pack_options;
00363
00365 typedef std::map<std::string, std::string> qt_pack_options;
00366
00368 typedef std::map<std::string, int> notebook_page_ids;
00369
00371 typedef std::map<std::string, qt_notebook_page>
00372 qt_notebook_page_properties;
00373
00375 typedef std::pair<std::string, QLineEdit*> qt_dialog_edit_box;
00376
00379 typedef std::map<std::string, qt_dialog_edit_box> qt_dialogs;
00380
00381 public:
00382 struct callback
00383 {
00384 virtual void call() throw() = 0;
00385 };
00386
00387 private:
00388 template <typename T>
00389 struct template_callback : public callback
00390 {
00391 T m_function;
00392
00393 void call() throw()
00394 {
00395 m_function();
00396 }
00397
00398 template_callback(T t) throw()
00399 : m_function(t)
00400 {}
00401 };
00402
00403 typedef std::map<std::string, callback*> actions;
00404
00405 typedef std::pair<sigc::connection, std::string> gtk_connections;
00406
00407 typedef std::multimap<std::string, gtk_connections>
00408 gtk_connections_path;
00409
00410 typedef std::multimap<std::string, std::string>
00411 qt_connections_path;
00412
00413 private:
00414 static std::string m_close_action_name;
00415 static std::string m_path;
00416 Gtk::Window* m_gtk_window;
00417 QWidget* m_qt_window;
00418 qt_widgets m_qt_widgets;
00419 gtk_widgets m_gtk_widgets;
00420 notebook_page_ids m_gtk_notebook_page_ids;
00421 std::string m_context;
00422 std::string m_style;
00423 Glib::RefPtr<Gtk::IconFactory> m_icon_factory;
00424 stock_ids m_gtk_stock_ids;
00425 stock_ids m_qt_standard_icons;
00426 actions m_actions;
00427 gtk_tree_views m_gtk_tree_views;
00428 qt_tree_views m_qt_tree_views;
00429 tree_view_column* m_tree_view_column;
00430 gtk_pack_options m_gtk_pack_options;
00431 qt_pack_options m_qt_pack_options;
00432 std::string m_qt_context_menu;
00433 std::map<std::string, std::string> m_filenames;
00434 gtk_connections_path m_gtk_connections_path;
00435 qt_connections_path m_qt_connections_path;
00436 std::map<std::string, int> m_paned_widget_count;
00437 qt_dialogs m_qt_dialogs;
00438 qt_notebook_page_properties m_qt_notebook_page_properties;
00439
00440 private:
00442 void add_window() throw();
00443
00444 void remove_window() throw();
00445
00446 void close_window_event() throw();
00447
00449 void close_qt_window_event() throw();
00450
00451 bool close_gtk_window_event(GdkEventAny* e) throw();
00452
00454
00455 public:
00467 void set_position(const std::string& s) throw();
00468
00475 void resize(size_t w, size_t h) throw();
00476
00493 void set_style(const std::string& s) throw();
00494
00508 void set_modal(bool m) throw();
00509
00511 public:
00521 void add_horizontal_layout(const std::string& s) throw();
00522
00531 void add_vertical_layout(const std::string& s) throw();
00532
00534 public:
00543 void set_spacing(const std::string& s, int t) throw();
00544
00550 void add_spacer(const std::string& s) throw();
00551
00568 void set_size_policy(const std::string& s, const std::string& t)
00569 throw();
00570
00579 std::string get_size_policy(const std::string& s) const throw();
00580
00581 private:
00583 typedef std::map<std::string, QSpacerItem*> qt_spacer_of_layouts;
00584
00586 qt_spacer_of_layouts m_qt_spacer_of_layouts;
00587
00589 public:
00596 void add_horizontal_paned(const std::string& s) throw();
00597
00604 void add_vertical_paned(const std::string& s) throw();
00605
00617 void set_paned_position(const std::string& s, int i) throw();
00618
00629 void add_frame(const std::string& s) throw();
00630
00632 public:
00641 void add_label(const std::string& s) throw();
00642
00653 void add_image(const std::string& s, const std::string& p = "") throw();
00654
00661 void add_html_view(const std::string& s) throw();
00662
00670 template <typename T>
00671 void add_action(const std::string& s, T f) throw()
00672 {
00673 assert(!s.empty());
00674 callback* p = new template_callback<T>(f);
00675 assert(0 != p);
00676 actions::iterator i = m_actions.find(s);
00677 if (m_actions.end() != i) {
00678 assert(0 != i->second);
00679 delete i->second;
00680 i->second = 0;
00681 m_actions.erase(i);
00682 }
00683 m_actions.insert(std::make_pair(s, p));
00684 }
00685
00687 public:
00699 void add_edit_box(const std::string& s) throw();
00700
00707 int get_edit_box_cursor_position(const std::string& s) throw();
00708
00717 void set_edit_box_cursor_position(const std::string& s, int i) throw();
00718
00727 void set_language(const std::string& s, const std::string& p) throw();
00728
00736 void set_accelerator(const std::string& s,
00737 const std::string& p) throw();
00738
00749 void add_text_box(const std::string& s) throw();
00750
00760 void move_cursor(const std::string& s) throw();
00761
00767 void add_scroll_window(const std::string& s) throw();
00768
00777 void set_syntax(const std::string& s, const std::string& l) throw();
00778
00786 void set_background_color(const std::string& s,
00787 const std::string& c) throw();
00788
00790 public:
00806 void create_snapshot(const std::string& n) const throw();
00807
00809 public:
00819 void add_check_box(const std::string& s) throw();
00820
00829 void add_toggle_button(const std::string& s) throw();
00830
00832 public:
00839 void remove_widget(const std::string& s) throw();
00840
00842 public:
00851 void add_radio_button_group(const std::string& s) throw();
00852
00861 void add_combo_box(const std::string& s) throw();
00862
00872 void add_combo_box_item(const std::string& s, const std::string& t)
00873 throw();
00874
00876 public:
00885 void add_grid(const std::string& s) throw();
00886
00897 void add_table(const std::string& s, size_t r, size_t c) throw();
00898
00900 void add_item(const std::string& s, const std::string& t) throw();
00901
00902
00913 public:
00924 void add_handler(const std::string& s, const std::string& e,
00925 const std::string& a) throw();
00926
00932 void remove_all_handlers(const std::string& s) throw();
00933
00935 private:
00943 struct event_handler
00944 {
00945 virtual void handle_event() throw() = 0;
00946 virtual ~event_handler() throw()
00947 {}
00948 };
00949
00956 template <typename T>
00957 struct q_event_handler
00958 : public QObject
00959 , public event_handler
00960 {
00961 T m_callback;
00962
00969 bool event(QEvent*) throw()
00970 {
00971 m_callback();
00972 return true;
00973 }
00974
00979 virtual void handle_event() throw()
00980 {
00981 QEvent* q = new QEvent(QEvent::User);
00982 assert(0 != q);
00983 QApplication::postEvent(this, q);
00984 }
00985
00992 q_event_handler(T t) throw()
00993 : event_handler()
00994 , m_callback(t)
00995 {}
00996
00997 virtual ~q_event_handler() throw()
00998 {}
00999 };
01000
01007 template <typename T>
01008 struct g_event_handler
01009 : public event_handler
01010 {
01011 T m_callback;
01012
01017 virtual void handle_event() throw()
01018 {
01019 m_callback();
01020 }
01021
01028 g_event_handler(T t) throw()
01029 : event_handler()
01030 , m_callback(t)
01031 {}
01032
01033 virtual ~g_event_handler() throw()
01034 {}
01035 };
01036
01064 public:
01077 void add_event(const std::string& n) throw();
01078
01079 private:
01080 template <typename T>
01081 void add_qt_listener(const std::string& n, T l) throw()
01082 {
01083 assert(!n.empty());
01084 event_handler* e = new q_event_handler<T>(l);
01085 assert(0 != e);
01086 events::iterator i = m_events.find(n);
01087 assert(m_events.end() != i);
01088 i->second = e;
01089 }
01090
01091 template <typename T>
01092 void add_gtk_listener(const std::string& n, T f) throw()
01093 {
01094 assert(!n.empty());
01095 event_handler* e = new g_event_handler<T>(f);
01096 assert(0 != e);
01097 events::iterator i = m_events.find(n);
01098 assert(m_events.end() != i);
01099 i->second = e;
01100 }
01101 public:
01118 template <typename T>
01119 void add_listener(const std::string& n, T f) throw()
01120 {
01121 assert(!n.empty());
01122 switch (toolkit_mode) {
01123 case gtk: add_gtk_listener(n, f); break;
01124 case qt: add_qt_listener(n, f); break;
01125 default: assert(! "Unsupported Toolkit");
01126 };
01127 }
01128
01142 void emit_event(const std::string& n) throw();
01143
01144 private:
01146 typedef std::map<std::string, event_handler*> events;
01147 events m_events;
01148
01150 typedef std::deque<event_handler*> pending_events;
01151 pending_events m_gtk_pending_events;
01152
01154 public:
01156 std::string get_pressed_key() const throw();
01157
01159 std::string get_released_key() const throw();
01160
01161 private:
01162 void set_released_key(const std::string&) throw();
01163
01164 void set_pressed_key(const std::string&) throw();
01165
01166 std::string m_pressed_key;
01167 std::string m_released_key;
01168
01169
01171 public:
01179 void set_text(const std::string& s, const std::string& t) throw();
01180
01181
01183 public:
01201 void set_value(const std::string& s, const std::string& t) throw();
01202
01211 void set_value(const std::string& s, const char* t) throw();
01212
01226 void set_value(const std::string& s, int v) throw();
01227
01239 void set_value(const std::string& s, bool t) throw();
01240
01242 public:
01254 void set_color(const std::string& s, const std::string& t) throw();
01255
01257 public:
01271 void set_font_style(const std::string& s, const std::string& t) throw();
01272
01274 public:
01275
01276
01277
01278
01279
01280
01281 void set_focus(const std::string& s) throw();
01282
01283
01284
01285
01286
01287
01288
01289 bool is_focusable(const std::string& s) const throw();
01290
01292 public:
01302 void set_markup(const std::string& s, const std::string& t) throw();
01303
01311 void append_text(const std::string& s, const std::string& t) throw();
01312
01318 std::string get_text(const std::string& s) const throw();
01319
01327 void collect_children(const std::string& s, widget_children& c)
01328 const throw();
01329
01335 std::string get_tooltip_text(const std::string& s) const throw();
01336
01344 void set_html_content(const std::string& s,
01345 const std::string& h) throw();
01346
01348 public:
01357 void set_context(const std::string& s) throw();
01358
01368 bool is_exist_item_with_name(const std::string& s) const throw();
01369
01373 std::string get_context() const throw();
01374
01376 public:
01386 void add_button(const std::string& s) throw();
01387
01396 void add_icon(const std::string& s, const std::string& n) throw();
01397
01404 void add_color_button(const std::string& s) throw();
01405
01412 std::string get_color(const std::string& s) const throw();
01413
01415 public:
01424 void set_action_caption(const std::string& s, const std::string& n)
01425 throw();
01434 void set_action_accelerator(const std::string& s, const std::string& n)
01435 throw();
01436
01438 public:
01447 std::string get_selected_item_text(const std::string& s) const throw();
01448
01457 size_t get_selected_item_index(const std::string& s) throw();
01458
01464 rows get_selected_rows(const std::string& s) const throw();
01465
01473 std::string get_selected_item_column(
01474 const std::string& s) const throw();
01475
01482 void select_row(const std::string& s) const throw();
01483
01489 void deselect_row(const std::string& s) throw();
01490
01492 public:
01498 void add_tree(const std::string& s) throw();
01499
01512 void add_list(const std::string& s) throw();
01513
01522 void add_column(const std::string& s) throw();
01523
01530 void add_row(const std::string& s) throw();
01531
01540 void set_title(const std::string& s, const std::string& t) throw();
01541
01548 void add_check_field(const std::string& s) throw();
01549
01556 void add_label_field(const std::string& s) throw();
01557
01564 void add_icon_field(const std::string& s) throw();
01565
01577 bool is_checked(const std::string& s) const throw();
01578
01584 std::string get_expanded_row(const std::string& s) const throw();
01585
01591 std::string get_collapsed_row(const std::string& s) const throw();
01592
01598 rows get_tree_row_children(const std::string& s) const throw();
01599
01605 void expand_row(const std::string& s) const throw();
01606
01612 void clear_rows(const std::string& s) throw();
01613
01621 void set_selection_mode(const std::string& s,
01622 const std::string& m) throw();
01623
01629 std::string get_selection_mode(const std::string& s) const throw();
01630 public:
01638 size_t get_item_id(const std::string& s) throw();
01639
01641 public:
01648 void set_multiselection_mode(const std::string& s) throw();
01649
01656 void set_singleselection_mode(const std::string& s) throw();
01657
01665 bool is_selection_mode_single(const std::string& s) throw();
01666
01668 public:
01675 void add_menu_bar(const std::string& s) throw();
01676
01688 void add_menu(const std::string& s) throw();
01689
01696 void add_context_menu(const std::string& s) throw();
01697
01704 void run_context_menu(const std::string& s) throw();
01705
01717 void add_menu_item(const std::string& s) throw();
01718
01719
01731 void add_toggle_menu_item(const std::string& s) throw();
01732
01734 public:
01741 void add_statusbar(const std::string& s) throw();
01742
01744 public:
01751 void add_toolbar(const std::string& s) throw();
01752
01759 void add_toolbar_item(const std::string& s) throw();
01760
01767 void add_toggle_toolbar_item(const std::string& s) throw();
01768
01770 public:
01771
01777 void add_separator(const std::string& s) throw();
01778
01780 public:
01787 void set_enable(const std::string& s) throw();
01788
01795 void set_disable(const std::string& s) throw();
01796
01798 bool is_enable(const std::string& s) const throw();
01799
01807 void hide(const std::string& s) throw();
01808
01814 void set_editable(const std::string& s) throw();
01815
01822 void set_read_only(const std::string& s) throw();
01823
01832 void show(const std::string& s) throw();
01833
01835 bool is_visible(const std::string& s) const throw();
01836
01838 bool is_editable(const std::string& s) const throw();
01839
01841 public:
01848 void add_notebook(const std::string& s) throw();
01849
01856 void add_notebook_page(const std::string& s) throw();
01857
01867 void set_current_page(const std::string& s) throw();
01868
01875 int get_current_page(const std::string& s) const throw();
01876
01877 public:
01885 void set_tooltip_text(const std::string& s, const std::string& t)
01886 throw();
01887
01889 public:
01899 void add_progress_bar(const std::string& s) throw();
01900
01911 int get_value(const std::string& s) const throw();
01912
01914 public:
01915
01927 void add_radio_menu(const std::string& s) throw();
01928
01940 void add_radio_menu_item(const std::string& s) throw();
01941
01943 public:
01944 enum mode {
01945 antialiased = 0,
01946 simple = 1
01947 };
01948
01949 private:
01950 enum item_type {
01951 rectangle = 0,
01952 ellipse = 1,
01953 line = 2,
01954 group = 3,
01955 text = 4,
01956 canvas_image = 5
01957 };
01958 public:
01966 void add_canvas(const std::string& s, mode m) throw();
01967
01978 public:
01984 void add_graphic_context(const std::string& s) throw();
01985
01993 void set_line_color(const std::string& s, const std::string& c) throw();
01994
02002 void set_fill_color(const std::string& s, const std::string& c) throw();
02003
02011 void set_font(const std::string& s, const std::string& f) throw();
02012
02020 void set_font_size(const std::string& s, double d) throw();
02021
02030 void set_italic(const std::string& s, bool b) throw();
02031
02040 void set_bold(const std::string& s, bool b) throw();
02041
02050 void set_fill_transparency(const std::string& s, int a) throw();
02051
02060 void set_line_transparency(const std::string& s, int a) throw();
02061
02069 void set_line_width(const std::string& s, int w) throw();
02070
02079 void set_graphic_context(const std::string& s) throw();
02080
02081
02089 void set_graphic_context(const std::string& s,
02090 const std::string& c) throw();
02091 private:
02092 struct gtk_graphic_context
02093 {
02094 std::string m_fill_color;
02095 std::string m_line_color;
02096 uint32_t m_fill_color_rgba;
02097 uint32_t m_line_color_rgba;
02098 int m_line_width;
02099 std::string m_font;
02100 double m_font_size;
02101 Pango::Style m_italic;
02102 Pango::Weight m_bold;
02103 };
02104
02105 struct qt_graphic_context
02106 {
02107 QBrush m_brush;
02108 QPen m_pen;
02109 QFont m_font;
02110 };
02111
02113 public:
02121 void set_user_data(const std::string& s, void* d) throw();
02122
02128 void* get_user_data(const std::string& s) const throw();
02129
02131 public:
02145 void add_line(const std::string& s, double x1, double y1, double x2,
02146 double y2) throw();
02147
02161 void add_rectangle(const std::string& s, double x1, double y1,
02162 double x2, double y2) throw();
02163
02175 void add_text(const std::string& s, double x1, double y1,
02176 const std::string& c) throw();
02190 void add_ellipse(const std::string& s, double x1, double y1,
02191 double x2, double y2) throw();
02192
02193 public:
02199 void remove_item(const std::string& s) throw();
02200
02202 public:
02208 void add_group(const std::string& s) throw();
02209
02211 public:
02217 double get_x1_coordinate(const std::string& s) const throw();
02218
02224 double get_x2_coordinate(const std::string& s) const throw();
02225
02231 double get_y1_coordinate(const std::string& s) const throw();
02232
02238 double get_y2_coordinate(const std::string& s) const throw();
02239
02247 uint32_t get_width(const std::string& s) const throw();
02248
02256 uint32_t get_height(const std::string& s) const throw();
02257
02265 void set_x1_coordinate(const std::string& s, double c) throw();
02266
02274 void set_x2_coordinate(const std::string& s, double c) throw();
02275
02283 void set_y1_coordinate(const std::string& s, double c) throw();
02284
02292 void set_y2_coordinate(const std::string& s, double c) throw();
02293
02295 public:
02306 void move_item_by(const std::string& s, double x, double y) throw();
02307
02320 void rotate(const std::string& s, double a) throw();
02321
02334 void zoom(const std::string& s, double a, double b) throw();
02335
02336 public:
02347 std::string get_item_at(const std::string& s, double x, double y) const
02348 throw();
02349
02351 public:
02359 void zoom_canvas(const std::string& s, double f) throw();
02360
02366 void reset_canvas_zoom_factor(const std::string& s) throw();
02367
02369 public:
02376 void add_file_chooser_dialog(const std::string& s) throw();
02377
02386 void add_file_chooser_button(const std::string& s,
02387 const std::string& p) throw();
02388
02395 void run_file_chooser_dialog(const std::string& s) throw();
02396
02404 void set_name_filter(const std::string& s, const std::string& t)
02405 throw();
02406
02414 void set_file_chooser_mode(const std::string& s, const std::string& t)
02415 throw();
02416
02422 std::string get_filename(const std::string& s) const throw();
02423
02424 public:
02430 void raise_to_top(const std::string& s) throw();
02431
02437 void lower_to_bottom(const std::string& s) throw();
02438
02440 public:
02442 double get_mouse_x_coordinate() const throw();
02443
02445 double get_mouse_y_coordinate() const throw();
02446
02448 public:
02456 void get_group_items(const std::string& s, std::vector<std::string>& v)
02457 throw();
02458
02459 private:
02460
02461 void get_qt_group_items(const std::string&,
02462 std::vector<std::string>&) throw();
02463
02464 void get_gtk_group_items(const std::string&, std::vector<std::string>&)
02465 throw();
02466
02467 bool is_item_in_group(const std::string& s, const std::string& g)
02468 throw();
02469
02470
02471 public:
02477 void toggle_selection(const std::string& s) throw();
02478
02484 void select_item(const std::string& s) throw();
02485
02491 bool is_item_selected(const std::string& s) throw();
02492
02498 bool is_item_exist(const std::string& s) throw();
02499
02500
02504 void select_all() throw();
02505
02511 void deselect_item(const std::string& s) throw();
02512
02516 void deselect_all() throw();
02517
02518 private:
02519
02520 void select_qt_item(const std::string&) throw();
02521
02522 void select_gtk_item(const std::string&) throw();
02523
02524
02526 public:
02528 bool is_control_pressed() const throw();
02529
02531 bool is_shift_pressed() const throw();
02532
02533 public:
02541 std::string get_event_emitter() const throw();
02542
02543 private:
02544 enum coordinate_number {
02545 first = 0,
02546 second = 1,
02547 third = 2,
02548 fourth = 3
02549 };
02550
02551 struct line_coordinates
02552 {
02553 double x1;
02554 double y1;
02555 double x2;
02556 double y2;
02557
02558 line_coordinates(double a1 = 0, double b1 = 0, double a2 = 0,
02559 double b2 = 0) throw()
02560 : x1(a1)
02561 , y1(b1)
02562 , x2(a2)
02563 , y2(b2)
02564 {}
02565 };
02566
02567
02569 private:
02571 typedef std::pair<QGraphicsItem*, item_type> qt_item_types;
02572
02574 typedef std::pair<Gnome::Canvas::Item*, item_type> gtk_item_types;
02575
02576 typedef std::pair<QGraphicsScene*, QGraphicsView*> qt_canvas;
02577
02579 typedef std::map<const std::string,std::pair< const std::string, QImage*> > qt_images;
02580
02582 typedef std::map<const std::string, qt_item_types> qt_items;
02583
02585 typedef std::pair<const std::string, Glib::RefPtr<Gdk::Pixbuf> > m_image_path;
02586 typedef std::map<const std::string, m_image_path > gtk_images;
02587
02589 typedef std::map<const std::string, gtk_item_types> gtk_items;
02590
02592 typedef std::map<const std::string, Gnome::Canvas::Canvas*>
02593 gtk_canvases;
02594
02596 typedef std::map<const std::string, qt_canvas> qt_canvases;
02597
02599 typedef std::map<const std::string, gtk_graphic_context>
02600 gtk_graphic_contexts;
02601
02603 typedef std::map<const std::string, qt_graphic_context>
02604 qt_graphic_contexts;
02605
02606 typedef std::map<Gnome::Canvas::Line*, line_coordinates>
02607 gtk_line_coordinates;
02608
02609 typedef std::map<Gnome::Canvas::Item*, std::string>
02610 gtk_item_paths;
02611
02612 typedef std::map<QGraphicsItem*, std::string>
02613 qt_item_paths;
02614
02615 typedef std::map<std::string, std::string> colors;
02616
02617 typedef std::map<Gnome::Canvas::Canvas*, double>
02618 gtk_canvas_zoom_factors;
02619
02620 typedef std::map<Gnome::Canvas::Item*, std::string>
02621 gtk_canvas_items_tooltips;
02622
02624 typedef std::set<std::string> selected_items;
02625
02626 private:
02627 gtk_images m_gtk_images;
02628 qt_images m_qt_images;
02629 gtk_items m_gtk_items;
02630 qt_items m_qt_items;
02631 gtk_canvases m_gtk_canvases;
02632 qt_canvases m_qt_canvases;
02633 gtk_graphic_contexts m_gtk_graphic_contexts;
02634 qt_graphic_contexts m_qt_graphic_contexts;
02635 gtk_graphic_context m_gtk_current_graphic_context;
02636 qt_graphic_context m_qt_current_graphic_context;
02637 gtk_line_coordinates m_gtk_line_coordinates;
02638 gtk_item_paths m_gtk_item_paths;
02639 qt_item_paths m_qt_item_paths;
02640 colors m_colors;
02641 gtk_canvas_zoom_factors m_gtk_canvas_zoom_factors;
02642 double m_mouse_x;
02643 double m_mouse_y;
02644 std::string m_event_emitter;
02645 double m_top_index;
02646 double m_bottom_index;
02647 bool m_control_pressed;
02648 bool m_shift_pressed;
02649 gtk_canvas_items_tooltips m_gtk_canvas_items_tooltips;
02650 std::string m_window_close_action_name;
02651 selected_items m_selected_items;
02652 public:
02659 widget_type get_widget_type(const std::string& s) throw();
02660
02661 std::string get_substring(const std::string&, const std::string& = "/")
02662 const throw();
02663
02664 private:
02665 std::string get_the_last_part(const std::string&,
02666 const std::string& = "/") throw();
02667
02668 bool is_exist_qt_item_with_name(const std::string& s) const throw();
02669
02670 bool is_exist_gtk_item_with_name(const std::string& s) const throw();
02671
02672 bool is_relative_path(const std::string&) const throw();
02673
02674 bool is_begin_with_dot_dot(const std::string&) const throw();
02675
02676 bool is_root(const std::string&) const throw();
02677
02678 void remove_dots (std::string&) throw();
02679
02680 void set_context_for_relative_path(const std::string&) throw();
02681
02682 void set_context_for_absolute_path(const std::string&) throw();
02683
02684 void run_gtk_file_chooser_dialog(const std::string&) throw();
02685
02686 Gtk::FileFilter* create_gtk_name_filter(const std::string&) throw();
02687
02688 std::string get_gtk_filename(const std::string&) const throw();
02689
02690 void set_gtk_position(const std::string&) throw();
02691
02692 void set_qt_position(const std::string&) throw();
02693
02694 void set_gtk_background_color(const std::string&,
02695 const std::string&) throw();
02696
02697 void set_qt_background_color(const std::string&,
02698 const std::string&) throw();
02699
02700 void set_background_color_to_qt_tree_row(const std::string&,
02701 const std::string&) throw();
02702
02703 void set_background_color_to_qt_widget(QObject*,
02704 const std::string&) throw();
02705
02706 void set_background_color_to_gtk_tree_row(const std::string&,
02707 const std::string&) throw();
02708
02709 void set_background_color_to_gtk_widget(Gtk::Widget*,
02710 const std::string&) throw();
02711
02712 void resize_qt_window(size_t, size_t) throw();
02713
02714 void resize_gtk_window(size_t, size_t) throw();
02715
02716 void create_qt_snapshot(const std::string&) const throw();
02717
02718 void create_gtk_snapshot(const std::string&) const throw();
02719
02720 void gtk_scroll_down(const std::string& s) throw();
02721
02722 void qt_scroll_down(const std::string& s) throw();
02723
02724 void set_qt_language_to_text_box(const std::string& s, const std::string& p) throw();
02725
02726 void set_gtk_language_to_source_view(gtksourceview::SourceView* v,
02727 const std::string& s) throw();
02728
02729 void set_gtk_language_to_text_box(const std::string& s, const std::string& p) throw();
02730
02731 std::string parse_gtk_string(const std::string&) throw();
02732
02733 void set_gtk_accelerator(const std::string&,
02734 const std::string&) throw();
02735
02736 void set_qt_accelerator(const std::string&,
02737 const std::string&) throw();
02738
02739 void set_gtk_file_chooser_mode(const std::string&,
02740 const std::string&) throw();
02741
02742 void add_gtk_file_chooser_dialog(const std::string&) throw();
02743
02744 void set_gtk_name_filter(const std::string&,
02745 const std::string&) throw();
02746
02747 void add_gtk_file_chooser_button_to_layout(const std::string&,
02748 const std::string&, Gtk::Widget*) throw();
02749
02750 void add_gtk_file_chooser_button_to_window(const std::string&,
02751 const std::string&, Gtk::Widget*) throw();
02752
02753 void set_qt_file_chooser_mode(const std::string&, const std::string&)
02754 throw();
02755
02756 void add_qt_file_chooser_dialog(const std::string&) throw();
02757
02758 void connect_qt_file_chooser_button_action(const std::string&) throw();
02759
02760 void add_qt_file_chooser_button_to_widget(const std::string&,
02761 const std::string&) throw();
02762
02763 void add_qt_file_chooser_button_to_layout(const std::string&,
02764 const std::string&, QObject*) throw();
02765
02766 void add_qt_file_chooser_button_to_window(const std::string&,
02767 const std::string&, QObject*) throw();
02768
02769 void run_qt_file_chooser_dialog(const std::string&) throw();
02770
02771 void set_qt_name_filter(const std::string&, const std::string&)
02772 throw();
02773
02774 std::string create_qt_name_filter(const std::string&) throw();
02775
02776 std::string get_qt_filename(const std::string&) const throw();
02777
02778 void add_gtk_frame_to_widget(const std::string&) throw();
02779
02780 void add_gtk_frame_to_layout(const std::string&, Gtk::Widget*) throw();
02781
02782 void add_gtk_frame_to_paned_window(const std::string&, Gtk::Widget*)
02783 throw();
02784
02785 void add_gtk_frame_to_window(const std::string&, Gtk::Widget*) throw();
02786
02787 void add_qt_frame_to_layout(const std::string&, QObject*) throw();
02788
02789 void add_qt_frame_to_paned_window(const std::string&, QObject*) throw();
02790
02791 void add_qt_frame_to_window(const std::string&, QObject*) throw();
02792
02793 void add_qt_frame_to_widget(const std::string&) throw();
02794
02795 void add_gtk_edit_box_to_widget(const std::string&) throw();
02796
02797 void add_qt_edit_box_to_widget(const std::string&) throw();
02798
02799 void add_gtk_edit_box_to_layout(const std::string&, Gtk::Widget*)
02800 throw();
02801
02802 void add_gtk_edit_box_to_window(const std::string&, Gtk::Widget*)
02803 throw();
02804
02805 void add_gtk_edit_box_to_paned_window(const std::string&, Gtk::Widget*)
02806 throw();
02807
02808 void add_qt_edit_box_to_layout(const std::string&, QObject*) throw();
02809
02810 void add_qt_edit_box_to_window(const std::string&, QObject*) throw();
02811
02812 void add_qt_edit_box_to_paned_window(const std::string&, QObject*)
02813 throw();
02814
02815 int get_gtk_edit_box_cursor_position(const std::string&) throw();
02816
02817 int get_qt_edit_box_cursor_position(const std::string&) throw();
02818
02819 void set_gtk_edit_box_cursor_position(const std::string&, int) throw();
02820
02821 void set_qt_edit_box_cursor_position(const std::string&, int) throw();
02822
02823 void add_qt_column(const std::string&) throw();
02824
02825 void add_qt_row(const std::string&) throw();
02826
02827 void add_gtk_row(const std::string&) throw();
02828
02829 void add_gtk_row_to_tree(const std::string&, gtk_tree_view*) throw();
02830
02831 void add_gtk_row_to_list(const std::string&, gtk_list_view*) throw();
02832
02833 void append_gtk_row_to_tree(const std::string&, gtk_tree_view*) throw();
02834
02835 void append_gtk_row_to_list(const std::string&, gtk_list_view*) throw();
02836
02837 void add_gtk_column_to_list(const std::string&) throw();
02838
02839 void add_gtk_column_to_tree(const std::string&) throw();
02840
02841 void connect_gtk_events(Gtk::TreeView*, gtk_tree_view*) throw();
02842
02843 void connect_qt_events(QTreeView*, qt_tree_view*) throw();
02844
02845 void add_gtk_column(const std::string&) throw();
02846
02847 Gtk::ScrolledWindow* add_additional_gtk_scroll_window_to_widget(
02848 const std::string&) throw();
02849
02850 std::string get_additional_gtk_scroll_window_path(
02851 const std::string&) throw();
02852
02853 void add_gtk_text_box_to_widget(const std::string&)
02854 throw();
02855
02856 void add_gtk_text_box_to_scroll_window(const std::string&) throw();
02857
02858 void set_gtk_html_view_content(const std::string&,
02859 const std::string&) throw();
02860
02861 void add_gtk_html_view(const std::string&) throw();
02862
02863 void add_gtk_html_view_to_widget(const std::string&) throw();
02864
02865
02866 void add_gtk_html_view_to_scroll_window(const std::string&,
02867 Gtk::Widget*) throw();
02868
02869
02870 void add_gtk_scroll_window_to_widget(const std::string&) throw();
02871
02872 void add_gtk_scroll_window_to_window(const std::string&, Gtk::Widget*)
02873 throw();
02874
02875 void add_gtk_scroll_window_to_layout(const std::string&, Gtk::Widget*)
02876 throw();
02877
02878 void add_gtk_scroll_window_to_paned_window(const std::string&,
02879 Gtk::Widget*) throw();
02880
02881 void move_gtk_cursor(const std::string&) throw();
02882
02883 void move_qt_cursor(const std::string&) throw();
02884
02885 std::string convert_to_qt_mnemonics(const std::string&) const throw();
02886
02887 std::string convert_from_qt_mnemonics(const std::string&) const throw();
02888
02889 void set_text_to_qt_menu(QObject*, const std::string&) throw();
02890
02891 void set_text_to_qt_tool_button(QObject*, const std::string&) throw();
02892
02893 void set_text_to_qt_main_window(QObject*, const std::string&) throw();
02894
02895 void set_text_to_gtk_menu_item(Gtk::Widget*, const std::string&)
02896 throw();
02897
02898 void set_text_to_gtk_tool_button(Gtk::Widget*, const std::string&)
02899 throw();
02900
02901 void set_text_to_gtk_main_window(Gtk::Widget*, const std::string&)
02902 throw();
02903
02904 void set_spacing_to_gtk_widget(const std::string&, int) throw();
02905
02906 void set_spacing_to_qt_widget(const std::string&, int) throw();
02907
02908 void add_qt_widget_to_layout(const std::string&, QWidget*, QBoxLayout*)
02909 throw();
02910
02911 void add_qt_text_box_to_widget(const std::string&) throw();
02912
02913 void add_qt_text_box_to_layout(const std::string&, QObject*) throw();
02914
02915 void add_qt_text_box_to_window(const std::string&, QObject*) throw();
02916
02917 void add_qt_text_box_to_paned_window(const std::string&, QObject*)
02918 throw();
02919
02920 QTextEdit* create_qt_text_box() const throw();
02921
02922 void add_qt_scroll_window_to_widget(const std::string&) throw();
02923
02924 void add_qt_scroll_window_to_window(const std::string&, QObject*)
02925 throw();
02926
02927 void add_qt_scroll_window_to_layout(const std::string&, QObject*)
02928 throw();
02929
02930
02931 void add_qt_combo_box_to_widget(const std::string&) throw();
02932
02933 void add_qt_combo_box_to_window(const std::string&, QObject*) throw();
02934
02935 void add_qt_combo_box_to_layout(const std::string&, QObject*) throw();
02936
02937 void add_gtk_combo_box_to_window(const std::string&, Gtk::Widget*)
02938 throw();
02939
02940 void add_gtk_combo_box_to_layout(const std::string&, Gtk::Widget*)
02941 throw();
02942
02943 void add_gtk_combo_box_to_widget(const std::string&) throw();
02944
02945 void add_gtk_vertical_layout_to_window(const std::string&, Gtk::Widget*)
02946 throw();
02947
02948 void add_gtk_vertical_layout_to_widget(const std::string&) throw();
02949
02950 void add_qt_vertical_layout_to_window(const std::string&, QObject*)
02951 throw();
02952
02953 void add_qt_vertical_layout_to_widget(const std::string&) throw();
02954
02955 void add_qt_vertical_layout_to_layout(const std::string&, QObject*)
02956 throw();
02957
02958 void add_qt_vertical_layout_to_paned_window(const std::string&,
02959 QObject*) throw();
02960
02961 void add_gtk_vertical_layout_to_layout(const std::string&, Gtk::Widget*)
02962 throw();
02963
02964 void add_gtk_file_chooser_button_to_widget(const std::string&,
02965 const std::string&) throw();
02966
02967 void add_gtk_color_button_to_layout(const std::string&, Gtk::Widget*)
02968 throw();
02969
02970 void add_gtk_color_button_to_window(const std::string&, Gtk::Widget*)
02971 throw();
02972
02973 void add_gtk_color_button_to_paned_window(const std::string&,
02974 Gtk::Widget*) throw();
02975
02976 void add_gtk_color_button_to_widget(const std::string&) throw();
02977
02978 std::string get_color_from_gtk_color_button(
02979 const std::string&) const throw();
02980
02981 void add_qt_color_button_to_widget(const std::string&) throw();
02982
02983 void add_qt_color_button_to_layout(const std::string&, QObject*)
02984 throw();
02985
02986 void add_qt_color_button_to_window(const std::string&, QObject*)
02987 throw();
02988
02989 void add_qt_color_button_to_paned_window(const std::string&, QObject*)
02990 throw();
02991
02992 std::string get_color_from_qt_color_button(
02993 const std::string&) const throw();
02994
02995 void connect_qt_color_button_action(QPushButton*, const std::string&)
02996 throw();
02997
02998 void update_qt_color_buttons_color(const std::string&,
02999 const std::string&) throw();
03000
03001 void on_qt_color_button(std::string) throw();
03002
03003 void add_gtk_button_to_widget(const std::string&) throw();
03004
03005 void add_gtk_button_to_layout(const std::string&, Gtk::Widget*)
03006 throw();
03007
03008 void add_gtk_button_to_window(const std::string&, Gtk::Widget*) throw();
03009
03010 void add_gtk_button_to_paned_window(const std::string&, Gtk::Widget*)
03011 throw();
03012
03013 void add_qt_button_to_widget(const std::string&) throw();
03014
03015 void add_qt_button_to_window(const std::string&, QObject*) throw();
03016
03017 void add_qt_button_to_layout(const std::string&, QObject*) throw();
03018
03019 void add_qt_button_to_paned_window(const std::string&, QObject*)
03020 throw();
03021
03022 void create_color_button() throw();
03023
03024 void add_qt_radio_menu_item_to_widget(const std::string&) throw();
03025
03026 void add_gtk_radio_menu_item_to_widget(const std::string&) throw();
03027
03028 void add_gtk_horizontal_layout_to_widget(const std::string&) throw();
03029
03030 void add_qt_horizontal_layout_to_widget(const std::string&) throw();
03031
03032 void add_qt_horizontal_layout_to_layout(const std::string&, QObject*)
03033 throw();
03034
03035 void add_qt_horizontal_layout_to_window(const std::string&, QObject*)
03036 throw();
03037
03038 void add_qt_horizontal_layout_to_paned_window(const std::string&,
03039 QObject*) throw();
03040
03041 void add_gtk_label_to_layout(const std::string&, Gtk::Widget*) throw();
03042
03043 void add_gtk_label_to_window(const std::string&, Gtk::Widget*) throw();
03044
03045 void add_gtk_label_to_paned_window(const std::string&, Gtk::Widget*)
03046 throw();
03047
03048 void add_gtk_horizontal_layout_to_layout(const std::string&,
03049 Gtk::Widget*) throw();
03050
03051 void add_gtk_horizontal_layout_to_window(const std::string&,
03052 Gtk::Widget*) throw();
03053
03054 void add_gtk_label_to_widget(const std::string&) throw();
03055
03056 void add_qt_label_to_widget(const std::string&) throw();
03057
03058 void add_qt_label_to_layout(const std::string& s, QObject* w)
03059 throw();
03060
03061 void add_qt_label_to_window(const std::string&, QObject*) throw();
03062
03063 void add_qt_label_to_paned_window(const std::string&, QObject*) throw();
03064
03065 void add_gtk_context_menu_to_widget(const std::string&) throw();
03066
03067 void run_gtk_context_menu(const std::string&) throw();
03068
03069 void add_gtk_menu_bar_to_layout(const std::string&, Gtk::Widget*)
03070 throw();
03071
03072 void add_gtk_menu_bar_to_window(const std::string&, Gtk::Widget*)
03073 throw();
03074
03075 void add_gtk_menu_bar(const std::string&) throw();
03076
03077 void add_qt_menu_bar_to_layout(const std::string&, QObject*) throw();
03078
03079 void add_qt_menu_bar_to_window(const std::string&, QObject*) throw();
03080
03081 void add_qt_menu_bar(const std::string&) throw();
03082
03083 void add_qt_context_menu_to_widget(const std::string&) throw();
03084
03085 void run_qt_context_menu(const std::string&) throw();
03086
03087 void add_qt_menu_to_widget(const std::string&) throw();
03088
03089 void add_qt_menu_item_to_widget(const std::string&) throw();
03090
03091 void add_qt_menu_item_to_context_menu(const std::string&, QAction*&)
03092 throw();
03093
03094 void add_qt_menu_to_menu_bar(const std::string&) throw();
03095
03096 void add_qt_submenu_to_menu(const std::string&) throw();
03097
03098 void add_gtk_menu_to_widget(const std::string&) throw();
03099
03100 void add_gtk_menu_item_to_widget(const std::string&) throw();
03101
03102 void add_gtk_toggle_menu_item_to_widget(const std::string&) throw();
03103
03104 void add_qt_toggle_menu_item_to_widget(const std::string&) throw();
03105
03106 void add_gtk_menu_to_menu_bar(const std::string&) throw();
03107
03108 void add_gtk_submenu_to_menu(const std::string&) throw();
03109
03110 void add_gtk_separator(const std::string&) throw();
03111
03112 void add_qt_separator(const std::string&) throw();
03113
03114 int get_qt_current_page(const std::string&) const throw();
03115
03116 int get_gtk_current_page(const std::string&) const throw();
03117
03118 void set_gtk_current_page(const std::string&) throw();
03119
03120 void set_qt_current_page(const std::string&) throw();
03121
03122 void add_gtk_notebook_to_widget(const std::string&) throw();
03123
03124 void add_qt_notebook_to_widget(const std::string&) throw();
03125
03126 void add_gtk_notebook_to_layout(const std::string&, Gtk::Widget*)
03127 throw();
03128
03129 void add_gtk_notebook_to_paned_window(const std::string&, Gtk::Widget*)
03130 throw();
03131
03132 void add_qt_notebook_to_layout(const std::string&, QObject*) throw();
03133
03134 void add_qt_notebook_to_window(const std::string&, QObject*) throw();
03135
03136 void add_qt_notebook_to_paned_window(const std::string&, QObject*)
03137 throw();
03138
03139 void add_gtk_notebook_to_window(const std::string&, Gtk::Widget*)
03140 throw();
03141
03142 void add_notebook_page_to_notebook(const std::string&)throw();
03143
03144 void add_gtk_notebook_page_to_notebook(const std::string&) throw();
03145
03146 void add_gtk_label_field(const std::string&) throw();
03147
03148 void add_gtk_icon_field(const std::string&) throw();
03149
03150 void add_gtk_check_field(const std::string&) throw();
03151
03152 void add_qt_check_field(const std::string&) throw();
03153
03154 void add_qt_image_to_canvas(const std::string&, const std::string&,
03155 QGraphicsScene* c) throw();
03156
03157 void add_qt_image_to_widget(const std::string&, const std::string&)
03158 throw();
03159
03160 void add_gtk_image_to_canvas(const std::string&, const std::string&,
03161 Gnome::Canvas::Canvas*) throw();
03162
03163 void add_gtk_image_to_widget(const std::string&, const std::string&)
03164 throw();
03165 void add_gtk_image_to_layout(const std::string&,
03166 const std::string&, Gtk::Widget*) throw();
03167
03168 void add_qt_image_to_layout(const std::string&, const std::string&,
03169 QObject*) throw();
03170
03171 void add_qt_image_to_paned_window(const std::string&,
03172 const std::string&, QObject*) throw();
03173
03174 void add_qt_image_to_window(const std::string&,
03175 const std::string&, QObject*) throw();
03176
03177 void add_gtk_image_to_window(const std::string&,
03178 const std::string&, Gtk::Widget*) throw();
03179
03180 void add_gtk_image_to_paned_window(const std::string&,
03181 const std::string&, Gtk::Widget*) throw();
03182
03183 void add_gtk_table_to_widget(const std::string&, size_t, size_t)
03184 throw();
03185
03186 void add_qt_table_to_widget(const std::string&, size_t, size_t)
03187 throw();
03188
03189 void add_gtk_table_to_layout(const std::string&, size_t, size_t,
03190 Gtk::Widget*) throw();
03191
03192 void add_gtk_table_to_paned_window(const std::string&, size_t, size_t,
03193 Gtk::Widget*) throw();
03194
03195 void add_gtk_table_to_window(const std::string&, size_t, size_t,
03196 Gtk::Widget*) throw();
03197
03198 void add_qt_table_to_layout(const std::string&, size_t, size_t,
03199 QObject*) throw();
03200
03201 void add_qt_table_to_paned_window(const std::string&, size_t, size_t,
03202 QObject*) throw();
03203
03204 void add_qt_table_to_window(const std::string&, size_t, size_t,
03205 QObject*) throw();
03206
03207 void add_qt_notebook_page_to_notebook(const std::string&) throw();
03208
03209 void set_qt_tree_cell_checked(const std::string&, bool) throw();
03210
03211 void set_gtk_tree_cell_checked(const std::string&, const std::string&,
03212 bool) throw();
03213
03214 void set_checked_property_to_gtk_tree(const std::string&, bool) throw();
03215
03216 void set_qt_checked(const std::string&, bool) throw();
03217
03218 void set_gtk_checked(const std::string&, bool) throw();
03219
03220 bool is_digit(const std::string&) throw();
03221
03222 bool is_qt_check_box_checked(QObject*) const throw();
03223
03224 bool is_qt_check_menu_item_checked(QObject*) const throw();
03225
03226 bool is_qt_toggle_toolbar_item_checked(QObject*) const throw();
03227
03228 bool is_qt_toggle_button_checked(QObject*) const throw();
03229
03230 bool is_qt_checked(const std::string&) const throw();
03231
03232 bool is_gtk_check_box_checked(Gtk::Widget*) const throw();
03233
03234 bool is_gtk_check_menu_item_checked(Gtk::Widget*) const throw();
03235
03236 bool is_gtk_toggle_toolbar_item_checked(Gtk::Widget*) const throw();
03237
03238 bool is_gtk_toggle_button_checked(Gtk::Widget*) const throw();
03239
03240 bool is_gtk_checked(const std::string&) const throw();
03241
03242 void set_qt_title(const std::string&, const std::string&) throw();
03243
03244 void set_qt_title_to_widget(QObject*, const std::string&) throw();
03245
03246 void set_qt_title_to_tree(const std::string&, const std::string&)
03247 throw();
03248
03249 void set_gtk_title(const std::string&, const std::string&) throw();
03250
03251 void set_gtk_title_to_widget(Gtk::Widget*, const std::string&) throw();
03252
03253 void set_gtk_title_to_tree(const std::string&, const std::string&)
03254 throw();
03255
03256 void set_gtk_value(const std::string&, const std::string&) throw();
03257
03258 void set_gtk_value(const std::string&, int) throw();
03259
03260 void set_gtk_text(const std::string&, const std::string&) throw();
03261
03262 void set_text_to_gtk_widget(Gtk::Widget*, widget_type, const
03263 std::string&) throw();
03264
03265 void set_gtk_font_style(const std::string&, const std::string&) throw();
03266
03267 void set_font_style_to_gtk_notebook_page(Gtk::Widget*,
03268 const std::string&, const std::string&) throw();
03269
03270 void set_font_style_to_gtk_label(Gtk::Widget*, const std::string&)
03271 throw();
03272
03273 void set_font_style_to_gtk_check_box(Gtk::Widget*, const std::string&)
03274 throw();
03275
03276 void set_gtk_color(const std::string&, const std::string&) throw();
03277
03278 void set_color_to_gtk_notebook_page(Gtk::Widget*, const std::string&,
03279 const std::string&) throw();
03280
03281 void set_color_to_gtk_label(Gtk::Widget*, const std::string&) throw();
03282
03283 void set_color_to_gtk_check_box(Gtk::Widget*, const std::string&)
03284 throw();
03285
03286 void set_qt_font_style(const std::string&, const std::string&) throw();
03287
03288 void set_font_style_to_qt_label(QObject*, const std::string&) throw();
03289
03290 void set_font_style_to_qt_check_box(QObject*, const std::string&)
03291 throw();
03292
03293 void set_qt_color(const std::string&, const std::string&) throw();
03294
03295 void set_color_to_qt_label(QObject*, const std::string&) throw();
03296
03297 void set_color_to_qt_check_box(QObject*, const std::string&) throw();
03298
03299 void set_color_to_qt_notebook_page(QObject* w, const std::string& s,
03300 const std::string& k) throw();
03301
03302 void set_current_file_to_gtk_file_chooser_button(Gtk::Widget* w,
03303 const std::string&) throw();
03304
03305 void set_text_to_gtk_tree(const std::string&, const std::string&)
03306 throw();
03307 void set_text_to_gtk_tree_cell(const std::string&, const std::string&,
03308 const std::string&) throw();
03309 void set_text_to_gtk_edit_box(Gtk::Widget*, const std::string&) throw();
03310
03311 void set_text_to_gtk_text_box(Gtk::Widget*, const std::string&) throw();
03312
03313 void set_text_to_gtk_button(Gtk::Widget*, const std::string&) throw();
03314
03315 void set_text_to_gtk_label(Gtk::Widget*, const std::string&) throw();
03316
03317 void set_text_to_gtk_check_box(Gtk::Widget*, const std::string&)
03318 throw();
03319
03320 void set_text_to_gtk_action(Gtk::Widget*, const std::string&) throw();
03321
03322 void set_color_to_qt_color_button(const std::string&,
03323 const std::string&) throw();
03324
03325 void set_color_to_gtk_color_button(Gtk::Widget* w,
03326 const std::string&) throw();
03327
03328 void set_current_file_to_qt_file_chooser_button(const std::string&,
03329 const std::string&) throw();
03330
03331 void set_text_to_qt_check_box(QObject*, const std::string&) throw();
03332
03333 void set_text_to_qt_menu_action(QObject*, const std::string&) throw();
03334
03335 void set_text_to_gtk_menu(Gtk::Widget*, const std::string&) throw();
03336
03337 void set_text_to_gtk_text_item(gtk_item_types, const std::string)
03338 throw();
03339
03340 void set_qt_text(const std::string&, const std::string&) throw();
03341
03342 void set_text_to_qt_widget(QObject*, widget_type,
03343 const std::string&, const std::string&) throw();
03344
03345 void set_qt_value(const std::string&, const std::string&) throw();
03346
03347 void set_qt_value(const std::string& s, int v) throw();
03348
03349 void set_text_to_qt_tree_cell(const std::string&, const std::string&,
03350 const std::string&) throw();
03351
03352 void set_text_to_qt_tree(const std::string&, const std::string&)
03353 throw();
03354
03355 void set_text_to_qt_edit_box(QObject*, const std::string&)
03356 throw();
03357
03358 void set_text_to_qt_text_box(QObject*, const std::string&)
03359 throw();
03360
03361 void set_text_to_qt_button(QObject*, const std::string&) throw();
03362
03363 void set_text_to_qt_label(QObject*, const std::string&) throw();
03364
03365 void set_text_to_qt_notebook_page(QObject*,
03366 const std::string&, const std::string&) throw();
03367
03368 void set_text_to_qt_text_item(qt_item_types, const std::string) throw();
03369
03370 void set_text_to_gtk_notebook_page(Gtk::Widget*, const std::string&)
03371 throw();
03372
03373 void set_text_to_gtk_statusbar(Gtk::Widget*, const std::string&)
03374 throw();
03375
03376 void set_text_to_qt_statusbar(QObject*, const std::string&) throw();
03377
03378 void set_gtk_tooltip_text(const std::string&, const std::string&)
03379 throw();
03380
03381 void set_qt_tooltip_text(const std::string&, const std::string&)
03382 throw();
03383
03384 void set_qt_markup_to_label(const std::string&, const std::string&)
03385 throw();
03386
03387 void set_gtk_markup_to_label(const std::string&, const std::string&)
03388 throw();
03389
03390 void append_qt_text(const std::string&, const std::string&) throw();
03391
03392 void append_text_to_qt_text_box(const std::string&, const std::string&)
03393 throw();
03394
03395 void append_gtk_text(const std::string&, const std::string&) throw();
03396
03397 void append_text_to_gtk_text_box(Gtk::Widget*, const std::string&)
03398 throw();
03399
03400 void add_gtk_toolbar_to_widget(const std::string&) throw();
03401
03402 void add_qt_toolbar_to_widget(const std::string&) throw();
03403
03404 void add_gtk_toggle_toolbar_item_to_widget(const std::string&) throw();
03405
03406 void add_qt_toggle_toolbar_item_to_widget(const std::string&) throw();
03407
03408 void add_gtk_check_box_to_widget(const std::string&) throw();
03409
03410 void add_qt_check_box_to_widget(const std::string&) throw();
03411
03412 void add_gtk_check_box_to_layout(const std::string&, Gtk::Widget*)
03413 throw();
03414
03415 void add_gtk_check_box_to_window(const std::string&, Gtk::Widget*)
03416 throw();
03417
03418 void add_qt_check_box_to_layout(const std::string&, QObject*) throw();
03419
03420 void add_qt_check_box_to_window(const std::string&, QObject*) throw();
03421
03422 void add_gtk_toggle_button_to_widget(const std::string&) throw();
03423
03424 void add_gtk_toggle_button_to_layout(const std::string&, Gtk::Widget*)
03425 throw();
03426
03427 void add_gtk_toggle_button_to_window(const std::string&, Gtk::Widget*)
03428 throw();
03429
03430 void add_qt_toggle_button_to_widget(const std::string&) throw();
03431
03432 void add_qt_toggle_button_to_layout(const std::string&, QObject*)
03433 throw();
03434
03435 void add_qt_toggle_button_to_window(const std::string&, QObject*)
03436 throw();
03437
03438 void add_gtk_toolbar(const std::string&) throw();
03439
03440 void add_gtk_toolbar_to_window(const std::string&, Gtk::Widget*)
03441 throw();
03442
03443 void add_gtk_toolbar_to_layout(const std::string&, Gtk::Widget*)
03444 throw();
03445
03446 void add_qt_toolbar(const std::string&) throw();
03447
03448 void add_qt_toolbar_to_layout(const std::string&, QObject*) throw();
03449
03450 void add_qt_toolbar_to_window(const std::string&, QObject*) throw();
03451
03452 void add_gtk_separator_to_menu(Gtk::Widget*) throw();
03453
03454 void add_gtk_separator_to_toolitem(Gtk::Widget*) throw();
03455
03456 void add_qt_separator_to_menu(QObject*) throw();
03457
03458 void add_qt_separator_to_toolitem(QObject*) throw();
03459
03460 void add_qt_icon_to_widget(const std::string&, const std::string&)
03461 throw();
03462
03463 void add_gtk_icon_to_widget(const std::string&, const std::string&)
03464 throw();
03465
03466 void add_qt_icon_to_tree_cell(const std::string&, const std::string&,
03467 const std::string&) throw();
03468
03469 void add_qt_icon_to_tree(const std::string&, const std::string&)
03470 throw();
03471
03472 void add_qt_icon_to_button(const std::string&, QObject*) throw();
03473
03474 void add_qt_icon_to_main_window(const std::string&, QObject*) throw();
03475
03476 void add_qt_icon_to_tool_button(const std::string&, QObject*) throw();
03477
03478 void add_qt_icon_to_menu(const std::string&, QObject*) throw();
03479
03480 void add_qt_icon_to_menu_action(const std::string&, QObject*) throw();
03481
03482 void add_gtk_icon_to_button(const std::string&, Gtk::Widget*) throw();
03483
03484 void add_gtk_icon_to_main_window(const std::string&, Gtk::Widget*)
03485 throw();
03486
03487 void add_gtk_icon_to_tool_button(const std::string&, Gtk::Widget*)
03488 throw();
03489
03490 void add_gtk_icon_to_menu_item(const std::string&, Gtk::Widget*)
03491 throw();
03492
03493 void add_gtk_icon_to_menu(const std::string&, Gtk::Widget*) throw();
03494
03495 void add_gtk_tree_column(gtk_tree_view_base::column_records::
03496 const_iterator, Gtk::TreeViewColumn*) throw();
03497
03498 bool notify_gtk_button_event_on_widget(GdkEventButton*, callback*,
03499 unsigned int) throw();
03500
03501 void add_gtk_handler_to_widget(Gtk::Widget*,
03502 const std::string&,
03503 callback*,
03504 widget_type,
03505 const std::string&,
03506 const std::string&) throw();
03507
03508 void add_gtk_handler_to_main_window(const std::string&,
03509 const std::string&) throw();
03510 void add_gtk_handler_to_chooser_button(Gtk::Widget* ,
03511 const std::string& , callback* ) throw();
03512
03513 void add_gtk_handler_to_button(Gtk::Widget*,
03514 const std::string&,
03515 callback*) throw();
03516
03517 void add_gtk_handler_to_color_button(Gtk::Widget*,
03518 const std::string&,
03519 callback* c) throw();
03520
03521 void add_gtk_handler_to_check_box(Gtk::Widget*,
03522 const std::string&,
03523 callback*) throw();
03524
03525 void add_gtk_handler_to_combo_box(Gtk::Widget*,
03526 const std::string&,
03527 callback*) throw();
03528
03529 void add_gtk_handler_to_edit_box(Gtk::Widget*,
03530 const std::string&,
03531 callback*) throw();
03532
03533 void add_gtk_handler_to_text_box(Gtk::Widget*,
03534 const std::string&,
03535 callback* c) throw();
03536
03537 void add_gtk_handler_to_menu_item(Gtk::Widget*, const std::string&,
03538 callback*, const std::string&,
03539 const std::string&) throw();
03540
03541 void add_gtk_handler_to_check_menu_item(Gtk::Widget*,
03542 const std::string&, callback*, const std::string&,
03543 const std::string&) throw();
03544
03545 void add_gtk_handler_to_tool_button(Gtk::Widget*,
03546 const std::string&,
03547 callback*) throw();
03548
03549 void add_gtk_handler_to_tree(Gtk::Widget*,
03550 const std::string&,
03551 callback*) throw();
03552
03553 void add_gtk_handler_to_list(Gtk::Widget*,
03554 const std::string&,
03555 callback*) throw();
03556
03557 void add_gtk_handler_to_notebook(Gtk::Widget*,
03558 const std::string&,
03559 callback*) throw();
03560
03561 void add_qt_handler_to_main_window(const std::string&,
03562 const std::string&) throw();
03563
03564 void add_qt_handler_to_button(QObject*,
03565 const std::string&,
03566 callback*) throw();
03567
03568 void add_qt_handler_to_check_box(QObject*,
03569 const std::string&,
03570 callback*) throw();
03571
03572 void add_qt_handler_to_combo_box(QObject*,
03573 const std::string&,
03574 callback*) throw();
03575
03576 void add_qt_handler_to_edit_box(QObject*,
03577 const std::string&,
03578 callback*) throw();
03579
03580 void add_qt_handler_to_text_box(QObject*,
03581 const std::string&,
03582 callback*) throw();
03583
03584 void add_qt_handler_to_action(QObject*, const std::string&, callback*,
03585 const std::string&, const std::string&) throw();
03586
03587 void add_qt_handler_to_check_menu_item(QObject*, const std::string&,
03588 callback*, const std::string&, const std::string&)
03589 throw();
03590
03591 void add_qt_handler_to_tree(QObject*,
03592 const std::string&,
03593 callback*) throw();
03594
03595 void add_qt_handler_to_list(QObject*,
03596 const std::string&,
03597 callback*) throw();
03598
03599 void add_qt_handler_to_notebook(QObject*,
03600 const std::string&,
03601 callback*) throw();
03602
03603 void add_qt_handler_to_tool_button(QObject*,
03604 const std::string&,
03605 callback*) throw();
03606
03607 void add_qt_handler_to_widget(QObject*, const std::string&,
03608 callback*, widget_type,
03609 const std::string&, const std::string&) throw();
03610 void add_qt_handler_to_chooser_button(const std::string&,
03611 const std::string&, callback* ) throw();
03612
03613 void add_gtk_handler(const std::string&, const std::string&,
03614 const std::string&) throw();
03615
03616 void add_qt_handler(const std::string&, const std::string&,
03617 const std::string&) throw();
03618
03619 void add_gtk_icon_to_tree(const std::string&, const std::string&)
03620 throw();
03621
03622 void add_gtk_icon_to_tree_cell(const std::string&, const std::string&,
03623 const std::string&) throw();
03624
03625 const std::string get_attribute_value_by_name(const std::string&,
03626 const std::string&) throw();
03627
03628 std::string get_gtk_text(const std::string&) const throw();
03629
03630 std::string get_qt_text(const std::string&) const throw();
03631
03632 bool is_editable_for_gtk_column(const std::string&,
03633 gtk_tree_view_base*) const throw();
03634
03635 bool is_editable_for_gtk_widgets(const std::string&) const throw();
03636
03637 bool is_editable_for_qt_widgets(const std::string&) const throw();
03638
03639 bool is_editable_for_qt_column(qt_tree_view*, const std::string&)
03640 const throw();
03641
03642 bool is_editable_for_gtk_text_box(Gtk::Widget*) const throw();
03643
03644 bool is_editable_for_qt_text_box(QObject*) const throw();
03645
03646 bool is_editable_for_gtk_edit_box(Gtk::Widget*) const throw();
03647
03648 bool is_editable_for_qt_edit_box(QObject*) const throw();
03649
03650 void create_gtk_list(const std::string&) throw();
03651
03652 void add_gtk_list_to_layout(const std::string&, Gtk::Widget*) throw();
03653
03654 void add_gtk_list_to_window(const std::string&, Gtk::Widget*) throw();
03655
03656 void add_gtk_list_to_paned_window(const std::string&, Gtk::Widget*)
03657 throw();
03658
03659 void create_qt_list(const std::string&) throw();
03660
03661 void add_qt_list_to_layout(const std::string&, QObject*) throw();
03662
03663 void add_qt_list_to_window(const std::string&, QObject*) throw();
03664
03665 void add_qt_list_to_paned_window(const std::string&, QObject*) throw();
03666
03667 void create_gtk_tree(const std::string&) throw();
03668
03669 void add_gtk_tree_to_layout(const std::string&, Gtk::Widget*) throw();
03670
03671 void add_gtk_tree_to_scroll_window(const std::string&) throw();
03672
03673 void add_gtk_tree_to_window(const std::string&, Gtk::Widget*) throw();
03674
03675 void add_gtk_tree_to_paned_window(const std::string&,
03676 Gtk::Widget*) throw();
03677
03678 void create_qt_tree(const std::string&) throw();
03679
03680 void add_qt_tree_to_layout(const std::string&, QObject*) throw();
03681
03682 void add_qt_tree_to_window(const std::string&, QObject*) throw();
03683
03684 void add_qt_tree_to_paned_window(const std::string&, QObject*) throw();
03685
03686 void create_tree_model(Gtk::Widget*, gtk_tree_view*) throw();
03687
03688 void create_list_model(const std::string&, Gtk::Widget*,
03689 gtk_list_view*) throw();
03690
03691 void set_gtk_style(const std::string&) throw();
03692
03693 void set_qt_style(const std::string&) throw();
03694
03695 void set_gtk_modal(bool modal) throw();
03696
03697 void set_qt_modal(bool modal) throw();
03698
03699 void connect_close_event_for_qt_window() throw();
03700
03701 void connect_close_event_for_gtk_window() throw();
03702
03703 void create_qt_window() throw();
03704
03705 void create_gtk_window() throw();
03706
03707 void create_gtk_combo_box_item(const std::string&, const std::string&)
03708 throw();
03709
03710 void create_qt_combo_box_item(const std::string&, const std::string&)
03711 throw();
03712
03713 void create_gtk_stock_for_button(const std::string&, Gtk::Widget*)
03714 throw();
03715
03716 void create_gtk_stock_for_main_window(const std::string&, Gtk::Widget*)
03717 throw();
03718
03719 void create_gtk_stock_for_tool_button(const std::string&,
03720 Gtk::ToolButton*) throw();
03721
03722 void create_gtk_icon(const std::string&, const std::string&,
03723 Gtk::TreeModel::Row&,
03724 Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf> >*) throw();
03725
03726 void create_gtk_icon_for_tree(Gtk::TreeModel::Row&,
03727 Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf> >*,
03728 const std::string&, const std::string&) throw();
03729
03730 void create_gtk_icon_for_button(const std::string&, Gtk::Widget*)
03731 throw();
03732
03733 void create_gtk_icon_for_main_window(const std::string&, Gtk::Widget*)
03734 throw();
03735
03736 void create_gtk_icon_for_tool_button(const std::string&,
03737 Gtk::ToolButton*) throw();
03738
03739 void create_gtk_stock_for_menu(const std::string&, Gtk::ImageMenuItem*)
03740 throw();
03741
03742 void create_gtk_icon_for_menu(const std::string&, Gtk::ImageMenuItem*)
03743 throw();
03744
03745 void create_gtk_stock_for_tree(const std::string&, const std::string&,
03746 Gtk::TreeRow&,
03747 Gtk::TreeModelColumn<Glib::RefPtr<Gdk::Pixbuf> >*) throw();
03748
03749 void create_gtk_tree_columns(const std::string&,
03750 gtk_tree_view_base*) throw();
03751
03752 void create_action_group(const std::string& s) throw();
03753
03754 void create_qt_action_group(const std::string& s) throw();
03755
03756 void create_gtk_action_group(const std::string& s) throw();
03757
03758 Gtk::Widget* get_gtk_widget(const std::string&) throw();
03759
03760 QObject* get_qt_widget(const std::string&) throw();
03761
03762 std::string get_qt_combo_box_text(const std::string&) const throw();
03763
03764 std::string get_gtk_combo_box_text(const std::string&) const throw();
03765
03766 void set_qt_combo_box_text(QObject*, int) throw();
03767
03768 void set_gtk_combo_box_text(Gtk::Widget*, int) throw();
03769
03770 void set_attribute_value_by_name(std::string&, const std::string&,
03771 const std::string&) throw();
03772
03773 std::string get_gtk_label_text(Gtk::Widget*) const throw();
03774
03775 std::string get_gtk_button_text(Gtk::Widget*) const throw();
03776
03777 std::string get_gtk_edit_box_text(Gtk::Widget*) const throw();
03778
03779 std::string get_gtk_edit_box_tooltip_text(Gtk::Widget*) const throw();
03780
03781 std::string get_qt_edit_box_tooltip_text(Gtk::Widget*) const throw();
03782
03783 std::string get_gtk_menu_text(Gtk::Widget*) const throw();
03784
03785 std::string get_gtk_menu_item_text(Gtk::Widget*) const throw();
03786
03787 std::string get_gtk_text_box_text(Gtk::Widget*) const throw();
03788
03789 std::string get_qt_label_text(QObject*) const throw();
03790
03791 std::string get_qt_button_text(QObject*) const throw();
03792
03793 std::string get_qt_tooltip_text(const std::string&) const throw();
03794
03795 std::string get_gtk_tooltip_text(const std::string&) const throw();
03796
03797 std::string get_qt_edit_box_text(QObject*) const throw();
03798
03799 std::string get_qt_text_item_text(qt_item_types) const throw();
03800
03801 std::string get_qt_menu_text(QObject*) const throw();
03802
03803 std::string get_qt_menu_action_text(QObject*) const throw();
03804
03805 std::string get_qt_edit_box_tooltip_text(QObject*) const throw();
03806
03807 std::string get_qt_text_box_text(QObject*) const throw();
03808
03809 void collect_gtk_children(const std::string&, widget_children&)
03810 const throw();
03811
03812 void collect_qt_children(const std::string&, widget_children&)
03813 const throw();
03814
03815 void fill_stock_id() throw();
03816
03817 void collect_gtk_standard_icons() throw();
03818
03819 void collect_qt_standard_icons() throw();
03820
03821 void remove_gtk_widget(const std::string&) throw();
03822
03823 void remove_gtk_widget_handlers(const std::string&,
03824 const std::string&) throw();
03825
03826 void remove_gtk_tree(const std::string&, Gtk::Widget*) throw();
03827
03828 void remove_gtk_rows(const std::string&) throw();
03829
03830 std::string remove_gtk_row(const std::string&, gtk_tree_view_base*)
03831 throw();
03832
03833 void reorder_gtk_row_maps(const std::string&, gtk_tree_view_base*)
03834 throw();
03835
03836 void fill_unchanged_part_of_tree(gtk_row_path_iterator&,
03837 gtk_row_path_iterator&,
03838 std::map<std::string, std::string>&,
03839 std::map<std::string, std::string>&) throw();
03840
03841 void fill_changed_part_of_tree(gtk_row_path_iterator&,
03842 gtk_row_path_iterator&,
03843 std::map<std::string, std::string>&,
03844 std::map<std::string, std::string>&,
03845 size_t) throw();
03846
03847 void insert_row_path_in_maps(const std::string&, const std::string&,
03848 std::map<std::string, std::string>&,
03849 std::map<std::string, std::string>&) throw();
03850
03851 void remove_gtk_row_from_map(const std::string&, gtk_tree_view_base*)
03852 throw();
03853
03854 void remove_qt_widget(const std::string&) throw();
03855
03856 void remove_qt_tree(const std::string&, QObject*) throw();
03857
03858 void remove_qt_row(const std::string&) throw();
03859
03860 void remove_qt_row_from_maps(const std::string&, qt_tree_view*)
03861 throw();
03862
03863 void remove_from_qt_row_index_map(const std::string&,
03864 const std::string&, qt_tree_view*) throw();
03865
03866 void correct_qt_rows_map(const std::string&, qt_tree_view*) throw();
03867
03868 void correct_qt_row_index_map(const std::string&, qt_tree_view*, int)
03869 throw();
03870
03871 void correct_index(qt_tree_view::row_index::iterator b, int n,
03872 qt_tree_view* v) throw();
03873
03874 void add_gtk_canvas(const std::string&, mode) throw();
03875
03876 bool register_image(const std::string&) throw();
03877
03878 void add_gtk_canvas_to_layout(const std::string&, Gtk::Widget*, mode)
03879 throw();
03880
03881 void add_gtk_canvas_to_window(const std::string&, Gtk::Widget*, mode)
03882 throw();
03883
03884 void add_qt_canvas(const std::string&, mode) throw();
03885
03886 void add_qt_canvas_to_layout(const std::string&, QObject*, mode)
03887 throw();
03888
03889 void add_qt_canvas_to_window(const std::string&, QObject*, mode)
03890 throw();
03891
03892 void correct_coordinates_to_gtk_text(Gnome::Canvas::Text*) throw();
03893
03894 void add_gtk_text(const std::string&, double, double,
03895 const std::string&) throw();
03896
03897 void add_gtk_text_to_group(const std::string&, Gnome::Canvas::Item*, double, double, const std::string&) throw();
03898
03899 void add_gtk_text_to_canvas(const std::string&, Gnome::Canvas::Canvas*,
03900 double, double, const std::string&) throw();
03901
03902 void add_qt_text(const std::string&, double, double,
03903 const std::string&) throw();
03904
03905 void add_qt_text_to_group(const std::string&, QGraphicsItem*, double,
03906 double, const std::string&) throw();
03907
03908 void add_qt_text_to_canvas(const std::string&, QGraphicsScene*, double,
03909 double, const std::string&) throw();
03910
03911 void add_gtk_rectangle(const std::string&, double, double, double,
03912 double) throw();
03913
03914 void add_gtk_rectangle_to_group(const std::string&,
03915 Gnome::Canvas::Item*, double, double, double, double) throw();
03916
03917 void add_gtk_rectangle_to_canvas(const std::string&,
03918 Gnome::Canvas::Canvas*, double, double, double, double) throw();
03919
03920 void add_qt_rectangle(const std::string&, double, double, double,
03921 double) throw();
03922
03923 void add_qt_rectangle_to_group(const std::string&, QGraphicsItem*,
03924 double, double, double, double) throw();
03925
03926 void add_qt_rectangle_to_canvas(const std::string&, QGraphicsScene*,
03927 double, double, double, double) throw();
03928
03929 void add_gtk_ellipse(const std::string&, double, double, double,
03930 double) throw();
03931
03932 void add_gtk_ellipse_to_group(const std::string&, Gnome::Canvas::Item*,
03933 double, double, double, double) throw();
03934
03935 void add_gtk_ellipse_to_canvas(const std::string&,
03936 Gnome::Canvas::Canvas*, double, double, double, double) throw();
03937
03938 void add_qt_ellipse(const std::string&, double, double, double,
03939 double) throw();
03940
03941 void add_qt_ellipse_to_group(const std::string&, QGraphicsItem*,
03942 double, double, double, double) throw();
03943
03944 void add_qt_ellipse_to_canvas(const std::string&, QGraphicsScene*,
03945 double, double, double, double) throw();
03946
03947 void add_gtk_line(const std::string&, double, double, double, double)
03948 throw();
03949
03950 void add_gtk_line_to_group(const std::string&, Gnome::Canvas::Item*,
03951 double, double, double, double) throw();
03952
03953 void add_gtk_line_to_canvas(const std::string&, Gnome::Canvas::Canvas*,
03954 double, double, double, double) throw();
03955
03956 void set_gtk_line_properties(const std::string&, Gnome::Canvas::Line*)
03957 throw();
03958
03959 void set_gtk_rectangle_properties(const std::string&,
03960 Gnome::Canvas::Rect*) throw();
03961
03962 void set_gtk_ellipse_properties(const std::string&,
03963 Gnome::Canvas::Ellipse*) throw();
03964
03965 void set_gtk_text_properties(const std::string&,
03966 Gnome::Canvas::Text*) throw();
03967
03968 void add_qt_line(const std::string&, double, double, double, double)
03969 throw();
03970
03971 void add_qt_line_to_group(const std::string&, QGraphicsItem*, double,
03972 double, double, double) throw();
03973
03974 void add_qt_line_to_canvas(const std::string&, QGraphicsScene*, double,
03975 double, double, double) throw();
03976
03977 void add_gtk_group(const std::string&) throw();
03978
03979 void add_gtk_group_to_canvas(const std::string&,
03980 Gnome::Canvas::Canvas*) throw();
03981
03982 void add_gtk_group_to_group(const std::string&, Gnome::Canvas::Item*)
03983 throw();
03984
03985 void add_qt_group(const std::string& s) throw();
03986
03987 void add_qt_group_to_canvas(const std::string&, QGraphicsScene*)
03988 throw();
03989
03990 void add_qt_group_to_group(const std::string&, QGraphicsItem*) throw();
03991
03992 void create_gtk_default_graphic_context() throw();
03993
03994 void create_qt_default_graphic_context() throw();
03995
03996 void add_gtk_graphic_context(const std::string&) throw();
03997
03998 void add_qt_graphic_context(const std::string&) throw();
03999
04000
04001 void add_check_column(Gtk::TreeViewColumn*, Gtk::TreeModelColumnBase*)
04002 throw();
04003
04004 void add_label_column(Gtk::TreeViewColumn*, Gtk::TreeModelColumnBase*)
04005 throw();
04006
04007 void add_icon_column(Gtk::TreeViewColumn*, Gtk::TreeModelColumnBase*)
04008 throw();
04009
04010 void add_gtk_statusbar_to_layout(const std::string&, Gtk::Box*) throw();
04011
04012 void add_qt_statusbar_to_layout(const std::string&, QBoxLayout*)
04013 throw();
04014
04015 void add_gtk_statusbar(const std::string&) throw();
04016
04017 void add_qt_statusbar(const std::string&) throw();
04018
04019 void add_gtk_horizontal_paned_to_widget(const std::string&) throw();
04020
04021 void add_gtk_horizontal_paned_to_window(const std::string&,
04022 Gtk::Widget*) throw();
04023
04024 void add_gtk_horizontal_paned_to_paned_window(const std::string&,
04025 Gtk::Widget*) throw();
04026
04027 void add_gtk_horizontal_paned_to_layout(const std::string&,
04028 Gtk::Widget*) throw();
04029
04030 void add_gtk_vertical_layout_to_paned_window(const std::string&,
04031 Gtk::Widget*) throw();
04032
04033 void add_gtk_horizontal_layout_to_paned_window(const std::string&,
04034 Gtk::Widget*) throw();
04035
04036 void add_qt_horizontal_paned_to_widget(const std::string& ) throw();
04037
04038 void add_qt_horizontal_paned_to_paned_window(const std::string& ,
04039 QObject* ) throw();
04040
04041 void add_qt_horizontal_paned_to_window(const std::string&,
04042 QObject*) throw();
04043
04044 void add_qt_horizontal_paned_to_layout(const std::string&,
04045 QObject*) throw();
04046
04047 void add_qt_vertical_paned_to_widget(const std::string& ) throw();
04048
04049 void add_qt_vertical_paned_to_paned_window(const std::string& ,
04050 QObject* ) throw();
04051
04052 void add_qt_vertical_paned_to_window(const std::string&,
04053 QObject*) throw();
04054
04055 void add_qt_vertical_paned_to_layout(const std::string&,
04056 QObject*) throw();
04057
04058 void add_gtk_vertical_paned_to_widget(const std::string&) throw();
04059
04060 void add_gtk_vertical_paned_to_window(const std::string&,
04061 Gtk::Widget*) throw();
04062
04063 void add_gtk_vertical_paned_to_layout(const std::string&,
04064 Gtk::Widget*) throw();
04065
04066 void add_gtk_vertical_paned_to_paned_window(const std::string&,
04067 Gtk::Widget*) throw();
04068
04069 void set_fill_color_to_gtk_item(const std::string&, const std::string&)
04070 throw();
04071
04072 void set_fill_color_to_qt_item(const std::string&, const std::string&)
04073 throw();
04074
04075 void set_line_color_to_gtk_item(const std::string&, const std::string&)
04076 throw();
04077
04078 void set_line_color_to_qt_item(const std::string&, const std::string&)
04079 throw();
04080
04081 void set_font_to_gtk_text(const std::string&, const std::string&)
04082 throw();
04083
04084 void set_font_to_qt_text(const std::string&, const std::string&)
04085 throw();
04086
04087 void set_font_size_to_gtk_text(const std::string&, double) throw();
04088
04089 void set_font_size_to_qt_text(const std::string&, double) throw();
04090
04091 void set_italic_to_gtk_text(const std::string&, bool) throw();
04092
04093 void set_italic_to_qt_text(const std::string&, bool) throw();
04094
04095 void set_bold_to_gtk_text(const std::string&, bool) throw();
04096
04097 void set_bold_to_qt_text(const std::string&, bool) throw();
04098
04099 void set_fill_transparency_to_gtk_item(const std::string&, int) throw();
04100
04101 void set_fill_transparency_to_qt_item(const std::string&, int) throw();
04102
04103 void set_line_transparency_to_gtk_item(const std::string&, int) throw();
04104
04105 void set_line_transparency_to_qt_item(const std::string&, int) throw();
04106
04107 uint32_t string_to_uint(const std::string&, int = 255) const throw();
04108
04109 void set_gtk_graphic_context(const std::string&) throw();
04110
04111 void set_graphic_context_to_gtk_item(const std::string&,
04112 const std::string&) throw();
04113
04114 void set_graphic_context_to_gtk_image(const std::string&,
04115 const gtk_graphic_context&) throw();
04116
04117 void set_graphic_context_to_gtk_rectangle(Gnome::Canvas::Item*,
04118 const gtk_graphic_context&) throw();
04119
04120 void set_graphic_context_to_gtk_line(Gnome::Canvas::Item*,
04121 const gtk_graphic_context&) throw();
04122
04123 void set_graphic_context_to_gtk_ellipse(Gnome::Canvas::Item*,
04124 const gtk_graphic_context&) throw();
04125
04126 void set_graphic_context_to_gtk_text(Gnome::Canvas::Item*,
04127 const gtk_graphic_context&) throw();
04128
04129 void set_graphic_context_to_gtk_group(const std::string&,
04130 const std::string&) throw();
04131
04132 void set_qt_graphic_context(const std::string&) throw();
04133
04134 void set_graphic_context_to_qt_item(const std::string&,
04135 const std::string&) throw();
04136
04137 void set_graphic_context_to_qt_line(QGraphicsItem*,
04138 const qt_graphic_context&) throw();
04139
04140 void set_graphic_context_to_qt_rectangle(QGraphicsItem*,
04141 const qt_graphic_context&) throw();
04142
04143 void set_graphic_context_to_qt_ellipse(QGraphicsItem*,
04144 const qt_graphic_context&) throw();
04145
04146 void set_graphic_context_to_qt_text(QGraphicsItem*,
04147 const qt_graphic_context&) throw();
04148
04149 void set_graphic_context_to_qt_group(const std::string&,
04150 const std::string&) throw();
04151
04152 void set_line_width_to_gtk_item(const std::string&, int) throw();
04153
04154 void set_line_width_to_qt_item(const std::string&, int) throw();
04155
04156 void remove_gtk_item(const std::string&) throw();
04157
04158 void remove_gtk_items_of_group(const std::string&) throw();
04159
04160 void remove_qt_item(const std::string&) throw();
04161
04162 void remove_qt_items_of_group(const std::string&) throw();
04163
04164 void add_gtk_handler_to_item(Gnome::Canvas::Item*, const std::string&,
04165 callback*) throw();
04166
04167 void add_gtk_handler_to_canvas(Gnome::Canvas::Canvas*,
04168 const std::string&, callback*) throw();
04169
04170 void show_gtk_canvas_item_tooltip(Gnome::Canvas::Item*) throw();
04171
04172 void hide_gtk_canvas_item_tooltip(Gnome::Canvas::Item*) throw();
04173
04174 bool call_event(GdkEvent*, Gnome::Canvas::Item*) throw();
04175
04176 bool call_event_on_canvas(GdkEvent*, Gnome::Canvas::Canvas*) throw();
04177
04178 void add_qt_handler_to_item(QGraphicsItem*, const std::string&,
04179 callback*, item_type) throw();
04180
04181 void add_qt_handler_to_group(QGraphicsItem*, const std::string&,
04182 callback*) throw();
04183
04184 void add_qt_handler_to_line(QGraphicsItem*, const std::string&,
04185 callback*) throw();
04186
04187 void add_qt_handler_to_rectangle(QGraphicsItem* i,
04188 const std::string& e, callback*) throw();
04189
04190 void add_qt_handler_to_ellipse(QGraphicsItem*, const std::string&,
04191 callback*) throw();
04192
04193 void add_qt_handler_to_text(QGraphicsItem*, const std::string&,
04194 callback*) throw();
04195
04196 void add_qt_handler_to_image(QGraphicsItem*, const std::string&,
04197 callback*) throw();
04198
04199 void add_qt_handler_to_canvas(QGraphicsView*, const std::string&,
04200 callback*) throw();
04201
04202 void set_coordinate_to_gtk_item(const std::string&, double,
04203 coordinate_number) throw();
04204
04205 void set_coordinate_to_qt_item(const std::string&, double,
04206 coordinate_number) throw();
04207
04208 void set_coordinate_to_gtk_rectangle(Gnome::Canvas::Item*, double,
04209 coordinate_number) throw();
04210
04211 void set_coordinate_to_qt_rectangle(QGraphicsItem*, double,
04212 coordinate_number) throw();
04213
04214 void set_coordinate_to_gtk_ellipse(Gnome::Canvas::Item*, double,
04215 coordinate_number) throw();
04216
04217 void set_coordinate_to_qt_ellipse(QGraphicsItem*, double,
04218 coordinate_number) throw();
04219
04220 void set_coordinate_to_gtk_line(Gnome::Canvas::Item*, double,
04221 coordinate_number) throw();
04222
04223 void set_coordinate_to_qt_line(QGraphicsItem*, double,
04224 coordinate_number) throw();
04225
04226 void set_coordinate(Gnome::Canvas::Text*, double, double, double,
04227 coordinate_number) throw();
04228
04229 void set_coordinate_to_gtk_text(Gnome::Canvas::Item*, double,
04230 coordinate_number) throw();
04231
04232 void set_coordinate_to_qt_text(QGraphicsItem*, double,
04233 coordinate_number) throw();
04234
04235 double get_gtk_item_coordinate(const std::string&,
04236 coordinate_number) const throw();
04237
04238 double get_gtk_line_coordinate(Gnome::Canvas::Item*,
04239 coordinate_number) const throw();
04240
04241 double get_gtk_rectangle_coordinate(Gnome::Canvas::Item*,
04242 coordinate_number) const throw();
04243
04244 double get_gtk_ellipse_coordinate(Gnome::Canvas::Item*,
04245 coordinate_number) const throw();
04246
04247 double get_gtk_group_coordinate(Gnome::Canvas::Item*,
04248 coordinate_number) const throw();
04249
04250 double get_gtk_text_coordinate(Gnome::Canvas::Item*,
04251 coordinate_number) const throw();
04252
04253 double get_qt_item_coordinate(const std::string&,
04254 coordinate_number) const throw();
04255
04256 double get_qt_line_coordinate(QGraphicsItem*,
04257 coordinate_number) const throw();
04258
04259 double get_qt_rectangle_coordinate(QGraphicsItem*,
04260 coordinate_number) const throw();
04261
04262 double get_qt_ellipse_coordinate(QGraphicsItem*,
04263 coordinate_number) const throw();
04264
04265 double get_qt_group_coordinate(QGraphicsItem*,
04266 coordinate_number) const throw();
04267
04268 double get_qt_text_coordinate(QGraphicsItem*,
04269 coordinate_number) const throw();
04270
04271 std::string get_gtk_text_item_text(gtk_item_types) const throw();
04272
04273 void rotate_gtk_item(const std::string&, double) throw();
04274
04275 void rotate_qt_item(const std::string&, double) throw();
04276
04277 void zoom_gtk_item(const std::string&, double, double) throw();
04278
04279 void zoom_qt_item(const std::string&, double, double) throw();
04280
04281 std::string get_gtk_item_at(const std::string&, double, double) const
04282 throw();
04283
04284 std::string get_qt_item_at(const std::string&, double, double) const
04285 throw();
04286
04287 uint32_t get_qt_image_width(const std::string&) const throw();
04288
04289 uint32_t get_qt_width(const std::string&) const throw();
04290
04291 uint32_t get_gtk_image_width(const std::string&) const throw();
04292
04293 uint32_t get_gtk_width(const std::string&) const throw();
04294
04295 uint32_t get_qt_image_height(const std::string&) const throw();
04296
04297 uint32_t get_qt_height(const std::string&) const throw();
04298
04299 uint32_t get_gtk_image_height(const std::string&) const throw();
04300
04301 uint32_t get_gtk_height(const std::string&) const throw();
04302
04303 double get_gtk_image_coordinate(Gnome::Canvas::Item*,
04304 coordinate_number ) const throw();
04305
04306 double get_qt_image_coordinate(QGraphicsItem*,
04307 coordinate_number) const throw();
04308
04309 void move_gtk_item_by(const std::string&, double, double) throw();
04310
04311 void move_gtk_line_by(Gnome::Canvas::Item*, double, double) throw();
04312
04313 void move_gtk_rectangle_by(Gnome::Canvas::Item*, double, double)
04314 throw();
04315
04316 void move_gtk_ellipse_by(Gnome::Canvas::Item*, double, double) throw();
04317
04318 void move_gtk_text_by(Gnome::Canvas::Item*, double, double) throw();
04319
04320 void move_gtk_image_by(Gnome::Canvas::Item*, double, double) throw();
04321
04322 void move_qt_item_by(const std::string&, double, double) throw();
04323
04324 void move_qt_line_by(QGraphicsItem*, double, double) throw();
04325
04326 void move_qt_rectangle_by(QGraphicsItem*, double, double) throw();
04327
04328 void move_qt_ellipse_by(QGraphicsItem*, double, double) throw();
04329
04330 void move_qt_text_by(QGraphicsItem*, double, double) throw();
04331
04332 void move_qt_image_by(QGraphicsItem*, double, double) throw();
04333
04334 bool notify_button_press(item*, GdkEvent*) throw();
04335
04336 bool notify_button_release(item*, GdkEvent*) throw();
04337
04338 bool notify_double_click(item*, GdkEvent*) throw();
04339
04340 void collect_colors() throw();
04341
04342 void zoom_gtk_canvas(const std::string&, double) throw();
04343
04344 void zoom_qt_canvas(const std::string&, double) throw();
04345
04346 void reset_gtk_canvas_zoom_factor(const std::string&) throw();
04347
04348 void reset_qt_canvas_zoom_factor(const std::string&) throw();
04349
04350 void gtk_item_raise_to_top(const std::string&) throw();
04351
04352 void qt_item_raise_to_top(const std::string&) throw();
04353
04354 void gtk_item_lower_to_bottom(const std::string&) throw();
04355
04356 void qt_item_lower_to_bottom(const std::string&) throw();
04357
04358 void set_user_data_to_gtk_item(const std::string&, void*) throw();
04359
04360 void set_user_data_to_qt_item(const std::string&, void*) throw();
04361
04362 void set_user_data_to_qt_line(QGraphicsItem*, void*) throw();
04363
04364 void set_user_data_to_qt_rectangle(QGraphicsItem*, void*) throw();
04365
04366 void set_user_data_to_qt_ellipse(QGraphicsItem*, void*) throw();
04367
04368 void set_user_data_to_qt_text(QGraphicsItem*, void*) throw();
04369
04370 void set_user_data_to_qt_group(QGraphicsItem*, void*) throw();
04371
04372 void* get_user_data_from_gtk_item(const std::string&) const throw();
04373
04374 void* get_user_data_from_qt_item(const std::string&) const throw();
04375
04376 void* get_user_data_from_qt_line(QGraphicsItem*) const throw();
04377
04378 void* get_user_data_from_qt_rectangle(QGraphicsItem*) const throw();
04379
04380 void* get_user_data_from_qt_ellipse(QGraphicsItem*) const throw();
04381
04382 void* get_user_data_from_qt_text(QGraphicsItem*) const throw();
04383
04384 void* get_user_data_from_qt_group(QGraphicsItem*) const throw();
04385
04386 void set_key_state(GdkEvent*) throw();
04387
04388 void set_enable_to_qt_widgets(QObject*) throw();
04389
04390 void set_enable_to_qt_action(QObject*) throw();
04391
04392 void set_enable_to_qt_layout(QObject*) throw();
04393
04394 void hide_qt_layout(const std::string&) throw();
04395
04396 void show_qt_layout(const std::string&) throw();
04397
04398 void hide_qt_notebook_page(const std::string&, QWidget*) throw();
04399
04400 void show_qt_notebook_page(const std::string&, QWidget*) throw();
04401
04402 void hide_qt_widget(const std::string&) throw();
04403
04404 void hide_gtk_widget(const std::string&) throw();
04405
04406 void show_qt_widget(const std::string&) throw();
04407
04408 void show_gtk_widget(const std::string&) throw();
04409
04410 bool is_qt_notebook_page_visible(const std::string&, QWidget* )
04411 const throw();
04412
04413 bool is_qt_layout_visible(const std::string&) const throw();
04414
04415 bool is_qt_widget_visible(const std::string&) const throw();
04416
04417 bool is_gtk_widget_visible(const std::string&) const throw();
04418
04419 void set_editable_mode_to_qt_widget(const std::string&) throw();
04420
04421 void set_read_only_mode_to_gtk_widget(const std::string&) throw();
04422
04423 void set_read_only_mode_to_qt_widget(const std::string&) throw();
04424
04425 void set_editable_mode_to_gtk_edit_box(Gtk::Widget*, bool) throw();
04426
04427 void set_editable_mode_to_gtk_text_box(Gtk::Widget*, bool) throw();
04428
04429 void set_editable_mode_to_gtk_widget(const std::string&) throw();
04430
04431 bool column_path_is(const std::string&,
04432 gtk_tree_view::columns_properties::const_reference)
04433 const throw();
04434
04435 void set_editable_mode_to_gtk_column(const std::string&,
04436 gtk_tree_view_base*, bool) throw();
04437
04438 void set_gtk_column_enable_property_to_icon(Gtk::CellRenderer*,
04439 bool) throw();
04440
04441 void set_gtk_column_enable_property_to_label(Gtk::CellRenderer*,
04442 bool) throw();
04443
04444 void set_gtk_column_enable_property_to_check(Gtk::CellRenderer*,
04445 bool) throw();
04446
04447 void set_gtk_column_enable_property(Gtk::TreeViewColumn*,
04448 gtk_tree_view_base::column_records::const_iterator,
04449 bool) throw();
04450
04451 void on_tree_cell_edited(const Glib::ustring&, const Glib::ustring&,
04452 gtk_tree_view*, Gtk::TreeModelColumnBase*) throw();
04453
04454 void set_gtk_column_editable_property_to_tree_lable(gtk_tree_view_base*,
04455 Gtk::CellRendererText*,
04456 Gtk::TreeModelColumnBase*) throw();
04457
04458 void on_list_cell_edited(const Glib::ustring&, const Glib::ustring&,
04459 gtk_list_view*, Gtk::TreeModelColumnBase*) throw();
04460
04461 void set_gtk_column_editable_property_to_list_lable(gtk_tree_view_base*,
04462 Gtk::CellRendererText*,
04463 Gtk::TreeModelColumnBase*) throw();
04464
04465 void set_gtk_column_editable_property_to_label(Gtk::CellRenderer*,
04466 std::string&, Gtk::TreeModelColumnBase*,
04467 bool, bool) throw();
04468
04469 void on_tree_cell_toggled(const Glib::ustring&, gtk_tree_view*,
04470 Gtk::TreeModelColumnBase*) throw();
04471
04472 void set_gtk_column_editable_property_to_tree_check(gtk_tree_view_base*,
04473 Gtk::CellRendererToggle*,
04474 Gtk::TreeModelColumnBase*) throw();
04475
04476 void on_list_cell_toggled(const Glib::ustring&, gtk_list_view*,
04477 Gtk::TreeModelColumnBase*) throw();
04478
04479 void set_gtk_column_editable_property_to_list_check(gtk_tree_view_base*,
04480 Gtk::CellRendererToggle*,
04481 Gtk::TreeModelColumnBase*) throw();
04482
04483 void set_gtk_column_editable_property_to_check(Gtk::CellRenderer*,
04484 std::string&, Gtk::TreeModelColumnBase*,
04485 bool b, bool d) throw();
04486
04487 void set_gtk_column_editable_property(Gtk::TreeViewColumn*,
04488 gtk_tree_view_base::column_records::const_iterator,
04489 bool, bool) throw();
04490
04491 void set_gtk_column_properties(Gtk::TreeViewColumn*,
04492 gtk_tree_view_base::column_records::const_iterator ,
04493 gtk_tree_view_base::gtk_column_properties) throw();
04494
04495 void set_disable_to_qt_widgets(QObject*) throw();
04496
04497 void set_disable_to_qt_action(QObject*) throw();
04498
04499 void set_disable_to_qt_layout(QObject*) throw();
04500
04501 void set_disable_mode_to_qt_widgets(const std::string&) throw();
04502
04503 void set_enable_mode_to_qt_widgets(const std::string&) throw();
04504
04505 bool is_enable_for_qt_column(qt_tree_view*, const std::string&)
04506 const throw();
04507
04508 bool is_enable_for_qt_widgets(const std::string&) const throw();
04509
04510 void set_enable_mode_to_gtk_column(const std::string&,
04511 gtk_tree_view_base*, bool) throw();
04512
04513 void set_enable_to_gtk_widgets(Gtk::Widget*) throw();
04514
04515 void set_enable_to_gtk_action(Gtk::Widget*) throw();
04516
04517 void set_enable_to_gtk_layout(Gtk::Widget*) throw();
04518
04519 void set_enable_mode_to_gtk_widgets(const std::string&) throw();
04520
04521 bool is_enable_for_gtk_column(const std::string&,
04522 gtk_tree_view_base*) const throw();
04523
04524 bool is_enable_for_gtk_widgets(const std::string&) const throw();
04525
04526 void set_disable_mode_to_gtk_widgets(const std::string&) throw();
04527
04528 void set_disable_to_gtk_widgets(Gtk::Widget*) throw();
04529
04530 void set_disable_to_gtk_action(Gtk::Widget*) throw();
04531
04532 void set_disable_to_gtk_layout(Gtk::Widget*) throw();
04533
04534 void set_checked_property(const std::string&, const std::string&,
04535 bool, qt_widgets::const_iterator) throw();
04536
04537 void add_gtk_widget_to_layout(const std::string&, Gtk::Widget*,
04538 Gtk::Box*)
04539 throw();
04540
04541 void set_gtk_position_to_widget(const std::string&, int) throw();
04542
04543 void set_gtk_position_to_paned_window(Gtk::Widget*, int) throw();
04544
04545 void set_size_policy_to_gtk_layout(const std::string&,
04546 const std::string&) throw();
04547
04548 void set_size_policy_to_qt_layout(const std::string&,
04549 const std::string&) throw();
04550
04551 std::string get_size_policy_from_gtk_layout(
04552 const std::string&) const throw();
04553
04554 std::string get_size_policy_from_qt_layout(
04555 const std::string&) const throw();
04556
04557 void insert_qt_index_to_tree(const std::string&, int, int,
04558 QModelIndex&, QTreeView*, qt_tree_view*) throw();
04559
04560 void insert_qt_indexes(const std::string&, int, QModelIndex&,
04561 qt_tree_view*) throw();
04562
04563 void insert_qt_row(const std::string&, const QList<QStandardItem*>&,
04564 qt_tree_view*) throw();
04565
04566 void insert_qt_row_to_tree(const std::string&,
04567 const QList<QStandardItem*>&, qt_tree_view*) throw();
04568
04569 void insert_qt_row_to_list(const std::string&,
04570 const QList<QStandardItem*>&, qt_tree_view*) throw();
04571
04572 std::string get_full_path(const std::string&) const throw();
04573
04574 void browse(std::string) throw();
04575
04576 rows get_selected_rows_from_gtk_tree(const std::string&) const throw();
04577
04578 rows get_selected_rows_from_qt_tree(const std::string&) const throw();
04579
04580 rows get_selected_gtk_row(const std::string&,
04581 Gtk::TreeView*) const throw();
04582
04583 rows get_selected_gtk_rows(const std::string&,
04584 Gtk::TreeView*) const throw();
04585
04586 rows get_selected_qt_row(const std::string&, QTreeView*) const throw();
04587
04588 rows get_selected_qt_rows(const std::string&, QTreeView*) const throw();
04589
04590 bool on_tree_event(GdkEvent*, Gtk::TreeView*) throw();
04591
04592 void select_gtk_row(const std::string&) const throw();
04593
04594 void select_qt_row(const std::string&) const throw();
04595
04596 void deselect_gtk_row(const std::string&) throw();
04597
04598 void deselect_qt_row(const std::string&) throw();
04599
04600 gtk_tree_view_base* get_gtk_parent_tree(const std::string&) const
04601 throw();
04602
04603 qt_tree_view* get_qt_parent_tree(const std::string&) const throw();
04604
04605 void remove_all_gtk_handlers(const std::string&) throw();
04606
04607 void remove_all_qt_handlers(const std::string&) throw();
04608
04609 void remove_actions(const std::string&) throw();
04610
04611 void run_gtk_window() throw();
04612
04613 void run_qt_window() throw();
04614
04615 void on_expanded(const Gtk::TreeModel::iterator&,
04616 const Gtk::TreeModel::Path&, gtk_tree_view*) throw();
04617
04618 void on_collapsed(const Gtk::TreeModel::iterator&,
04619 const Gtk::TreeModel::Path&, gtk_tree_view*) throw();
04620
04621 std::string get_gtk_expanded_row(const std::string&) const throw();
04622
04623 std::string get_qt_expanded_row(const std::string&) const throw();
04624
04625 std::string get_gtk_collapsed_row(const std::string&) const throw();
04626
04627 std::string get_qt_collapsed_row(const std::string&) const throw();
04628
04629 rows get_gtk_tree_row_children(const std::string&) const throw();
04630
04631 rows get_qt_tree_row_children(const std::string&) const throw();
04632
04633 void clear_gtk_rows(const std::string&) throw();
04634
04635 void clear_qt_rows(const std::string&) throw();
04636
04637 void expand_gtk_row(const std::string&) const throw();
04638
04639 void expand_qt_row(const std::string&) const throw();
04640
04641 void set_color_on_row(Gtk::CellRenderer*,
04642 const Gtk::TreeModel::iterator&,
04643 gtk_tree_view*) throw();
04644
04645 void insert_color(gtk_tree_view*, const std::string&,
04646 const std::string&) throw();
04647
04648 void set_callback_on_columns(gtk_tree_view* v,
04649 Gtk::TreeView* t) throw();
04650
04651 void set_qt_focus(const std::string& s) throw();
04652
04653 void set_gtk_focus(const std::string& s) throw();
04654
04655 bool is_qt_widget_focusable(const std::string& s) const throw();
04656
04657 bool is_gtk_widget_focusable(const std::string& s) const throw();
04658
04659 void set_selection_mode_to_gtk_tree(const std::string&,
04660 const std::string&) throw();
04661
04662 void set_selection_mode_to_qt_tree(const std::string&,
04663 const std::string&) throw();
04664
04665 std::string get_selection_mode_of_gtk_tree(
04666 const std::string&) const throw();
04667
04668 std::string get_selection_mode_of_qt_tree(
04669 const std::string&) const throw();
04670
04671 QSizePolicy get_qt_size_policy_of_layout(QWidget* w, QObject* o,
04672 const std::string& t)throw();
04673
04674 void add_gtk_spacer(const std::string& s) throw();
04675
04676 void add_qt_spacer(const std::string& s) throw();
04677
04678 void set_editable_mode_to_qt_column(const std::string&,
04679 qt_tree_view*, bool) throw();
04680
04681 void set_editable_mode_to_qt_column_items(qt_tree_view*,
04682 qt_tree_view::columns_properties::size_type, bool) throw();
04683
04684 void set_editable_mode_to_qt_row_items(qt_tree_view*, QStandardItem*,
04685 qt_tree_view::columns_properties::size_type) throw();
04686
04687 void set_enable_mode_to_qt_column(const std::string&,
04688 qt_tree_view*, bool) throw();
04689
04690 void set_enable_mode_to_qt_column_items(qt_tree_view*,
04691 qt_tree_view::columns_properties::size_type, bool) throw();
04692
04693 void set_enable_mode_to_qt_row_items(qt_tree_view*, QStandardItem*,
04694 qt_tree_view::columns_properties::size_type) throw();
04695
04696 std::string get_selected_qt_item_column(
04697 const std::string&) const throw();
04698
04699 void add_qt_progress_bar(const std::string&) throw();
04700
04701 void add_gtk_progress_bar(const std::string&) throw();
04702
04703 void add_qt_progress_bar_to_layout(const std::string&,
04704 QObject*) throw();
04705
04706 void add_gtk_progress_bar_to_layout(const std::string&,
04707 Gtk::Widget*) throw();
04708
04709 void add_qt_progress_bar_to_window(const std::string&,
04710 QObject*) throw();
04711
04712 void add_qt_progress_bar_to_status_bar(const std::string&,
04713 QObject*) throw();
04714
04715 void add_gtk_progress_bar_to_window(const std::string&,
04716 Gtk::Widget*) throw();
04717
04718 void add_gtk_progress_bar_to_status_bar(const std::string&,
04719 Gtk::Widget*) throw();
04720
04721 void set_value_to_qt_progress_bar(QObject*, int) throw();
04722
04723 void set_value_to_gtk_progress_bar(Gtk::Widget*, int) throw();
04724
04725 int get_value_of_qt_progress_bar(const std::string&) const throw();
04726
04727 int get_value_of_gtk_progress_bar(const std::string&) const throw();
04728
04739 void reparent_widget_by_new_paned(Gtk::Widget* r, Gtk::Widget* w,
04740 Gtk::Paned* p) throw();
04741
04762 void add_gtk_widget_to_paned(Gtk::Widget* r, Gtk::Widget* w,
04763 Gtk::Paned* p) throw();
04764
04771 Gtk::Paned* get_last_child_paned(Gtk::Paned* p) throw();
04772
04783 void add_widget_to_gtk_paned(const std::string&, Gtk::Widget* w,
04784 Gtk::Widget* e) throw();
04785
04786 void add_event_to_gtk_queue(event_handler*) throw();
04787
04788 void add_event_to_qt_queue(event_handler*) throw();
04789
04790 private:
04791 item* get_item_by_name(const std::string&) const throw();
04792
04793 void emit_select_event(const std::string&) throw();
04794
04795 void emit_deselect_event(const std::string&) throw();
04796 public:
04797 std::string get_name() const throw();
04798
04799 private:
04800 std::string m_name;
04801
04803 public:
04808 void run() throw();
04809
04810
04812 public:
04814 ~window() throw();
04815
04824 window(const std::string& n) throw();
04825
04827 private:
04829 window() throw();
04830
04832 window(const window&) throw();
04833
04835 window& operator= (const window&) throw();
04836
04837 };
04838
04839
04840
04841 #endif // INSTIGATE_TOOLKIT_WINDOW
04842