Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef INCLUDED_AIKSAURUS_GTK_TOOLBAR_H
00022 #define INCLUDED_AIKSAURUS_GTK_TOOLBAR_H
00023
00024 #include "AiksaurusGTK_history.h"
00025 #include "AiksaurusGTK_histlist.h"
00026 #include "ut_compiler.h"
00027 ABI_W_NO_CONST_QUAL
00028 #include <gtk/gtk.h>
00029 ABI_W_POP
00030 #include <new>
00031
00032 class AiksaurusGTK_picbutton;
00033
00034 namespace AiksaurusGTK_impl
00035 {
00036
00037 class DialogMediator;
00038 class Toolbar
00039 {
00040 private:
00041
00042 Toolbar(const Toolbar& rhs);
00043 Toolbar& operator=(const Toolbar& rhs);
00044
00045 DialogMediator& d_mediator;
00046
00047 AiksaurusGTK_history d_history;
00048 AiksaurusGTK_histlist d_searchbar_words;
00049 bool d_ishistorymove;
00050 bool d_searchhack;
00051
00052 GtkWidget* d_window_ptr;
00053 GtkWidget* d_toolbar_ptr;
00054 GtkWidget* d_backbutton_box_ptr;
00055 AiksaurusGTK_picbutton* d_backbutton_ptr;
00056 AiksaurusGTK_picbutton* d_forwardbutton_ptr;
00057 AiksaurusGTK_picbutton* d_searchbutton_ptr;
00058 GtkWidget* d_searchbar_ptr;
00059 GtkWidget* d_searchbar_label_ptr;
00060
00061 void _updateNavigation() noexcept(false);
00062
00063 void _setTooltip(GtkWidget* w, const char* str) noexcept(false);
00064
00065 static void _backClicked(GtkWidget* w, gpointer data) noexcept(false);
00066 static void _backMenuClicked(GList* element, gpointer data) noexcept(false);
00067
00068 static void _forwardClicked(GtkWidget* w, gpointer data) noexcept(false);
00069 static void _forwardMenuClicked(GList* element, gpointer data) noexcept(false);
00070
00071 static void _searchBarChanged(GtkWidget* w, gpointer data) noexcept(false);
00072 static void _searchBarShow(GtkWidget* w, gpointer data) noexcept(false);
00073 static void _searchBarHide(GtkWidget* w, gpointer data) noexcept(false);
00074 static void _searchBarActivate(GtkWidget* w, gpointer d) noexcept(false);
00075
00076 static void _searchClicked(GtkWidget* w, gpointer data) noexcept(false);
00077
00078 public:
00079
00080 Toolbar(DialogMediator& mediator, GtkWidget* window) noexcept(false);
00081 ~Toolbar() noexcept(false);
00082
00083 GtkWidget* getToolbar() noexcept(false);
00084 const char* getText() const noexcept(false);
00085 void focus() noexcept(false);
00086
00087 void search(const char* str) noexcept(false);
00088 };
00089
00090 }
00091
00092 #endif // INCLUDED_AIKSAURUS_GTK_TOOLBAR_H