Commit Graph

187 Commits

Author SHA1 Message Date
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
Thilo Graf
d725153ebe CComponentsItem: move calculation out of struct an add comment 2013-04-20 13:10:54 +02:00
Thilo Graf
04afa10e02 CComponents:add sub class CComponentsButton 2013-04-20 12:53:25 +02:00
Jacek Jendrzej
ddc9229efc use var passed by reference 2013-04-18 19:19:30 +02:00
svenhoefer
263da08fb9 - cc_item.cpp: fix wrong calc in paintInit() 2013-04-18 17:45:48 +02:00
[CST] Focus
8bb70d1ab3 Merge branch 'pu/cc' into next-cc
Conflicts:
	acinclude.m4
	data/locale/deutsch.locale
	data/locale/english.locale
	src/driver/volume.cpp
	src/eitd/SIlanguage.cpp
	src/gui/bedit/bouqueteditor_channels.cpp
	src/gui/bedit/bouqueteditor_chanselect.cpp
	src/gui/bouquetlist.cpp
	src/gui/channellist.cpp
	src/gui/eventlist.cpp
	src/gui/osd_setup.cpp
	src/gui/scan.cpp
	src/gui/scan.h
	src/gui/test_menu.cpp
	src/gui/timeosd.cpp
	src/gui/widget/progressbar.cpp
	src/gui/widget/progressbar.h
	src/neutrino.cpp
	src/nhttpd/yconfig.h
2013-04-17 13:32:12 +04:00
Thilo Graf
df0a454efe CComponentsItem: prevent possible compile error 2013-04-16 11:56:27 +02:00
Thilo Graf
8813dccc7e CComonents: disable debug spam 2013-04-16 11:40:01 +02:00
Thilo Graf
894d229b09 CComponents: add vars to modifie frames in selected mode 2013-04-16 08:32:42 +02:00
Thilo Graf
336c3bc7a1 CComponentsItem: add members to set pointer for parent object
Pointer is typically of type CComponentsForm or derived classes,
default intialized with NULL and serves to access for
properties of parent object by embedded items.
2013-04-16 08:26:56 +02:00
Thilo Graf
4317b0b4fb CComponents: add own header file for unused experimental classes 2013-04-16 08:26:56 +02:00
Thilo Graf
39a4e3400e CComponentsForm: add own header for form classes 2013-04-16 08:26:56 +02:00
Thilo Graf
d7c35b07e4 CComonents: use allowPaint() as private, parameter as by rev
not used in sub classes
2013-04-16 08:26:56 +02:00
Thilo Graf
4f623b822f CComponentsItem: add properties for stats enabled/selected 2013-04-16 08:26:56 +02:00
Thilo Graf
f01a9071d2 CProgressBar: replace x/y position with real position on screen
Important to paint related to screen within form dimensions

btw: small cleanups
2013-04-16 08:26:55 +02:00
Thilo Graf
dc373666e0 CComponentsText: add debug output, changes name of arg in iToString() 2013-04-16 08:26:55 +02:00
Thilo Graf
9420edd932 CComponentsItem: add members to get real item position 2013-04-16 08:26:55 +02:00
Thilo Graf
3d35a30ecf CComponentsPicture: add debug output 2013-04-16 08:26:55 +02:00
Thilo Graf
fb64fb5d35 CComponentsText: add overloaded member setText() for int vars 2013-04-16 08:26:55 +02:00
Thilo Graf
cd1a4c89a8 CProgressBar: use already calculated position var for diagonal line 2013-04-16 08:26:54 +02:00
Thilo Graf
62efe2cb59 CComponentsItem/Form: add var for real item position
If items are used in forms it can be usefully to have a variable
which contains the real position on screen.
This can happen e.g. if an item contains separate render methods, because within forms
usual x/y values related to form dimensions and be converted.
2013-04-16 08:26:54 +02:00
Thilo Graf
546b04b846 CComponentsText: add helper to convert integer to string 2013-04-16 08:26:54 +02:00
Thilo Graf
276fa6273e CProgressBar: use correct default colors in constructor 2013-04-07 20:37:54 +02:00
Stefan Seyfried
8d8ce4c55a cc_frm: fix invalid cast 2013-04-06 22:20:58 +02:00
Thilo Graf
d7ce847471 CComponentsInfoBox: move statement for check of image name
Ensure empty pic object otherwise it can be retained on exit
of paintPicture(), if an instance of Infobox already exists.

supplement to 095c0e1b04
2013-04-06 08:49:16 +02:00
Thilo Graf
210ae1491d CProgressBar: remove wrong intital value for frame thickness
Default value is 0, and should remain as specified in the base class.
2013-04-06 08:33:51 +02:00
Michael Liebmann
bd47ef2060 * CComponentsPicture: initVarPicture() not execute if pic_name is blank 2013-04-04 16:10:15 +01:00