Commit Graph

28 Commits

Author SHA1 Message Date
Thilo Graf
71f5779a40 CComponentsScrollBar: try to fix handling with very much segment count
In some cases, eg. with very much pages in channellist, the effort
to handle with all count of scrollbar segments was too much. Result: long
waiting times during page scrolling and slider was not visible. This
should be fixed now.
2017-08-11 22:35:07 +02:00
Thilo Graf
b863f874b0 CComponentsScrollBar: use matching type names 2017-08-09 21:36:26 +02:00
Thilo Graf
379d1ffa76 CComponentsScrollBar: fix possible too small type size
Possible segment count could be more than 265.
Was a remnant from scrollbar test phase.
2017-08-09 19:13:36 +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
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
324ba258a0 CComponentsScrollBar: add missing attributes for different visual modes 2017-04-21 22:47:23 +02:00
Thilo Graf
c5451046d4 CComponentsScrollBar: fix radius for single segment
Radius on top was missed if only one segment is available.
2017-04-21 22:47:23 +02:00
Thilo Graf
803253e3d4 CComponentsScrollBar: remove unnecessary debug output 2017-02-25 00:01:29 +01:00
svenhoefer
52ad1f76c2 - cc_frm_scrollbar: use SCROLLBAR_WIDTH define 2016-12-20 10:26:59 +01:00
svenhoefer
38c621ad5e - cc_frm_scrollbar: fix offsets; use OFFSET defines 2016-12-16 09:03:07 +01:00
Thilo Graf
6dda28d612 CComponentsScrollBar: fix pos and use current width to set height of arrows
This fix size and position and dimensions of arrows.
2016-12-15 21:56:41 +01:00
Thilo Graf
1d541834b1 CComponentsScrollBar: use corner settings for scrollbar body 2016-12-15 16:53:32 +01:00
Thilo Graf
728b95ac1c CComponentsScrollBar: add easy to handle scrollbar methode 2016-12-15 16:53:25 +01:00
svenhoefer
0dc0789de8 - rename BUTTON_TOP to BUTTON_UP; it isn't a top-button 2016-12-07 15:37:03 +01:00
Thilo Graf
ab9bf2ffa6 Merge branch 'master' into pu/msgbox 2016-11-02 21:05:36 +01:00
Jacek Jendrzej
b8849d53b5 fix possible segfault and negative height 2016-10-31 15:53:29 +01:00
Thilo Graf
3477e28cd7 CComponentsItem: fix changeing color on select switching of frames
expand select mode methodes with paremters for frame properties
This should make variables col_frame_sel and fr_thickness_sel superfluous.
2016-10-24 10:31:25 +02:00
Thilo Graf
422f5872e4 CComponentsScrollBar: disable scrollbar color gradient
Was for testing only, now usual properties used.
2016-10-12 10:08:18 +02:00
Thilo Graf
7b334f8883 CComponentsScrollBar: fix trasnparent background arrow icons
parameter was disabled
2016-10-12 09:42:46 +02:00
vanhofen
6629b64d6c - colors: add COL_SCROLLBAR_PASSIVE wrapper 2016-10-10 14:19:54 +02:00
vanhofen
7e7d4e5fc1 - colors: add COL_SCROLLBAR_ACTIVE wrapper 2016-10-10 14:19:54 +02:00
Jacek Jendrzej
0d9fbd5378 some never read compil warning fixes 2016-04-24 17:18:37 +02:00
Thilo Graf
c07f999476 CComponentsScrollBar: fix missed navi arrows
Paths were broken
comes in with 10c430d40e
2016-03-17 10:49:35 +01:00
Jacek Jendrzej
10c430d40e cc_frm_scrollbar.cpp icon dont need full path 2016-02-16 16:15:28 +01:00
Thilo Graf
0146511f38 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
svenhoefer
e85f32848c - ccomponents: add missing slash to iconBasePath 2015-05-07 11:10:28 +02:00
Thilo Graf
d6bf51a593 CComponentsScrollBar: add color gradient to scrollbar 2014-09-25 11:08:12 +04:00
Thilo Graf
672757606c 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
2014-06-27 20:49:41 +02:00