Commit Graph

963 Commits

Author SHA1 Message Date
Thilo Graf
a4af92d219 CComponentsForm: add methods to get previous and next item 2017-08-08 14:25:12 +02:00
Thilo Graf
a19a1f067e CComponentsItem: fix possible issues with position inside forms
This ensures relative position for items inside form
2017-08-08 14:25:12 +02:00
Thilo Graf
9687dda867 CCDraw: add missing member for real item position
Changes of real positions were not watched.
2017-08-08 14:25:12 +02:00
Thilo Graf
dcdff2c03b CComponentsItem: move real position methods from draw class into item class
These methods ar only relavant for items
2017-08-08 14:25:12 +02:00
Thilo Graf
8e17eadb6a CComponentsHeader: disable permanent clock paint on interval. 2017-08-08 14:25:12 +02:00
Thilo Graf
356719cf3a CComponentsHeader: rework and simplified logo handling
This should fix some issues with possible overlapps
of logos with title. With some Conditions with text
alignment on the right side needs a fix.
There is an issue with size and position of text object, but is stll not
used at the moment. For all other conditions of logo and text alignments now
it should be not a problem (I hope) and have more code clarity.
2017-08-08 14:25:12 +02:00
Thilo Graf
c18e337d1f offsets: add SIDEBAR_WIDTH
required in window class
2017-08-08 14:25:12 +02:00
Thilo Graf
47f7426aa7 CComponentsFooter: remove FIXME tag
fixed since 2e24663a3f
Obsolete wrong types caused this.
2017-06-28 20:36:51 +02:00
Thilo Graf
aa92fc525f cc_types.h: add more shadow defines
Allows compact style on use for arguments in methods.
2017-06-21 10:31:22 +02:00
svenhoefer
980e293517 - cc_frm_header: remove CComponentsHeaderLocalized() subclass
use another constructor of CComponentsHeader() instead

Signed-off-by: Thilo Graf <dbt@novatux.de>

Good idea, this I had already in mind too.
2017-06-21 10:31:22 +02:00
Thilo Graf
cdf0123bea CComponentsScrollBar: overwrite default corner type
Rounded corners are in mostly cases not required, because of
possible pixel errors if scrollbars are used as embedded standalone part and is
generated with external method paintScrollBar().
2017-06-20 12:17:47 +02:00
Thilo Graf
ef4467b6da CCDraw: precise function for kill handler
This should fix possible artefacts or holes in some rendered boxes.
Was especially striking at HD1 Hardware.
e.g. was observed while right/left switching on channel list at header
and without rounded corners and at certain footers.
2017-06-16 11:49:32 +02:00
Thilo Graf
f46a174155 CComponentsHeader: fix corner type comparison 2017-06-16 10:10:48 +02:00
Thilo Graf
5fda283a61 CCDraw: rework getScreen(), getScreenData(), add pixbuf checks 2017-06-15 01:01:55 +02:00
svenhoefer
3e9e73cb3c - cc_frm_scrollbar: add getScrollBarData() function ...
to calculate total pages and current page for CComponentsScrollBar

Signed-off-by: Thilo Graf <dbt@novatux.de>
2017-06-15 01:01:55 +02:00
Thilo Graf
cdafe580be CComponentsText: make initCCText()
Is more useful
2017-06-15 01:01:54 +02:00
Thilo Graf
5573d17cce CProgressBarCache: ensure clean iterator inside pbcClear()
For safety only.
2017-06-15 01:01:54 +02:00
Thilo Graf
08e610859f CComponentsFrmClock: ensure clean timer instance
For safety only.
2017-06-15 01:01:54 +02:00
Thilo Graf
0a7f7ab5a6 CProgressBar/CComponentsInfoBox: add missing value inits 2017-06-15 01:01:54 +02:00
Thilo Graf
0066430b77 CComponentsForm: remove extra item declaration
Remove instances from vector only for sure.
2017-06-15 01:01:54 +02:00
Thilo Graf
86af640fae CComponentsHeader: remove virtual declararion from getClockObject()
Not required.
2017-06-15 01:01:54 +02:00
Thilo Graf
c4976bb132 CCButtonSelect: select button objects only
Other types are not required.
2017-06-15 01:01:54 +02:00
Thilo Graf
4146a461c1 CCButtonSelect: rename chain to btn_container
more plausible name
2017-06-15 01:01:54 +02:00
Thilo Graf
4d753d7437 CCButtonSelect: outsource button select handling into own class 2017-06-15 01:01:54 +02:00
Thilo Graf
9e2c5cb939 CComponentsInfoBox: fix image y pos
Image was not centered, because of frame was not considered.
2017-06-15 01:01:54 +02:00
Thilo Graf
701273034a Merge branch 'master' into pu/fb-setmode 2017-05-29 22:29:30 +02:00
Thilo Graf
88e0479429 CProgressBarCache: declare funtions pbcPaint(), pbcPaintBoxRel() as const
Technically these members can be const.
2017-05-29 22:26:06 +02:00
Thilo Graf
6e9e4de638 CComponentsTimer: exec OnTimer cleanup after stopped thread
Users reported about crashes, but I could not verify them by myself.

Supplement to: c0fe5d2402
2017-05-29 22:25:59 +02:00
Thilo Graf
402c302bb8 Merge branch 'master' into pu/fb-setmode 2017-05-28 13:36:46 +02:00
Thilo Graf
294278aad3 CComponentsButton: fix offset between icon and text items
We have only two items, therfore it makes sense to set offset to 0
if we have only one item. Otherwise a single item will not be centered.
2017-05-28 13:34:17 +02:00
Thilo Graf
a5a2ac6037 CComponentsButton: use defined offset for append offset 2017-05-28 13:34:12 +02:00
Thilo Graf
f4175eefe8 Merge branch 'master' into pu/fb-setmode 2017-05-27 17:29:28 +02:00
Thilo Graf
c0fe5d2402 CComponentsTimer: ensure cleanup of OnTimer signal while sopping timer 2017-05-27 17:27:04 +02:00
Thilo Graf
de3c14a881 CComponentsFrmClock: init OnTimer after ititialized timer object
Content of OnTimer was not considered after init of timer object.
2017-05-27 17:26:59 +02:00
Thilo Graf
1f8007c50c CComponentsHeader: ensure reset of icon object 2017-05-27 02:51:36 +02:00
Thilo Graf
979e6370a7 CCDraw: expand debug output inside clearFbGradientData()
get info for addresses.
2017-05-27 02:51:36 +02:00
Thilo Graf
4455c65225 CComponentsFrmClock: fix wrong comparison 2017-05-27 02:51:36 +02:00
Thilo Graf
c0cc7ef192 Merge branch 'master' into pu/fb-setmode 2017-05-21 18:09:22 +02:00
Thilo Graf
36c8f4c24f CComponentsButton: add missing init of col_body_old
Some changes on runtime were ignored on runtime.
2017-05-21 18:00:21 +02:00
Thilo Graf
9132e7de82 cc_item.h/cc_frm.h/cc_frm_button.h: use pre defined frame color as default 2017-05-21 18:00:21 +02:00
Thilo Graf
aaa34d8887 Merge branch 'master' into pu/fb-setmode
# Conflicts:
#	src/gui/components/cc_frm_window.h
2017-05-11 12:18:38 +02:00
Thilo Graf
942a27e3ef 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.
2017-05-11 12:15:16 +02:00
Thilo Graf
a26c1bc868 Merge branch 'master' into pu/fb-setmode 2017-05-11 08:43:29 +02:00
Thilo Graf
1b2f1d320d CComponentsHeader: fix brace error
suggest explicit braces to avoid ambiguous ‘else’
2017-05-11 08:39:20 +02:00
Thilo Graf
60fed9cc02 Merge branch 'master' into pu/fb-setmode 2017-05-10 10:45:28 +02:00
Thilo Graf
5b541571f9 CComponentsHeader: Try to adopt different logo/title alignments
Not all constellations are tested. Please report.
2017-05-10 10:42:08 +02:00
Thilo Graf
178bf6f596 CComponentsHeader: fix centering of header title 2017-05-10 10:42:08 +02:00
Thilo Graf
c320dbf8ec CComponentsHeader: remove double text color assignment 2017-05-10 10:42:08 +02:00
Thilo Graf
107db09299 CComponentsHeader: fix order of width calculation
Required for following position calculation
2017-05-10 10:42:08 +02:00
Thilo Graf
326fca55c0 Merge branch 'master' into pu/fb-setmode 2017-05-03 21:36:45 +02:00