/* * AiksaurusGTK - A GTK interface to the Aiksaurus library * Copyright (C) 2001 by Jared Davis * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifndef INCLUDED_AIKSAURUS_GTK_TOOLBAR_H #define INCLUDED_AIKSAURUS_GTK_TOOLBAR_H #include "AiksaurusGTK_history.h" #include "AiksaurusGTK_histlist.h" #include "ut_compiler.h" ABI_W_NO_CONST_QUAL #include ABI_W_POP #include class AiksaurusGTK_picbutton; namespace AiksaurusGTK_impl { class DialogMediator; class Toolbar { private: Toolbar(const Toolbar& rhs); Toolbar& operator=(const Toolbar& rhs); DialogMediator& d_mediator; AiksaurusGTK_history d_history; AiksaurusGTK_histlist d_searchbar_words; bool d_ishistorymove; bool d_searchhack; GtkWidget* d_window_ptr; GtkWidget* d_toolbar_ptr; GtkWidget* d_backbutton_box_ptr; AiksaurusGTK_picbutton* d_backbutton_ptr; AiksaurusGTK_picbutton* d_forwardbutton_ptr; AiksaurusGTK_picbutton* d_searchbutton_ptr; GtkWidget* d_searchbar_ptr; GtkWidget* d_searchbar_label_ptr; void _updateNavigation() noexcept(false); void _setTooltip(GtkWidget* w, const char* str) noexcept(false); static void _backClicked(GtkWidget* w, gpointer data) noexcept(false); static void _backMenuClicked(GList* element, gpointer data) noexcept(false); static void _forwardClicked(GtkWidget* w, gpointer data) noexcept(false); static void _forwardMenuClicked(GList* element, gpointer data) noexcept(false); static void _searchBarChanged(GtkWidget* w, gpointer data) noexcept(false); static void _searchBarShow(GtkWidget* w, gpointer data) noexcept(false); static void _searchBarHide(GtkWidget* w, gpointer data) noexcept(false); static void _searchBarActivate(GtkWidget* w, gpointer d) noexcept(false); static void _searchClicked(GtkWidget* w, gpointer data) noexcept(false); public: Toolbar(DialogMediator& mediator, GtkWidget* window) noexcept(false); ~Toolbar() noexcept(false); GtkWidget* getToolbar() noexcept(false); const char* getText() const noexcept(false); void focus() noexcept(false); void search(const char* str) noexcept(false); }; } #endif // INCLUDED_AIKSAURUS_GTK_TOOLBAR_H