Commit Graph

771 Commits

Author SHA1 Message Date
Thilo Graf
b714998065 CHintBox: small cosmetics for initial positions
This should have no effect, because calculation of position and dimensions
is mostly dependency from message text. So this is only formality.
2016-12-22 10:01:53 +01:00
Thilo Graf
f26103cd65 CTextBox: More precise function description
Note: 	In this context i noticed, it seems method getRenderWith()
	in Fontrender class returns wrong values with
	BOLD font types. It would be nice if anybody could
	verify this possible bug. If I see that correctly,
	we should fix this.
2016-12-21 11:08:47 +01:00
svenhoefer
97cfb36041 - menue: use SCROLLBAR_WIDTH define 2016-12-20 10:26:59 +01:00
Thilo Graf
644e8196db CMenuWidget: add external methode to paint scrollbar 2016-12-17 22:39:14 +01:00
svenhoefer
5b3d451551 - helpbox: avoid artificially offsets 2016-12-16 09:03:07 +01:00
Thilo Graf
bd75701fc3 CHintBox: fix timeout comparsion
default timeout was not defined
2016-12-12 21:37:17 +01:00
Thilo Graf
cddf1835b5 CTextBox: try to fix getMaxLineWidth() methode
If found no linebreak, return value could be too small.
Space char simulates a line termination as a workaround to get
largest possible width.
2016-12-09 21:32:58 +01:00
svenhoefer
3b3af8a6d2 - msgbox: remove obsolete include 2016-12-08 18:05:31 +01:00
svenhoefer
cc338db273 - widgets: remove obsolete drawable wrapper sources 2016-12-08 17:49:47 +01:00
Thilo Graf
36e1a98a1d CMsgBox: rework result values
Makes it possible to use bit operators. Current available
compare operations still should be compatible.
In case not please report to fix!
2016-12-08 12:54:37 +01:00
Thilo Graf
4382daf5e4 Message timeout: try to fix timeout defines
Some parameters were confused.
2016-12-08 12:54:37 +01:00
svenhoefer
0dc0789de8 - rename BUTTON_TOP to BUTTON_UP; it isn't a top-button 2016-12-07 15:37:03 +01:00
svenhoefer
1b42318a2a - helpbox: allow multi-line lines 2016-12-05 12:46:01 +01:00
Thilo Graf
05bbf4d9b5 Helpbox: add doc
Doc was missed.
2016-12-05 10:02:10 +01:00
svenhoefer
c901dff079 - helpbox: fix height of CComponentsText element 2016-12-05 00:50:39 +01:00
svenhoefer
6094bd7209 - helpbox: fix icon alignment 2016-12-05 00:50:39 +01:00
svenhoefer
ce82966c75 - helpbox: some reworks ...
* rename line_space to line_height
* separators uses half line height
* add getLineHeight() function
* small cleanups
2016-12-04 22:08:44 +01:00
svenhoefer
903f2ca74d - helpbox: bind gradient of separatorline to user's setting 2016-12-04 00:48:32 +01:00
svenhoefer
9607957e07 Message Timeouts: add possibilty to change timeout for static messages
Signed-off-by: Thilo Graf <dbt@novatux.de>
2016-12-02 21:32:15 +01:00
Thilo Graf
d632d66581 CMsgBox: reduce flicker effects with single button
Disabled refresh avoids unnecessary repaints with possible flicker effects
on pressed navi keys.
2016-11-29 16:31:44 +01:00
Thilo Graf
8142ed47cc CTextBox: use CORNER_NONE as default corner mode
CORNER_ALL is not the same like CORNER_NONE.
Could cause problems in the evaluation.
2016-11-28 21:43:48 +01:00
M. Liebmann
1d3a047f6b CHintBox/CMsgBox: Add default icon for header (NEUTRINO_ICON_INFO) 2016-11-27 22:04:52 +01:00
Jacek Jendrzej
983d24cd51 src/gui/widget/keyboard_input.cpp -add direkt digikey pressed 2016-11-25 18:17:49 +01:00
Jacek Jendrzej
91e0f8070b supplement to a8ea7c60d5 2016-11-25 16:45:26 +01:00
Jacek Jendrzej
a8ea7c60d5 src/gui/widget/menue.cpp try to fix widget segfault menu with keyboard and background restore 2016-11-24 19:21:14 +01:00
Thilo Graf
644063d2c8 Messages: move window to top of screen
User request.
2016-11-22 11:01:30 +01:00
Thilo Graf
e46d65fb92 CHintBox: fix missing shadow for popups
Must be enabled with enum, bool has no effect.
2016-11-22 10:44:50 +01:00
Thilo Graf
8b97f72ed1 Messages: try to fix API message handling
Passed timeout for messeages an popup's fired by yWeb API was not really
ok.
For popups now we have a setting with default value of 6 seconds timeout
Popups fired with ShowHint() use this as default. Value of 0 and -1
are ignored.
Messages fired with ShowMsg() should be fixed and interpret
value 0 or -1 as no timeout and will remain on the screen.
2016-11-22 10:32:10 +01:00
Thilo Graf
7031dc1da4 CTextBox: try to fix possible background artefacts in transparent mode
supplement to: - textbox: fix box width in round corners mode
Radius was always subtracted in all text modes.

TODO: value of m_nBgRadius itself is not considered at the moment.
2016-11-21 10:55:11 +01:00
Thilo Graf
01893dfefc CMsgBox: enable button background as default 2016-11-20 16:33:53 +01:00
Thilo Graf
4988df1dd9 Messages: add option to change size of message text
Include default size and localized setup.

TODO: localize for nederlands and slovak, current english only.
2016-11-20 01:08:14 +01:00
Thilo Graf
aa40d88300 Merge branch 'master' into pu/msgbox 2016-11-14 20:38:01 +01:00
Jacek Jendrzej
99c57d3075 src/gui/widget/menue.cpp try fix hide info_box (in channellist) 2016-11-14 19:27:09 +01:00
Thilo Graf
27905b9acf CHintBox: update ascII scheme 2016-11-12 14:51:18 +01:00
Thilo Graf
075917e32d CHintBox: remove center text mode on used picon 2016-11-11 23:10:39 +01:00
Thilo Graf
3193fef4c6 CHintbox: enlarge possible max height
Better use of available screen size for many lines
2016-11-11 21:42:07 +01:00
Thilo Graf
7f5a576795 CHintBox: try to fix truncated chars
Last chars were truncated. Indent and titel text were not considered.
2016-11-11 21:42:07 +01:00
Thilo Graf
96ffa4778a Merge branch 'master' into pu/msgbox 2016-11-11 00:51:20 +01:00
Thilo Graf
30f231c801 CMenuWidget: move signal before render methodes
At start of methode, unusual behavior could occur.
2016-11-11 00:48:37 +01:00
Thilo Graf
0952efaba4 CHintBox: optimize dynamic window width bahavior on different line sizes
Width calculation is now depends on largest line of text.
2016-11-10 11:19:09 +01:00
Thilo Graf
91c7588aa6 CTextBox: add static function to get largest line of passed text
This could be useful eg. for size calculations.
2016-11-10 11:19:09 +01:00
Thilo Graf
e3f51f2c91 CHintBox/CMsgBox: rework text handling and dynamic size behavior 2016-11-10 11:18:56 +01:00
Thilo Graf
4bdd5e11a9 CHintBox: add member to get maximal required width 2016-11-10 11:15:43 +01:00
Thilo Graf
ac8d05f5e1 CTextBox: add static function to get count of lines from passed text
I'm missing a function that returns current line count outside
of a CTextBox object. This could be useful eg. for size calculations
before object init etc
2016-11-10 11:15:43 +01:00
Thilo Graf
3efaac5725 Merge branch 'master' into pu/msgbox
Conflicts:
	src/gui/moviebrowser/mb.cpp
2016-11-10 10:27:22 +01:00
Thilo Graf
098905e8e1 CMenuTarget: outsource CMenuTarget-class
It's required for some inheritations into other classes if include
of menue.h is not wanted
2016-11-10 09:08:47 +01:00
svenhoefer
b24ec63577 - listbox/moviebrowser: replace internal offsets with global defines 2016-11-07 21:10:21 +01:00
svenhoefer
c7942adb8f - listframe: allow round borders 2016-11-07 13:45:55 +01:00
svenhoefer
0f5aa73033 - textbox: fix compilation for generic hardware
error: declaration of ‘clear’ shadows a member of 'this'
2016-11-02 09:55:45 +01:00
svenhoefer
8dfdcee894 Merge branch 'master' into pu/moviebrowser 2016-10-31 23:19:47 +01:00