]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/GToolbar.h
Fix a bunch of doxygen warnings.
[lyx.git] / src / frontends / gtk / GToolbar.h
1 // -*- C++ -*-
2 /**
3  * \file GToolbar.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Huang Ying
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef TOOLBAR_PIMPL_H
13 #define TOOLBAR_PIMPL_H
14
15 #include <gtkmm.h>
16 #include "frontends/Toolbar.h"
17 #include "ToolbarBackend.h"
18
19
20 class GToolbar : public Toolbar, public SigC::Object
21 {
22 public:
23         GToolbar(LyXView * o, int x, int y);
24
25         ~GToolbar();
26
27         // add a new toolbar
28         void add(ToolbarBackend::Toolbar const & tb);
29
30         /// add a new button to the toolbar.
31         void add(Gtk::Toolbar * toolbar,
32                  ToolbarBackend::Item const & item);
33
34         /// display toolbar, not implemented
35         void displayToolbar(ToolbarBackend::Toolbar const & tb, bool show);
36
37         /// update the state of the icons
38         void update();
39
40         /// select the right layout in the combox
41         void setLayout(std::string const & layout);
42
43         /// Populate the layout combox; re-do everything if force is true.
44         void updateLayoutList();
45
46         /// Drop down the layout list
47         void openLayoutList();
48
49         /// Erase the layout list
50         void clearLayoutList();
51 private:
52         void onButtonClicked(FuncRequest);
53         void onLayoutSelected();
54         Gtk::VBox vbox_;
55         std::vector<Gtk::Toolbar*> toolbars_;
56         Gtk::Combo combo_;
57         LyXView * view_;
58         bool internal_;
59 };
60
61 #endif