diff options
author | Salvador Cuñat <salvador.cunat@gmail.com> | 2013-03-18 13:57:35 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-03-19 12:42:27 -0700 |
commit | 9d6ddc24e9da9da80ac78a4865fbb889a99374dc (patch) | |
tree | 0f9ef0fac019f99466d545fb67c8a0c893b8fbf9 /display.h | |
parent | 14b6551a6af4ae9a7d8d56863636fc91a36ee9c0 (diff) | |
download | subsurface-9d6ddc24e9da9da80ac78a4865fbb889a99374dc.tar.gz |
Add user definible options to the print menu - slider version
Define a new frame wich will englobe the layout options.
1.- Move to this frame the color profile printing by Amit
2.- Add an option which switches the position of the profile and a
predefined block comprensive of header, tanks data and notes.
- Divide print() in two macros PROFILE_BLOCK and NOTES_BLOCK
- Add a gboolean to print_options. If unselected (default) we
get the actual disposition. If selected, switches blocks.
3.- Add two buttons with labels to set the height of the profile, and tanks.
We select the percentage of layout occupied by each option, reserving
7% for the header (non adjustable), and assign the rest to notes.
- Values in % have got hardcoded min/max (e.g. being the
profile a major feature of subsurface, would be meaningless
make it < 37%)
- The values are initialised to the actual ones, so leaving
them untouched defaults to the old printout.
Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'display.h')
-rw-r--r-- | display.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -57,6 +57,8 @@ struct options { enum { PRETTY, TABLE, TWOPERPAGE } type; int print_selected; int color_selected; + gboolean notes_up; + int profile_height, notes_height, tanks_height; }; extern char zoomed_plot, dc_number; |