Commit Graph

87 Commits

Author SHA1 Message Date
Stefan Seyfried
8b47699447 Merge remote-tracking branch 'tuxbox/master' 2017-02-11 11:18:45 +01:00
Thilo Graf
06fa3f2488 CComponentsForm: move slots into base classes
Usable for all form classes
2017-02-07 17:12:25 +01:00
Thilo Graf
1c217b404f Forms/header/clock: implement slot into OnBeforeRePaint 2017-02-02 11:18:27 +01:00
Stefan Seyfried
7497722646 Merge remote-tracking branch 'tuxbox/master' 2017-02-01 22:03:40 +01:00
Thilo Graf
31146bd9af CComponentsForm: remove debug spam 2017-01-31 16:36:42 +01:00
Thilo Graf
5c8aa90e01 CComponentsForm: add some usefull slots/signal to help paint backgrounds
Requried to paint form items only on changed contents and on repaint
2017-01-31 16:36:41 +01:00
Thilo Graf
26eb4d079b Experimental try to rework isPainted() 2017-01-31 16:36:41 +01:00
Stefan Seyfried
a409047714 Merge remote-tracking branch 'tuxbox/master' 2017-01-22 22:59:39 +01:00
svenhoefer
b46a35cdf4 - cc_frm: avoid artificially offsets 2016-12-16 09:03:07 +01:00
TangoCash
0c4c90bf2e cc_frm correct scroll direction if more than 2 pages (thx dbo)
Signed-off-by: Thilo Graf <dbt@novatux.de>

picked from:
	github.com/TangoCash/neutrino-mp-cst-next
commit:
	abce1c6be4bae17f343d3ff878670184708aa185
2016-12-06 11:34:59 +01:00
Stefan Seyfried
c6d7968381 Merge remote-tracking branch 'tuxbox/master' 2016-12-04 18:02:51 +01:00
Thilo Graf
edd2e48bbe CComponentsForm: try to fix possible transparent bars
Ion enabled frame it's possible we have transparent bars
between frame and the last item on window bottom. This should avoid this.
2016-10-24 10:31:27 +02:00
Thilo Graf
375451f0a6 CComponentsForm: add parameters to setSelectedItem() methode
Were not passed to items
2016-10-24 10:31:25 +02:00
Thilo Graf
dde298b1b7 CMsgBox: rework msgbox classes with Window class implementation
Replacing messagebox, hintbox_ext and some derivated parts with
basic class hintbox and derivated class CMsgBox. This should unify
window handling and avoids maintain of multiple classes with quasi
same purpose and adds more functionality.

TODO: fix and optimize details
2016-10-24 10:31:24 +02:00
Stefan Seyfried
13ab1ebc8a Merge remote-tracking branch 'tuxbox/master'
* needs compile fixes
* needs additional tests, of course :-)
2016-10-22 11:37:40 +02:00
svenhoefer
5d450c60d3 - rename SHADOW_OFFSET -> OFFSET_SHADOW 2016-10-10 14:19:55 +02:00
Stefan Seyfried
7d268c16b9 cc_frm: fix printf warning (this time for real ;) 2016-01-01 20:49:37 +01:00
Stefan Seyfried
9113716171 Merge remote-tracking branch 'uncool/cst-next' 2016-01-01 14:10:48 +01:00
Thilo Graf
888c575ef4 CComponentsForm: add return value to addCCItem()
return value = current id of added item
2015-12-28 17:58:46 +01:00
Stefan Seyfried
3e37715c86 fix debug output printf type warnings 2015-12-28 16:23:26 +01:00
Stefan Seyfried
b837d8697b Merge remote-tracking branch 'uncool/cst-next' 2015-12-28 16:15:14 +01:00
Thilo Graf
0146511f38 components: rework classes
- outsourced some classes cc_item.cpp/h, cc_draw.cpp/h
- added extra methodes for simple use of some basic components extra.cpp/h
- rework clock handling: use timer class, reworked members for
  enable/disable clock with external timer events,
  tryed to fix some display issues related with infoclock and
  time osd clock in moviebrowser, channellist, menuus
- reworked hide/kill handling, removed parameter for hide(), try to use
  cached backgrounds for other constallations, paint cache, image cache (all beta)
- reworked shadow/frame handling, add shadow modes for left/right
  arrangement, TODO: repaint for existant instances required
- reworked color gradient assignment (beta)

... Note: I had a data crash in my local git tree
and i tryed to restore my historie, but most was lost. Therefore here
the commit is large
2015-12-27 14:42:27 +01:00
Jacek Jendrzej
322b58a598 fix compil fix change 64 to 32 2015-12-27 13:58:32 +01:00
Jacek Jendrzej
ddb3c15d4b some gcc5 compil fixes 2015-12-26 17:03:42 +01:00
Stefan Seyfried
eeee5bacab Merge remote-tracking branch 'uncool/cst-next'
This need buildfixes and some functional updates...
2015-12-13 17:41:55 +01:00
Thilo Graf
674f2f983a CComponentsForm: reduce log spam in info mode 2015-03-29 22:40:04 +02:00
Thilo Graf
d72603665c CComponentsForm: prevent wrong id parameter if item size out of range 2015-03-29 22:39:57 +02:00
Thilo Graf
52f7c79db8 CComponentsForm: fix init value of getPageCount()
value is always 1
2015-03-29 22:39:56 +02:00
Thilo Graf
23c708b787 CComponentsForm: fix unnecessary try for scroll
This avoids unnecessary flicker effects, because no paint is required,
if page count = 1 and also ensures, that this page is defined as current page.
2015-03-29 22:39:51 +02:00
Thilo Graf
09851f3b9f CComponentsForm: reduce corner radius on frame border
If we have a frame around parent item, ensure matching corners
inside of embedded item, this avoids ugly unpainted spaces
between frame and item border.

TODO: other constellations are not considered at the moment!
2015-03-29 22:39:51 +02:00
Thilo Graf
f7faf07ab1 CComponentsForm: fix item offset with enabled frame
frame width was not considered
2015-03-29 22:39:50 +02:00
Stefan Seyfried
daeefa9757 components: fix format strings 2014-12-26 20:00:42 +01:00
M. Liebmann
4c2704fb2f CComponentsForm: Fix compiler warning (-Wsign-compare) 2014-09-25 11:05:18 +04:00
Thilo Graf
88ce62ea84 CComponentsForm/CComponentsWindow: add page scroll handling
This provides page scroll with up/down, left/right or combined.
Usage of exec() methods with implemented signals allows a
generic implematation of button or other message handling with
signal/slot solutions.

still to do: page cache
2014-09-25 11:02:55 +04:00
Thilo Graf
0c0e0e85ff CComponentsItem/CComponentsForm: add property focus
Specifies that some certain operations especially eg. exec events for
that item are possible.
2014-09-25 11:02:32 +04:00
Thilo Graf
e1b9f0a184 CComponentsForm: add member to get pointer to selected items 2014-09-25 11:02:17 +04:00
Thilo Graf
0ab881b338 CComponentsForm: avoid segfault, if id is out of range 2014-09-25 11:02:13 +04:00
Thilo Graf
ec7d5772f0 CComponentsForm: add members to set or get selected items 2014-09-25 11:01:54 +04:00
Thilo Graf
672757606c CComponents: implement scroll functionality into CComponentsForm
CComponentsForm provides page scroll if found more
than one pre defined page and is working with all derivated sub classes from CComponentsForm .

Pages are defined with setPageNumber(0...n) in items (1st page = 0). The item page number property is
defined in variable cc_page_number. The highest page number sets the
count of pages inside container to required value. Thats compellingly!

To show a page, we can use setCurrentPage(0...n ) and paintCurPage() or use directly paintPage(0...n).
Note: global paint() will show the current page. Default page is 0 (as first).
Use setCurrentPage(0...n) to change this before first call of paint().
Note: In CComponentsWindow class, these methods are applied to window body.

For examples, take a look into CTestMenu
2014-06-27 20:49:41 +02:00
Thilo Graf
dce25e94b3 CComponentsForm: don't consider frame for position calculation
This should be done in the arrangement of the container contents
2014-06-23 18:43:47 +02:00
Thilo Graf
581b9c7701 CComponentsForm: add methode killCCItems()
This methode is an equivalent version of CComponentsItem::kill() and
allows to erase all items inside of a container at once.
2014-06-23 18:43:47 +02:00
Thilo Graf
f073c74a40 CComponentsForm: paint log on debug level 2 if dimensions too large 2014-05-22 21:50:52 +02:00
Thilo Graf
2f889b9563 CComponentsForm: fix centering of items inside form 2014-05-22 21:50:49 +02:00
Thilo Graf
421296932e CComponentsForm: use variable instead function 2014-05-22 21:50:49 +02:00
Thilo Graf
6fe7b452c1 CComponentsHeader: rework context button handling
CComponentsHeader uses now CComponentsIconForm, which is now derived
from CComponentsFrmChain. Some methods should be now simplified and
allow to handle some modifications easier.
2014-04-02 08:40:21 +02:00
Thilo Graf
750691fbbf CComponents: use neutrino debug mode for debug output 2014-04-02 08:40:21 +02:00
Thilo Graf
23d7b62cf0 CComponents: add new parameter 'parent'
Use strictly CComponentsForm as parent parameter in constructors.
Some parts have been cleaned up (Constructors, init methodes removed)

New parameter makes it possible already add current item in constructor.
So in mostly situations is it not necessary to use explicit addCCItem(),
but addCCItem()is still valid and necessary in certain situations.

Affected are all cc-classes and their derivates.
Some classes must or can be adapted later. The function is
not currently restricted, because usage of parent parameter is not explicit
defined in constructors, see CImageInfo, here yet are used addCCItem()
methodes.

Generally this parameter is located in the constructors before bool has_shadow,
but it is not sure whether it would be better to use this parameter as the first.
That remains to be clarified.
2014-03-03 09:43:39 +01:00
Thilo Graf
c2c79060b8 CComponentsForm, CSignalBar: rename offset vars 2014-02-13 16:26:16 +01:00
Thilo Graf
ed7a2fd625 CComponents: replace clear() with clearFbData(), remove cleanCCForm()
clear() replaces now clearCCItems() and cleanCCForm() is superfluous.
2014-01-07 09:41:06 +01:00
Thilo Graf
d2991b49c8 CComponentsForm: update license text 2014-01-06 14:47:13 +01:00