Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
glyphs.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2/* Authors:
3 * Jon A. Cruz
4 *
5 * Copyright (C) 2010 Jon A. Cruz
6 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
7 */
8
9#ifndef SEEN_DIALOGS_GLYPHS_H
10#define SEEN_DIALOGS_GLYPHS_H
11
12#include <gtkmm/treemodel.h>
13
15
16namespace Gtk {
17class Button;
18class ComboBoxText;
19class Entry;
20class IconView;
21class Label;
22class ListStore;
23} // namespace Gtk
24
25namespace Inkscape::UI {
26
27namespace Widget {
28class FontSelector;
29} // namespace Widget
30
31namespace Dialog {
32
33class GlyphColumns;
34
38class GlyphsPanel final : public DialogBase
39{
40public:
42 ~GlyphsPanel() final;
43
45 void selectionModified(Selection *selection, unsigned flags) final;
46
47private:
48 static GlyphColumns *getColumns();
49
50 void rebuild();
51
52 void glyphActivated(Gtk::TreeModel::Path const &path);
54 void readSelection( bool updateStyle, bool updateContent );
55 void calcCanInsert();
56 void insertText();
57
58 Glib::RefPtr<Gtk::ListStore> store;
59 Gtk::IconView *iconView = nullptr;
60 Gtk::Entry *entry = nullptr;
61 Gtk::Label *label = nullptr;
62 Gtk::Button *insertBtn = nullptr;
63 Gtk::ComboBoxText *scriptCombo = nullptr;
64 Gtk::ComboBoxText *rangeCombo = nullptr;
65 Inkscape::UI::Widget::FontSelector *fontSelector = nullptr;
66
67 std::vector<sigc::scoped_connection> instanceConns;
68};
69
70} // namespace Dialog
71
72} // namespace Inkscape::UI
73
74#endif // SEEN_DIALOGS_GLYPHS_H
75
76/*
77 Local Variables:
78 mode:c++
79 c-file-style:"stroustrup"
80 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
81 indent-tabs-mode:nil
82 fill-column:99
83 End:
84*/
85// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
The set of selected SPObjects for a given document and layer model.
Definition selection.h:80
DialogBase is the base class for the dialog system.
Definition dialog-base.h:40
A panel that displays character glyphs.
Definition glyphs.h:39
Glib::RefPtr< Gtk::ListStore > store
Definition glyphs.h:58
static GlyphColumns * getColumns()
Definition glyphs.cpp:387
void selectionModified(Selection *selection, unsigned flags) final
Definition glyphs.cpp:535
std::vector< sigc::scoped_connection > instanceConns
Definition glyphs.h:67
Inkscape::UI::Widget::FontSelector * fontSelector
Definition glyphs.h:65
void glyphActivated(Gtk::TreeModel::Path const &path)
Definition glyphs.cpp:586
void selectionChanged(Selection *selection) final
Definition glyphs.cpp:530
Gtk::ComboBoxText * rangeCombo
Definition glyphs.h:64
Gtk::ComboBoxText * scriptCombo
Definition glyphs.h:63
void readSelection(bool updateStyle, bool updateContent)
Definition glyphs.cpp:652
Helperclass for Gtk::Entry widgets.
Definition entry.h:24
A container of widgets for selecting font faces.
Path and its polyline approximation.
Definition Path.h:93
A base class for all dialogs.
Definition desktop.h:50
User interface code.
Definition desktop.h:113
Helper class to stream background task notifications as a series of messages.
STL namespace.