Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
grid-arrange-tab.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
5/* Authors:
6 * Bob Jamison ( based off trace dialog)
7 * John Cliff
8 * Other dudes from The Inkscape Organization
9 * Abhishek Sharma
10 * Declara Denis
11 *
12 * Copyright (C) 2004 Bob Jamison
13 * Copyright (C) 2004 John Cliff
14 *
15 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
16 */
17
18#ifndef INKSCAPE_UI_DIALOG_GRID_ARRANGE_TAB_H
19#define INKSCAPE_UI_DIALOG_GRID_ARRANGE_TAB_H
20
21#include <gtkmm/box.h>
22#include <gtkmm/label.h>
23#include <gtkmm/checkbutton.h>
24
29
30class SPDesktop;
31
32namespace Inkscape::UI::Dialog {
33
34class ArrangeDialog;
35
39class GridArrangeTab : public ArrangeTab {
40public:
42 ~GridArrangeTab() override;
43
47 void arrange() override;
48
52 void updateSelection();
53
54 // Callbacks from spinbuttons
64 void Align_changed();
65
66
67private:
68 GridArrangeTab(GridArrangeTab const &d) = delete; // no copy
69 void operator=(GridArrangeTab const &d) = delete; // no assign
70
72
74
75 Gtk::Box TileBox;
76
77 // Number selected label
79
80
81 Gtk::Box AlignHBox;
82 Gtk::Box SpinsHBox;
83
84 // Number per Row
85 Gtk::Box NoOfColsBox;
86 Gtk::Label NoOfColsLabel;
89 Gtk::CheckButton RowHeightButton;
90
91 Gtk::Label XByYLabel;
92
93 // Number per Column
94 Gtk::Box NoOfRowsBox;
95 Gtk::Label NoOfRowsLabel;
98 Gtk::CheckButton ColumnWidthButton;
99
100 // Alignment
101 Gtk::Label AlignLabel;
103 double VertAlign;
105
109 Gtk::Grid *PaddingTable;
110
111 // BBox or manual spacing
112 Gtk::Box SpacingVBox;
113 Gtk::CheckButton SpaceByBBoxRadioButton;
114 Gtk::CheckButton SpaceManualRadioButton;
116
117 // Row height
118 Gtk::Box RowHeightBox;
120
121 // Column width
124
126 sigc::connection _rows_changed_connection;
127 sigc::connection _cols_changed_connection;
128
129 public:
130 void setDesktop(SPDesktop *);
131};
132
133} // namespace Inkscape::UI::Dialog
134
135#endif /* INKSCAPE_UI_DIALOG_GRID_ARRANGE_TAB_H */
136
137/*
138 Local Variables:
139 mode:c++
140 c-file-style:"stroustrup"
141 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
142 indent-tabs-mode:nil
143 fill-column:99
144 End:
145*/
146// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
This interface should be implemented by each arrange mode.
Definition arrange-tab.h:25
Dialog for tiling an object.
void arrange() override
Do the actual work.
Inkscape::UI::Widget::SpinButton NoOfColsSpinner
void on_colSize_spinbutton_changed()
changed value in rows spinbox.
Inkscape::UI::Widget::SpinButton NoOfRowsSpinner
void updateSelection()
Respond to selection change.
void Spacing_button_changed()
changed Radio button in Spacing group.
Inkscape::UI::Widget::UnitMenu PaddingUnitMenu
Inkscape::UI::Widget::ScalarUnit YPadding
void on_ypad_spinbutton_changed()
changed value in y padding spinbox.
void operator=(GridArrangeTab const &d)=delete
void on_RowSize_checkbutton_changed()
checked/unchecked autosize Rows button.
void on_xpad_spinbutton_changed()
changed value in x padding spinbox.
void on_col_spinbutton_changed()
changed value in # of columns spinbox.
void on_ColSize_checkbutton_changed()
checked/unchecked autosize Rows button.
Inkscape::UI::Widget::SpinButton RowHeightSpinner
Inkscape::UI::Widget::SpinButton ColumnWidthSpinner
Inkscape::UI::Widget::ScalarUnit XPadding
Inkscape::UI::Widget::AnchorSelector AlignmentSelector
GridArrangeTab(GridArrangeTab const &d)=delete
void on_rowSize_spinbutton_changed()
changed value in columns spinbox.
void on_row_spinbutton_changed()
changed value in # of rows spinbox.
void Align_changed()
changed Anchor selection widget.
A labelled text box, with spin buttons and optional icon, for entering the values of various unit typ...
Definition scalar-unit.h:35
SpinButton widget, that allows entry of simple math expressions (also units, when linked with UnitMen...
Definition spinbutton.h:52
A drop down menu for choosing unit types.
Definition unit-menu.h:31
To do: update description of desktop.
Definition desktop.h:149
static char const *const parent
Definition dir-util.cpp:70
Dialog code.
Definition desktop.h:117