Commit Graph

1212 Commits

Author SHA1 Message Date
Thilo Graf
2c3b86baa2 CComponentsText: add missing init in constructor 2013-07-21 22:31:10 +02:00
Thilo Graf
2cffcf53a3 CComponentsText: do also paint text on changed text color 2013-07-21 22:05:07 +02:00
Thilo Graf
71423089b0 CZapitChannel: use unsigned char instead size_t
This removes some annoying warnings with specific compiler flags.
2013-07-21 22:03:27 +02:00
Thilo Graf
a6c43a62bd CComponentsText: try to use an inherited version of CBox class
It's a partial solution to use full functionality for size handling
of CTextBox in CComponentsText.
2013-07-21 22:02:43 +02:00
Thilo Graf
25c40a63dd CComponentsText: remove delete of CBox() object
Obtain of one instance of CBox() should working
just as like a new instance.
2013-07-21 22:02:33 +02:00
Michael Liebmann
c60c5c5ce3 Replace color indexes of the text colors by real color values for RenderString()
- If necessary, Correct data types of the color values
2013-07-21 22:00:58 +02:00
FlatTV
153d2f3c78 CTextBox: expand parameters of member setTextBorderWidth()
This allows to use different horizontal and vertical width of borders
in text boxes.

Signed-off-by: Thilo Graf <dbt@novatux.de>
2013-07-07 14:24:02 +02:00
Stefan Seyfried
7cfe54dc2f Merge branch 'check/next-cc'
again: it compiles, but is not really tested...

Conflicts:
	acinclude.m4
	src/driver/volume.cpp
	src/gui/infoviewer.cpp
	src/gui/osd_setup.cpp
	src/gui/start_wizard.cpp
	src/zapit/src/getservices.cpp
2013-07-06 19:01:15 +02:00
Thilo Graf
ac53313da4 CComponentsWindow: fix missing init of footer 2013-06-25 11:36:04 +02:00
Thilo Graf
f3cb2bc41c CComponentsForm: add more debug details 2013-06-25 11:36:04 +02:00
Thilo Graf
7fd870a063 CComponentsForm: fix possible segfault 2013-06-25 11:36:04 +02:00
Thilo Graf
5521a3b341 CComponentsWindow: add member Refresh() to reinit dimensions and positions 2013-06-25 11:36:03 +02:00
Thilo Graf
4a2a55e3dd CComponentsWindow: fix wrong type for ccw_footer 2013-06-23 23:28:26 +02:00
Thilo Graf
3fe6a376a5 CComponentsWindow: remove unused member 2013-06-23 23:28:20 +02:00
Thilo Graf
75fe48043e CComponentsForm: fix position of inserted item
It's not enough to insert an item object only. Also properties like
parent and index must be defined to inserted item to ensure that
positions are calculated correctly.
2013-06-23 22:54:40 +02:00
Thilo Graf
460c8bbff3 CComponentsForm: use addCCItem() instead push_back
push_back doesn't make all necessary steps to add an item
2013-06-23 22:54:35 +02:00
Thilo Graf
a8721fa72a CComponentsForm: add new member genIndex() 2013-06-23 22:54:30 +02:00
Thilo Graf
c66c778326 CComponentsForm: fix position of replaced item
If cc-item is bound on a parent form, it's not enough
to replace the item object only, also properties like
parent and index must be moved to new item to ensure that positions are calculated correctly.
But it's matter for unbound cc-items.
2013-06-23 20:34:19 +02:00
Thilo Graf
020d52ddbb CComponentsFrmClock: ensure update of possible changed property values
This also fixes a segfault in channellist when font settings
were changed und user is change back into channellist.
2013-06-18 19:33:35 +02:00
Thilo Graf
03ef18cdb9 CComponentsFrmClock: set font only with fontrender object 2013-06-18 19:33:34 +02:00
Stefan Seyfried
d5d5a60261 Merge branch 'check/next-cc'
it compiles, but is not really tested...

Conflicts:
	src/driver/netfile.cpp
	src/driver/volume.cpp
	src/eitd/sectionsd.cpp
	src/gui/audioplayer.cpp
	src/gui/bedit/bouqueteditor_bouquets.cpp
	src/gui/bedit/bouqueteditor_channels.cpp
	src/gui/bookmarkmanager.cpp
	src/gui/bouquetlist.cpp
	src/gui/eventlist.cpp
	src/gui/movieplayer.cpp
	src/gui/pictureviewer.cpp
	src/gui/scan.cpp
	src/gui/test_menu.h
	src/gui/timerlist.cpp
	src/gui/update.cpp
	src/gui/widget/listbox.cpp
	src/neutrino.cpp
	src/system/flashtool.cpp
	src/zapit/src/Makefile.am
	src/zapit/src/femanager.cpp
2013-06-16 21:22:14 +02:00
Thilo Graf
3f8b127e3f CComponents: move unmaintained files into own directory 2013-06-16 14:32:24 +02:00
Thilo Graf
e8ddd8100f CComponentsPIP: show scaled aspect ratio in minitv box 2013-06-16 02:01:42 +02:00
Thilo Graf
2a7c712f25 CComponentsWindow: add more functionality
Window comes now with footer and body
2013-06-16 00:34:08 +02:00
Thilo Graf
940576f0a0 CComponentsText: fix position handling in sub forms 2013-06-16 00:34:07 +02:00
Thilo Graf
b18741efc7 CComponentsButton: fix alignment of button items 2013-06-16 00:34:07 +02:00
Thilo Graf
04300f1874 CComponents: rework position handling
The real position already used here, if item is bound to a parent.
(bound or embedded means: added with addCCItem() to a form)
This causes no separate calculation in paint methodes of embedded
sub items or sub forms and more nested sub forms.

CComponentsForm have also some new members
- exchangeCCItem() to exchange the order items
- setAppendOffset() to set an offset for auto append mode
  Autoappend is enabled if x or y have value -1 (defined also in CC_APPEND)
  x=horizontal, y=vertical
  Is this activated, no separate calculation of incremental offset
  is required.

However items with independent rendered parts, needs
a separate calculation. In some subclasses was this necessary.
2013-06-16 00:34:06 +02:00
Thilo Graf
d88b28445f CComponentsPicture: add member initPosition() 2013-06-16 00:34:06 +02:00
Thilo Graf
3f02d391bc CComponentsLabel: trivial format fix 2013-06-16 00:34:06 +02:00
Thilo Graf
44759766af CProgressBar: add member paintShapes()
paintShapes() replaces paintBoxRel()
TODO: paint v-lines with CComponents
2013-06-16 00:34:05 +02:00
Thilo Graf
2a234d08ce CComponents: add define CC_APPEND
Is usable as default value for item position parameters
2013-06-16 00:34:05 +02:00
Thilo Graf
f14141d49c CComponents: add new member getFrameThickness() 2013-06-16 00:34:05 +02:00
Thilo Graf
4df8d1d088 CComponentsPicture: add member function paintPicture()
compact calling in paint()
2013-06-16 00:34:04 +02:00
Thilo Graf
f968abe6c5 CComponentsForm: add new member isAdded() 2013-06-16 00:34:04 +02:00
Thilo Graf
2af1c5d8b2 CComponentsForm: return id only if parameter is not 0 2013-06-16 00:34:04 +02:00
Thilo Graf
2e42455e25 CComponentsInfoBox: comment precised 2013-06-16 00:34:03 +02:00
Thilo Graf
d862de87eb CComponentsForm: add missing item type 2013-06-16 00:34:03 +02:00
Thilo Graf
17a2bd59d1 CComponents: add members setRealXPos() and setRealYPos() 2013-06-16 00:34:03 +02:00
Thilo Graf
220c479b9e CComponentsFrmClock: add missing comment 2013-06-16 00:34:02 +02:00
Michael Liebmann
587db33bbd CComponentsFrmClock: set text border width to 0 2013-06-12 01:32:24 +02:00
Michael Liebmann
ba1e514747 CTextBox: Remove workaround for minimally text_border_width
- Default value is now 1 in CComponentsText
2013-06-12 01:32:24 +02:00
Michael Liebmann
6409cc8a19 CComponentsFrmClock: Move thread start/stop to constructor/destructor 2013-06-12 01:32:24 +02:00
FlatTV
96da2f95b8 - CComponentsText: add possibility to set a text border 2013-06-06 22:08:46 +02:00
Thilo Graf
fc3829d695 CTestMenu: add sample code for footer buttons, disable debug spam 2013-06-03 22:12:49 +02:00
Thilo Graf
7d82da09ae CComponentsButton: rework position handling for buttons and code comments 2013-06-03 22:12:48 +02:00
Thilo Graf
fb812f38e8 CProgressBar/CVolumeBar: fix position of active/passive bar
Assign real position values to progressbar if is bound (embedded) in a form.
This is dependently from its own parent status. Status of cc_parent==NULL
means, it's not bound and without parent form so we use x/y, otherwise
we use real values stored by cc_xr/cc_yr.
Values in cc_xr/cc_yr and cc_parent were assigned with addCCItem().

Signed-off-by: Michael Liebmann <tuxcode.bbg@gmail.com>
2013-06-03 22:12:48 +02:00
Thilo Graf
3c5f4867fb CComponents: rename and move real position attributes
These attributes are better placed in the basic class.
2013-06-03 22:12:47 +02:00
Thilo Graf
d3d0bff7ac CComponentsForm: fix position of items in added forms
Position of added items in subforms was fitted with wrong offset.
Usage of relative x/y position avoids wrong positions of items in subforms.
2013-06-03 22:11:19 +02:00
Thilo Graf
ddaa7a876e CComponentsForm: add index to items
Helpers to identfie added items.
2013-06-03 22:06:30 +02:00
Thilo Graf
e665ab18ab CComponentsFooter: add new class CComponentsFooter 2013-06-03 22:06:03 +02:00