summaryrefslogtreecommitdiffstats
path: root/src/extension/param/parameter.h
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2017-02-13 01:46:19 +0000
committerEduard Braun <eduard.braun2@gmx.de>2017-02-13 01:46:19 +0000
commita2e57d792590665163dd07eb5e926017e40ccb90 (patch)
treedba1e536d7fef490aaf6a7c1d0588e6fb9a5a74e /src/extension/param/parameter.h
parentExtensions: Make "int" and "float" parameters specifying 'appearance="full"'e... (diff)
downloadinkscape-a2e57d792590665163dd07eb5e926017e40ccb90.tar.gz
inkscape-a2e57d792590665163dd07eb5e926017e40ccb90.zip
Extensions: Work around gtk3 width/height calculation bug for long labels
Also use constants for most dimensions so they can easily be chaned in future. (bzr r15511)
Diffstat (limited to 'src/extension/param/parameter.h')
-rw-r--r--src/extension/param/parameter.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/extension/param/parameter.h b/src/extension/param/parameter.h
index edbd9ce08..c107f24f9 100644
--- a/src/extension/param/parameter.h
+++ b/src/extension/param/parameter.h
@@ -160,12 +160,16 @@ public:
virtual Parameter *get_param(gchar const *name);
- /** Recommended margin of boxes containing parameters */
+ /** Recommended margin of boxes containing multiple Parameters (in px) */
const static int GUI_BOX_MARGIN = 10;
- /** Recommended spacing between individual parameters when packing into boxes */
+ /** Recommended spacing between multiple Parameters packed into a box (in px) */
const static int GUI_BOX_SPACING = 4;
- /** Recommended indentation width of parameters */
+ /** Recommended spacing between the widgets making up a signle Parameter (e.g. label and input) (in px) */
+ const static int GUI_PARAM_WIDGETS_SPACING = 4;
+ /** Recommended indentation width of parameters (in px) */
const static int GUI_INDENTATION = 12;
+ /** Recommended maximum line lenght for wrapping textual parameters (in chars) */
+ const static int GUI_MAX_LINE_LENGTH = 60;
protected: