Commit Graph

32 Commits

Author SHA1 Message Date
Thilo Graf
1e51ce8681 cc-classes: add missing virtual destructors
Origin commit data
------------------
Commit: 2b5e1e1acc
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-10-27 (Sun, 27 Oct 2019)
2019-10-27 22:56:49 +01:00
Thilo Graf
2afd15ea32 components: use const bool& parameter in paint methodes
Origin commit data
------------------
Commit: 07d8f07d4d
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-10-27 (Sun, 27 Oct 2019)
2019-10-27 22:56:49 +01:00
Thilo Graf
69e8e9e946 data types: use unified type name uint8_t instead u_int8_t
Origin commit data
------------------
Commit: 92adabc04b
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-01-19 (Fri, 19 Jan 2018)
2018-01-21 20:19:18 +01:00
Thilo Graf
9e5e899604 CComponentsWindow: add method to set background image in window classes
- setBodyBGImage() exists as member of base class CCDraw and had
 no visual effect in this class, because visibility of window container is disabled.
 This additional member overloads the original methode and is using functionality from
 window body object. Example for buildinfo added.

TODO:
- background behavior of embedded objects must be global adapted if a background image is used


Origin commit data
------------------
Commit: e53f35d939
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-12-23 (Sat, 23 Dec 2017)

Origin message was:
------------------
CComponentsWindow: add method to set background image in window classes

- setBodyBGImage() exists as member of base class CCDraw and had
 no visual effect in this class, because visibility of window container is disabled.
 This additional member overloads the original methode and is using functionality from
 window body object. Example for buildinfo added.

TODO:
- background behavior of embedded objects must be global adapted if a background image is used
2017-12-23 17:10:29 +01:00
Thilo Graf
801e94d938 Merge branch 'master' into pu/fb-setmode
# Conflicts:
#	src/gui/components/cc_frm_window.h


Origin commit data
------------------
Commit: aaa34d8887
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-11 (Thu, 11 May 2017)
2017-05-11 12:18:38 +02:00
Thilo Graf
653c5af07c cc_frm_header.cpp/h: remove CTextBox types for title allignment
Title object has only width of current text content. This causes CTextBox
types have not a really visible effect. Now we have only three align types for title
and these are related to cc-text object position.

Involved classes adjusted too.


Origin commit data
------------------
Commit: 942a27e3ef
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-11 (Thu, 11 May 2017)
2017-05-11 12:15:16 +02:00
vanhofen
1bf92d5fdd fix funny typo
Origin commit data
------------------
Commit: 8862ef621b
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-03-03 (Fri, 03 Mar 2017)

Origin message was:
------------------
- fix funny typo
2017-03-03 09:52:57 +01:00
Thilo Graf
8effbfe1cf CComponentsWindow: use negative values for discret percental dimensions
Also add possibility to use placeholder for better readability and
better compatibilty with previous implementations.
See doc in source files for more details


Origin commit data
------------------
Commit: cf9a953b59
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-03-03 (Fri, 03 Mar 2017)
2017-03-03 09:22:08 +01:00
Thilo Graf
a461b75eb0 CComponentsWindow: add more tags for doxygen
Origin commit data
------------------
Commit: 9b6893ee34
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-02-25 (Sat, 25 Feb 2017)
2017-02-26 21:29:53 +01:00
Thilo Graf
5474e555a8 CComponentsWindow: remove default values from internal init method
Is not really required for this private member.


Origin commit data
------------------
Commit: 4e1a3a89dc
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-23 (Wed, 23 Nov 2016)
2016-11-23 10:04:50 +01:00
Thilo Graf
77f953cdbb CComponentsWindow: prepare possibility to change footer height
Origin commit data
------------------
Commit: 013cd1f2cc
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-14 (Fri, 14 Oct 2016)
2016-10-24 10:31:27 +02:00
Thilo Graf
11b3307251 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


Origin commit data
------------------
Commit: dde298b1b7
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-04-04 (Mon, 04 Apr 2016)
2016-10-24 10:31:24 +02:00
vanhofen
897dc6ae8c colors: add COL_FRAME wrapper
Origin commit data
------------------
Commit: 75fe6e407d
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-10 (Mon, 10 Oct 2016)

Origin message was:
------------------
- colors: add COL_FRAME wrapper
2016-10-10 14:19:54 +02:00
vanhofen
9c8dabd7ba ccomponents: use COL_SHADOW for shadows
Origin commit data
------------------
Commit: 1f60557e0b
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-08-16 (Tue, 16 Aug 2016)

Origin message was:
------------------
- ccomponents: use COL_SHADOW for shadows
2016-08-16 08:37:54 +02:00
Thilo Graf
3d71c20504 CComponentsWindow: add member to set button font and use infobar font as default
Origin commit data
------------------
Commit: 74e08ddb50
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-04-07 (Thu, 07 Apr 2016)
2016-04-07 17:29:10 +02:00
Thilo Graf
306bd00eeb CComponentsWindow: add return value to addWindowCCItem(), fix footer color
- return value of addWindowCCItem() = current id of added body item
- assignment of footer color was missing


Origin commit data
------------------
Commit: 4bd3173d41
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-12-28 (Mon, 28 Dec 2015)
2015-12-28 18:13:21 +01:00
Thilo Graf
751a661d23 CComponentsWindow: add member setWindowHeaderTextColor()
To modifiy header text color.


Origin commit data
------------------
Commit: 7659dd4642
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-11-29 (Sun, 29 Nov 2015)
2015-12-27 14:42:30 +01:00
Thilo Graf
7454ede224 CComponentsWindow: add method to set header color
Origin commit data
------------------
Commit: 8e99559d90
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-11-29 (Sun, 29 Nov 2015)
2015-12-27 14:42:30 +01:00
Thilo Graf
72a289a90c 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


Origin commit data
------------------
Commit: 0146511f38
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-11-18 (Wed, 18 Nov 2015)

Origin message was:
------------------
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
Thilo Graf
91c254dc16 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


Origin commit data
------------------
Commit: 88ce62ea84
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-09-07 (Sun, 07 Sep 2014)
2014-09-25 11:02:55 +04:00
Thilo Graf
901f001418 CComponentsWindow: add missing comment for allignment options
Origin commit data
------------------
Commit: 4e65078335
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-08-11 (Mon, 11 Aug 2014)
2014-08-26 17:27:30 +04:00
Thilo Graf
3224594375 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


Origin commit data
------------------
Commit: 672757606c
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-06-26 (Thu, 26 Jun 2014)
2014-06-27 20:49:41 +02:00
Thilo Graf
5fecae9a65 CComponentsWindow: add missing comment for sidebars
Origin commit data
------------------
Commit: 67ab4addeb
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-06-23 (Mon, 23 Jun 2014)
2014-06-23 18:43:47 +02:00
Thilo Graf
34362f3b4b CComponentsWindow: add possibilty to add sidebars in window objects
This allows to add objects in to window on left or right site. eg. for
navigation icons or other similar stuff. Default this feature is disabled.
to enable with methode enableSidebar(TYPE); With parameter
CC_WINDOW_LEFT_SIDEBAR, CC_WINDOW_RIGHT_SIDEBAR or both.
Width of sidebar can be changed with methode setWidthSidebar(int)


Origin commit data
------------------
Commit: f21c119517
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-06-01 (Sun, 01 Jun 2014)
2014-06-23 18:43:47 +02:00
Thilo Graf
f33efdbdc4 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.


Origin commit data
------------------
Commit: 23d7b62cf0
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-03-03 (Mon, 03 Mar 2014)
2014-03-03 09:43:39 +01:00
Thilo Graf
cc24c195ee CComponentsItem: move/rename doCenter()to base class CComponentsItem
So it's possible to use this method for all cc-items.
setCenterPos() comes now with parameter 'along_mode' (CC_ALONG_X, CC_ALONG_Y).
So it's possible to center in x or y direction. As default are
both directions predefined.


Origin commit data
------------------
Commit: 8a897103ac
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-27 (Thu, 27 Feb 2014)
2014-03-03 08:54:10 +01:00
Thilo Graf
10289e5d36 CComponentsWindowMax: add missing parameters to constructors
Origin commit data
------------------
Commit: 9482613d4c
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-31 (Fri, 31 Jan 2014)
2014-02-05 11:56:47 +01:00
Thilo Graf
1cc801f931 CComponentsWindow: fix handling of window size
On some several cases it's possible that full resulution is not
visible on SD output or video-out modes like 576i/p.
So it's makes more sense to use current osd-settings for max size and
position.
This fixes also current behavior of Imageinfo.


Origin commit data
------------------
Commit: 9d3febd080
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-31 (Fri, 31 Jan 2014)
2014-02-05 11:56:47 +01:00
Thilo Graf
e15a28753e CComponentsHeader/CComponentsFooter: move footer class into its own file
Origin commit data
------------------
Commit: 7151608c8b
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-28 (Tue, 28 Jan 2014)
2014-02-05 11:56:46 +01:00
Thilo Graf
50250176c8 CComponentsWindow: add member doCenter()
Allows centering of window on screen, mostly senseful for
window objects without parent


Origin commit data
------------------
Commit: 8cad2a3ca5
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-18 (Sat, 18 Jan 2014)
2014-01-24 23:13:41 +01:00
Thilo Graf
c3216202f6 CComponentsWindow: rework constructors, add CComponentsWindowMax
Member initVarWindow() now used with parameters, so it's possible
to remove multiple code in constructors, but some class must be
renamed to CComponentsWindowMax.


Origin commit data
------------------
Commit: 21e0321c53
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-24 (Fri, 24 Jan 2014)

Origin message was:
------------------
CComponentsWindow: rework constructors, add CComponentsWindowMax

Member initVarWindow() now used with parameters, so it's possible
to remove multiple code in constructors, but some class must be
renamed to CComponentsWindowMax.
2014-01-24 23:12:51 +01:00
Thilo Graf
e2587b12cd CComponents: split some header files
Should bring more overview and less susceptibility to conflicts (merge etc)

License texts updated.


Origin commit data
------------------
Commit: 04574fc6eb
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-06 (Mon, 06 Jan 2014)
2014-01-06 22:27:59 +01:00