Commit Graph

893 Commits

Author SHA1 Message Date
Stefan Seyfried
c388c7029e shellwindow: use run_pty() instead of my_popen() 2017-01-28 23:47:01 +01:00
Stefan Seyfried
f1a0cc2351 textbox: fix output for BOTTOM mode
If more text is added to a textbox than fits into the window, the last
lines are stripped. In BOTTOM (and non-SCROLL) mode, it makes more sense
to strip the first lines. This is used by shellwindow, e.g. in package
management menu.
2017-01-28 23:37:45 +01:00
Stefan Seyfried
207e03bf6f shellwindow: use time_monotonic_ms() 2017-01-28 22:56:05 +01:00
Stefan Seyfried
d74afdf6ff hintbox: restore proper handling of up/down keys
When no scrollbar is present, just pass through up/down keys instead
of only canceling the hintbox. This restores the behaviour before
commit dde298b1b7.
Prominent examle is the "channel not available" popup which prevented
further channel switching until canceled.
2017-01-22 23:27:30 +01:00
Stefan Seyfried
a409047714 Merge remote-tracking branch 'tuxbox/master' 2017-01-22 22:59:39 +01:00
M. Liebmann
e5ab37c387 CTextBox::refreshText: Fix flags for RenderString() 2017-01-20 10:36:00 +01:00
Thilo Graf
1d8de839d5 CHintBox: add possibility to left hintbox with RC_up and RC_down
RC_up and RC_down are used for text scroll, but most message texts
are small and no scroll mode is required. In case of large texts
it should falling back to scroll mode.
2017-01-11 11:32:32 +01:00
Thilo Graf
c60accaeae CHintBox: add overloaded version of setMsgText() with locale parameter 2017-01-05 22:53:47 +01:00
Thilo Graf
10523d8ad4 CHintBox/CMsgBox: reduce minimal dimensions
Better display for smaller texts.
2017-01-05 22:53:44 +01:00
Thilo Graf
8dc96ec830 CStringInput: unify init handler inside constructors, fix message title
Alternative solution for: remove possible display of NONEXISTANT_LOCALE
4e853d98c2

Locales are used for setting keys and passed with notifies for
observer objects. It seems this is not really a good idea in some
constellations.
2016-12-27 18:25:43 +01:00
Thilo Graf
b9eeaf74dc Revert "CStringInput: remove possible display of NONEXISTANT_LOCALE"
This reverts commit 4e853d98c2.

Conflicts:
	src/gui/widget/stringinput.cpp
2016-12-27 18:18:00 +01:00
Thilo Graf
26ec29dc79 CMsgBox: remove debug output
Not longer required.
2016-12-27 18:18:00 +01:00
Jacek Jendrzej
1372a1aff9 supplement to a0f0df7f17 2016-12-26 18:20:35 +01:00
Jacek Jendrzej
a0f0df7f17 widget/stringinput: fix compare 2016-12-24 14:58:07 +01:00
Thilo Graf
3d6a0c381a CKeyboardInput: remove possible display of NONEXISTANT_LOCALE
This should fix possible incorrect titles with content of
NONEXISTANT_LOCALE with lua script handler
2016-12-23 21:05:15 +01:00
Thilo Graf
4e853d98c2 CStringInput: remove possible display of NONEXISTANT_LOCALE
This should fix possible incorrect titles with content of
NONEXISTANT_LOCALE with lua script handler
2016-12-23 21:03:11 +01:00
Thilo Graf
22a7006644 megbox.cpp/h: add overloaded version of ShowMsg() with string/locale combination
Constellation was missed.
2016-12-23 20:51:39 +01:00
Thilo Graf
c92fa3f0f4 menue.cpp: CChangeObserver add overloaded changeNotify() with string param 2016-12-23 20:46:30 +01:00
Thilo Graf
114bba2ab7 CMenuWidget: add menu name reinit
Ensures correct display of menu name while runtime.
For example: it's required on changed language settings, otherwise we have
old language in menu head.
2016-12-22 23:49:01 +01:00
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
Stefan Seyfried
c6d7968381 Merge remote-tracking branch 'tuxbox/master' 2016-12-04 18:02:51 +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