Commit Graph

213 Commits

Author SHA1 Message Date
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
Michael Liebmann
39704b72c0 * CComponentsFrmClock: Add member setTextColor()
- Add member refresh() for (re)calculate clock dimensions
2013-06-01 19:37:46 +02:00
svenhoefer
b318c15895 - cc_frm_header: rework positions/dimensions calculations 2013-05-30 21:51:12 +02:00
svenhoefer
890d282315 - CComponentsHeader: add possibility to change font in header class 2013-05-28 10:24:23 +02:00
Thilo Graf
1e0df8842e CComponentsItem: typo fixes 2013-05-28 09:44:10 +02:00
Thilo Graf
6f480c7773 CComponentsItem: corrected comment for arg do_save_bg 2013-05-28 09:21:10 +02:00
Thilo Graf
cfc0c72daa CComponentsItem: add more comments 2013-05-28 09:10:25 +02:00
Thilo Graf
8e46f63900 CComponentsHeader: rename some members for plausible usage in subclasses
Some members are usable in subclasses, but  current names could be not
suitable or not  plausible with respect to the name of subclass.
2013-05-27 11:58:05 +02:00
Thilo Graf
d39eaa22fc CComponents: split some header files
CComponentsInfoBox
CComponentsShapeCircle/Square
CComponentsDetailLine
CComponentsPIP
CComponentsText/CComponentsLabel
CComponentsPicture
2013-05-27 09:30:50 +02:00
Thilo Graf
09d6881b20 CComponentsFrmClock: add missing statement for #include <config.h> 2013-05-27 09:30:50 +02:00
Thilo Graf
47691515d1 CComponents: add comments for documentations
Comments contains doxygen tags.
for results see also: http://www.tuxbox.org/neutrinohd/doc/html/
Help welcome!
2013-05-27 09:22:08 +02:00
svenhoefer
784d8d3de2 - cc_frm_header: improve "fix neutrino locales in CComponentsHeader"
* supplement to 4cc9e76
2013-05-26 23:27:23 +02:00
svenhoefer
4cc9e7691a - cc_frm_header: fix neutrino locales in CComponentsHeader 2013-05-26 22:49:46 +02:00
Thilo Graf
9d52071c39 CComponentsFrmClock: add new class CComponentsFrmClock 2013-05-25 23:29:49 +02:00
Michael Liebmann
4da83b546c * CComponents: Reworked paint the shadows
- Paint rounded corners only where it is required
- Skip paint frame/paint shadow, if not defined
2013-05-24 21:48:56 +02:00
Michael Liebmann
b1c7c7a34c * CComponentsItem::paintInit(): Corrected calculation of sw_cur
- Summarized calculate the values of shadow box
2013-05-22 22:02:17 +02:00
Michael Liebmann
2a6d12c332 * src/gui/components/cc_types.h: Renumbering 'align types' of correct evaluation 2013-05-21 19:34:53 +02:00
Michael Liebmann
b8da504432 * CComponentsItem: Set sw_cur = 0 if no shadow 2013-05-21 19:34:53 +02:00
Michael Liebmann
072097cd06 * Fix CComponents::getScreen()/hide() & CComponentsItem::hideCCItem()
- Use CFrameBuffer::waitForIdle() to ensure that all GXA commands
  are finished before SaveScreen() / RestoreScreen() is executed
2013-05-18 14:44:20 +01:00
Michael Liebmann
c5e223a231 * CComponents: Add corner_type to paintFbItems() => paintBoxFrame() 2013-05-16 11:01:41 +01:00
Thilo Graf
9ae72bf02d CComponents: fix missing save of background in paint_bg=false mode
Exit in initVarItem() on !paint_bg was too early.
2013-05-12 14:17:10 +02:00
Michael Liebmann
612ef514a3 * CComponents::paintFbItems: Fix paint frame
- Remove function CComponents::allowPaint()
2013-05-10 11:32:12 +01:00
Michael Liebmann
309b371060 * CComponents::paintFbItems: Don't paint item if dx or dy are 0 2013-05-08 07:06:12 +01:00
Thilo Graf
a4c3e08f77 CComponents: rework kill()
There was some problems with restore, hide, clean and save background of item parts,
seen in detailsline. kill() worked not really clean.
kill() works now as virtual member and uses paintBackgroundBoxRel().

In consequence of which:
-unnecessary members in subclasses removed.
-add some comments
2013-05-03 19:51:57 +02:00
svenhoefer
62f5b11123 - cc_detailsline.cpp: fix coordinates for shadow lines 2013-05-02 21:10:00 +02:00
Thilo Graf
76a2c44014 CComponentsText: force text paint after hide
After hide()it was not possible to paint text without forceTextPaint()
and define of ct_old_text in setText() was not enough.
2013-04-28 16:48:11 +02:00
Thilo Graf
85b1117f37 CComponentsButton: use adequate arrangement for caption 2013-04-28 16:48:10 +02:00
Thilo Graf
988d1f3ea8 CComponentsHeader/Button: force paint of text 2013-04-28 16:48:10 +02:00
Thilo Graf
e84ac6f3a1 CComponentsPicture: use members as virtual members
Makes members ready for use in subclasses
2013-04-28 16:48:10 +02:00
Thilo Graf
0fe69feb96 CComponents: add members setPos() and getSize() 2013-04-28 16:48:09 +02:00
Thilo Graf
9735c670fd CComponentsText: init CComponentsText without paint of text background
This avoids unnecessary render of backgrounds in textboxes. If it does,
so it's possible to enable it subsequently with doPaintTextBoxBg().
2013-04-28 16:48:08 +02:00
Thilo Graf
cadb66e225 CComponentsInfoBox: add missing define for text color 2013-04-27 22:20:10 +02:00
Thilo Graf
dfc6e2069e CComponentsText: paint text only on text change, add members to handle this
It can be usefull to hold unchanged text to avoid unnecessary text
paintings. It's also also possible to force paint of text,
use forceTextPaint(). Use textChanged(), to evaluate current text changes.
2013-04-27 22:20:10 +02:00
Thilo Graf
f774eb833f CComponentsInfoBox: replace static parameter with inherited member
member value was not looped through
2013-04-27 22:16:15 +02:00
Michael Liebmann
eafcbf6a86 * CComponentsLabel: Use 'std::string' instead of 'const char*' for ct_text
- Supplement to commit 3a19edd...
2013-04-25 09:34:53 +01:00
Thilo Graf
cc63773920 CComponentsText: add bool as return value for setTextFromFile() 2013-04-24 19:56:00 +02:00
Thilo Graf
ca9d7add48 CComponentsText: use member function 'ToString' as static 2013-04-24 19:48:39 +02:00
Thilo Graf
cdfc544809 CComponentsText: add member to use file as text source 2013-04-24 19:48:39 +02:00
Michael Liebmann
3a19edda45 * CComponentsText: Use 'std::string' instead of 'const char*' for ct_text 2013-04-22 15:41:03 +01:00
Thilo Graf
48c4142a24 CComponentsItem: don't render shadow as full box 2013-04-20 22:55:23 +02:00
Thilo Graf
4a5044ca46 CComponents: remove unused enum type 2013-04-20 22:55:23 +02:00