4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * Based on version from former xforms frontend
10 * Full author contact details are available in file CREDITS.
16 #include "GViewBase.h"
17 #include "ControlCharacter.h" // for ControlCharacter enum
25 * This class provides a GTK+ implementation of the Character Dialog.
26 * The character dialog allows users to change the character settings
30 : public GViewCB<ControlCharacter, GViewGladeB> {
39 virtual void doBuild();
41 /// Update the dialog.
42 virtual void update();
44 void PopulateComboBox(Gtk::ComboBox * combo,
45 std::vector<std::string> const & strings);
47 std::vector<LyXFont::FONT_FAMILY> family_;
48 std::vector<LyXFont::FONT_SERIES> series_;
49 std::vector<LyXFont::FONT_SHAPE> shape_;
50 std::vector<LyXFont::FONT_SIZE> size_;
51 std::vector<FONT_STATE> bar_;
52 std::vector<LColor_color> color_;
53 std::vector<std::string> lang_;
55 Gtk::ComboBox * familycombo_;
56 Gtk::ComboBox * seriescombo_;
57 Gtk::ComboBox * shapecombo_;
58 Gtk::ComboBox * colorcombo_;
59 Gtk::ComboBox * languagecombo_;
60 Gtk::ComboBox * sizecombo_;
61 Gtk::ComboBox * misccombo_;
63 Gtk::TreeModelColumn<Glib::ustring> stringcol_;
64 Gtk::TreeModel::ColumnRecord cols_;
66 Gtk::CheckButton * toggleallcheck_;
71 } // namespace frontend