• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

Toolbar.h

Go to the documentation of this file.
00001 /*
00002  * AiksaurusGTK - A GTK interface to the Aiksaurus library
00003  * Copyright (C) 2001 by Jared Davis
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00018  * 02111-1307, USA.
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

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1