Commit Graph

36 Commits

Author SHA1 Message Date
[CST] Focus
c4d94d60fd gradient: try to fix delete gradient data only on color change
Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Commit: 53ce471af8
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-04-27 (Mon, 27 Apr 2015)
2015-04-27 09:25:34 +02:00
Thilo Graf
e83a7beda7 CComponentsItem: add setXPos/setYPos(), that consider real position
Origin commit data
------------------
Commit: 8ebb5f98ca
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-30 (Sun, 30 Nov 2014)
2015-03-29 22:39:58 +02:00
[CST] Focus
d0b73c9a85 gui/components/cc_base.cpp: add flag to control CTextBox screen saving, default is false
Origin commit data
------------------
Commit: ab1b3b9008
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-03-06 (Fri, 06 Mar 2015)
2015-03-06 14:13:59 +03:00
Michael Liebmann
acfc4981e4 CColorGradient::gradientOneColor: Adjustment for min/max brightness...
...and color saturation added
- Use only the hue of base color for gradient


Origin commit data
------------------
Commit: 58224099fd
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-20 (Sat, 20 Sep 2014)
2014-09-25 11:08:22 +04:00
Thilo Graf
3ffddab216 CComponents: add setColBodyGradient() to set gradient properties
This provides possibility to set relevant gradiant properties in cc sub classes


Origin commit data
------------------
Commit: f9147d185a
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-09-20 (Sat, 20 Sep 2014)
2014-09-25 11:08:08 +04:00
Thilo Graf
efdceca857 CComponentsItem: move initBodyGradient() into base class
This provides functinality for all sub classes too


Origin commit data
------------------
Commit: 581405e076
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-09-20 (Sat, 20 Sep 2014)
2014-09-25 11:08:04 +04:00
Thilo Graf
2e95367b7d CComponents: rename gradient variables
Use convention for cc classes.
paintGradient probaly too general and
is related to body, other fb types can be also handled with gradient.


Origin commit data
------------------
Commit: 83070da483
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-09-20 (Sat, 20 Sep 2014)
2014-09-25 11:07:55 +04:00
Thilo Graf
def1a3c5b9 CComponents: move variable cc_gradientData, paintGradient into base class
Variable now usable via g_settings in all subclasses. enable/disable.
TODO: gradient type handling


Origin commit data
------------------
Commit: 64c84fb490
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-09-20 (Sat, 20 Sep 2014)
2014-09-25 11:07:45 +04:00
Michael Liebmann
7fd3742c49 CComponents: Add color gradient for CC_FBDATA_TYPE_BOX
Origin commit data
------------------
Commit: db6fd8480d
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-09-20 (Sat, 20 Sep 2014)
2014-09-25 11:06:01 +04:00
Michael Liebmann
c010b27966 Change CComponents::clearSavedScreen() from protected to public
Signed-off-by: Thilo Graf <dbt@novatux.de>

Conflicts:
	src/gui/components/cc_base.h


Origin commit data
------------------
Commit: d25fe1438c
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-07-04 (Fri, 04 Jul 2014)
2014-09-25 11:03:34 +04:00
Thilo Graf
7fbe2501f6 CComponentsItem/CComponentsForm: add property focus
Specifies that some certain operations especially eg. exec events for
that item are possible.


Origin commit data
------------------
Commit: 0c0e0e85ff
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-09-02 (Tue, 02 Sep 2014)
2014-09-25 11:02:32 +04:00
Thilo Graf
cc2698a33e CComponents: add members to handle object tags
This can help to handle some useful values for any functions


Origin commit data
------------------
Commit: 67a42c3e96
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-08-25 (Mon, 25 Aug 2014)
2014-09-25 11:02:00 +04:00
Thilo Graf
aaddd45ee5 CComponents: add new header file cc_signals.h with some basic members
Origin commit data
------------------
Commit: 4731521070
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-08-03 (Sun, 03 Aug 2014)
2014-09-25 10:58:22 +04:00
martii
f33f6f8443 gui/components: use COL_BACKGROUND_PLUS_0 instead of COL_BACKGROUND
Origin commit data
------------------
Commit: be29f644f0
Author: martii <m4rtii@gmx.de>
Date: 2014-06-09 (Mon, 09 Jun 2014)
2014-09-11 18:12:51 +04:00
Thilo Graf
3224594375 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


Origin commit data
------------------
Commit: 672757606c
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-06-26 (Thu, 26 Jun 2014)
2014-06-27 20:49:41 +02:00
Thilo Graf
a94e168649 CComponents: epand method setFrameThickness() to change selected frame
Origin commit data
------------------
Commit: 8bbd7024d9
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-06-13 (Fri, 13 Jun 2014)
2014-06-23 18:43:47 +02:00
Thilo Graf
0b6883aea7 CComponents: inherit COSDFader class
Allows a simplified implementation without prior declaration and
initialisation


Origin commit data
------------------
Commit: 53cf57876c
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-30 (Fri, 30 May 2014)
2014-06-23 18:43:47 +02:00
Thilo Graf
f56cc44f9e CComponents: use paintBoxRel() only in kill()
paintBackgroundBoxRel() ignores rounded corners. This avoids painting of
undesirable parts on corners.


Origin commit data
------------------
Commit: dc007e810a
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-18 (Sun, 18 May 2014)
2014-05-22 21:50:55 +02:00
Thilo Graf
2487695a68 CComponents/CComponentsItem: use correct background color
color "0" was wrong


Origin commit data
------------------
Commit: 7096e701b6
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-18 (Sun, 18 May 2014)
2014-05-22 21:50:54 +02:00
Thilo Graf
a56f996d09 CComponents: cc_base.h: expand override of is_painted variable
Value of is_painted is modified temporarily till next paint
of item

Not sure whether this is sufficiently or has bad side effects?


Origin commit data
------------------
Commit: b6c781f7e4
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-11 (Sun, 11 May 2014)
2014-05-22 21:50:53 +02:00
Thilo Graf
41218662ff CComponents/CComponentsItem: add advanced version of kill()
kill() allows now paint with defined colors over rendered objects
without restore of background. It's similar to paintBackgroundBoxRel()
known from CFrameBuffer, but with possiblity to define color,
default color is 0 like before (empty background).
Items with parent bindings use the background color of its parent
as default, but can also be ignored.

This function can be useful before repaint of items and/or,
if required, to have a clean background inside item containers.


Origin commit data
------------------
Commit: 6a2e701a7a
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-05 (Mon, 05 May 2014)
2014-05-16 09:08:25 +02:00
Michael Liebmann
570b793a76 CComponents: More precise error message (commit aa7a96a)
Origin commit data
------------------
Commit: d1b8246316
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-03-03 (Mon, 03 Mar 2014)
2014-03-03 20:20:57 +01:00
Thilo Graf
f33efdbdc4 CComponents: add new parameter 'parent'
Use strictly CComponentsForm as parent parameter in constructors.
Some parts have been cleaned up (Constructors, init methodes removed)

New parameter makes it possible already add current item in constructor.
So in mostly situations is it not necessary to use explicit addCCItem(),
but addCCItem()is still valid and necessary in certain situations.

Affected are all cc-classes and their derivates.
Some classes must or can be adapted later. The function is
not currently restricted, because usage of parent parameter is not explicit
defined in constructors, see CImageInfo, here yet are used addCCItem()
methodes.

Generally this parameter is located in the constructors before bool has_shadow,
but it is not sure whether it would be better to use this parameter as the first.
That remains to be clarified.


Origin commit data
------------------
Commit: 23d7b62cf0
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-03-03 (Mon, 03 Mar 2014)
2014-03-03 09:43:39 +01:00
Thilo Graf
bafa64bba9 CComponentsItem: add methodes to set width and height via percent value
Percent value is related to current screen or parent size


Origin commit data
------------------
Commit: a33cad448a
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-27 (Thu, 27 Feb 2014)
2014-03-03 08:54:10 +01:00
Thilo Graf
9aa9f374e6 CComponentsItem: comments corrected
Origin commit data
------------------
Commit: 9b18d0cf5b
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-27 (Thu, 27 Feb 2014)
2014-03-03 08:54:10 +01:00
Thilo Graf
cc24c195ee CComponentsItem: move/rename doCenter()to base class CComponentsItem
So it's possible to use this method for all cc-items.
setCenterPos() comes now with parameter 'along_mode' (CC_ALONG_X, CC_ALONG_Y).
So it's possible to center in x or y direction. As default are
both directions predefined.


Origin commit data
------------------
Commit: 8a897103ac
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-27 (Thu, 27 Feb 2014)
2014-03-03 08:54:10 +01:00
Thilo Graf
ecdc19e8bc CComponentsItem: add members to set item position via percent value
Origin commit data
------------------
Commit: 38dffb8456
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-26 (Wed, 26 Feb 2014)
2014-03-03 08:54:10 +01:00
Thilo Graf
aa7a96a5a8 CComponents: add member CheckFbData() for fbdata check
This check happens several times, therefore it is senseful, to move into own member.
Function returns false on error and is used here to show an error message if
something was wrong.
Such errors can happen on position or dimension errors e.g. out of screen or
too large display values.

Note: this is only an emergency helper for debugging on
fatal errors during developing of window stuff. Mostly errors
of this kind causing crashes and must be fixed.


Origin commit data
------------------
Commit: f813b9ea98
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-02-23 (Sun, 23 Feb 2014)

Origin message was:
------------------
CComponents: add member CheckFbData() for fbdata check

This check happens several times, therefore it is senseful, to move into own member.
Function returns false on error and is used here to show an error message if
something was wrong.
Such errors can happen on position or dimension errors e.g. out of screen or
too large display values.

Note: this is only an emergency helper for debugging on
fatal errors during developing of window stuff. Mostly errors
of this kind causing crashes and must be fixed.
2014-03-03 08:54:09 +01:00
Thilo Graf
01e77944df CComponents: add member to set color for selected items
Origin commit data
------------------
Commit: f6d7352dca
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-12 (Sun, 12 Jan 2014)
2014-01-12 13:57:11 +01:00
Thilo Graf
ba7524f6bb CComponents: replace clear() with clearFbData(), remove cleanCCForm()
clear() replaces now clearCCItems() and cleanCCForm() is superfluous.


Origin commit data
------------------
Commit: ed7a2fd625
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-07 (Tue, 07 Jan 2014)
2014-01-07 09:41:06 +01:00
[CST] Focus
9722af5f56 cc_base.h: make private initVarBasic and initVarItem, they are is called from constructors
Origin commit data
------------------
Commit: 5f80ab6450
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-11-27 (Wed, 27 Nov 2013)
2013-11-29 17:27:10 +04:00
Thilo Graf
d44b1a488d CComponents: move debug enable switch to cc_types.h
Origin commit data
------------------
Commit: b8bd8c3704
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-11-17 (Sun, 17 Nov 2013)
2013-11-17 15:19:43 +01:00
Thilo Graf
1f85322357 CComponents: add property to allow/disallow paint of items
This causes initialization of all properties, but
affects the behavior of item paint.
This can be understood as a counterpart to isPainted().


Origin commit data
------------------
Commit: 8ae491a994
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-11-08 (Fri, 08 Nov 2013)
2013-11-11 00:19:48 +01:00
Thilo Graf
5f9bb84b28 revert 2649ca147a
Was bad idea to rename. Other Classes can also inherit this. See CMenuTarget


Origin commit data
------------------
Commit: 6dd1da0628
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-25 (Fri, 25 Oct 2013)
2013-10-26 23:25:59 +02:00
Thilo Graf
2649ca147a CComponents: rename hide() to hideCC()
There are too many name conflicts with hide-members in other classes.


Origin commit data
------------------
Commit: 6ee7fac1a5
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-24 (Thu, 24 Oct 2013)
2013-10-24 21:39:04 +02:00
Thilo Graf
41d131eb32 CComponents: add unfied header file for general include of cc classes
Provides a unified header file, so it is not required to select a
certain header file.


Origin commit data
------------------
Commit: f7798affc6
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-10-24 (Thu, 24 Oct 2013)
2013-10-24 21:19:07 +02:00