Commit Graph

47 Commits

Author SHA1 Message Date
Thilo Graf
8227638c06 CComponentsPicture: simplify item init, adapt getHeight/getWidth members
Members getHeight/getWidth returns now image related values dependent of
scale mode
2015-03-29 22:39:53 +02:00
[CST] Focus
16a1927f4f gui/components/cc_frm_header.cpp: set CTextBox save screen flag 2015-03-06 14:14:00 +03:00
Thilo Graf
f9147d185a CComponents: add setColBodyGradient() to set gradient properties
This provides possibility to set relevant gradiant properties in cc sub classes
2014-09-25 11:08:08 +04:00
Thilo Graf
581405e076 CComponentsItem: move initBodyGradient() into base class
This provides functinality for all sub classes too
2014-09-25 11:08:04 +04:00
Thilo Graf
11c9d0780a CComponentsText: move setTextRenderModeFullBG() to text object
This is mostly required here
2014-09-25 11:08:00 +04:00
Thilo Graf
83070da483 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.
2014-09-25 11:07:55 +04:00
Thilo Graf
64c84fb490 CComponents: move variable cc_gradientData, paintGradient into base class
Variable now usable via g_settings in all subclasses. enable/disable.
TODO: gradient type handling
2014-09-25 11:07:45 +04:00
M. Liebmann
8762d4b871 CComponentsHeader: Use Font::FULLBG for rendering string...
...when text is painted on a color gradient
2014-09-25 11:07:37 +04:00
M. Liebmann
bfc1c04d83 CComponentsHeader: Use color gradient for paint header
Conflicts:
	src/gui/widget/menue.cpp
2014-09-25 11:07:12 +04:00
Thilo Graf
5eb63b9515 CComponentsPicture: structure of class highly simplified
It should  be now easier to use images as objects. An initialized
picture object should provide all relevant properties and some
functionalities of picture viewer.
2014-06-23 18:43:47 +02:00
Thilo Graf
9955fa9203 CComponentsHeader: add icons to button collection for use in headers or footers 2014-05-22 21:50:42 +02:00
Thilo Graf
1c39d08c60 CComponentsHeader: add missing init of icon 2014-05-22 21:50:42 +02:00
Thilo Graf
e06d835396 CComponentsHeader: remove superfluous semicolon 2014-05-22 20:38:22 +02:00
Thilo Graf
6fe7b452c1 CComponentsHeader: rework context button handling
CComponentsHeader uses now CComponentsIconForm, which is now derived
from CComponentsFrmChain. Some methods should be now simplified and
allow to handle some modifications easier.
2014-04-02 08:40:21 +02:00
Thilo Graf
750691fbbf CComponents: use neutrino debug mode for debug output 2014-04-02 08:40:21 +02:00
Thilo Graf
23d7b62cf0 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.
2014-03-03 09:43:39 +01:00
Thilo Graf
1838a71c20 CComponentsHeader: cleanup
-remove variable userHeight, is not used
-change name of parameter in member initCaptionFont(), "font_name" is not a
 suitable name for a type object.
2014-01-24 23:38:25 +01:00
Thilo Graf
5ea7ec48df CComponentsHeader: rework constructors, add CComponentsHeaderLocalized
Member initVarHeader() now used with parameters, so it's  possible
to remove multiple code in constructors, but some class must be
renamed to CComponentsHeaderLocalized.
2014-01-24 23:09:56 +01:00
Thilo Graf
04574fc6eb CComponents: split some header files
Should bring more overview and less susceptibility to conflicts (merge etc)

License texts updated.
2014-01-06 22:27:59 +01:00
Stefan Seyfried
9eddaedfdd CComponents: fix compiler warnings with DEBUG_CC 2013-12-18 21:10:17 +01:00
Thilo Graf
8442b39c28 CComponents: replace __FUNCTION__ with __func__
__func__ is more suitable for portability
2013-12-18 15:13:19 +01:00
M. Liebmann
b41e444887 CComponentsHeader: Fix positioning of items 2013-12-13 22:33:21 +01:00
M. Liebmann
c2c5b931cd CComponentsHeader: Fix height calculation 2013-12-11 15:55:14 +01:00
Thilo Graf
63392accda CComponentsHeader: use also lower height if size mode==CC_HEADER_SIZE_SMALL 2013-12-10 09:30:53 +01:00
Thilo Graf
ad80daea96 CComponentsForm/CComponentsHeader: use start pos x=1 instead 0
0 could make problems on fit items into container
2013-12-10 09:30:52 +01:00
[CST] Focus
dd7c7fc7ae components: cleanup destructors - remove calls to functions,
already called inside base classes destructors
2013-11-29 17:27:10 +04:00
[CST] Focus
062b10be2a components: remove initVarForm calls in classes derived from CComponentsForm 2013-11-29 17:27:10 +04:00
Thilo Graf
64c6eb5945 CComponentsHeader: add possibility to modify text alignment
usable in header and its derived classes and in class CComponentsWindow
2013-10-24 21:19:07 +02:00
Thilo Graf
ad102b69fd CComponentsHeader: use isAdded() to avoid add multiple items 2013-10-24 21:19:06 +02:00
Thilo Graf
33ec56ad6f CComponents: remove member setCornerRadius(),
setCorner() replaces this function, 2nd parameter sets type
2013-09-19 08:24:40 +02:00
Thilo Graf
78cdee08a8 CComponentsHeader: add member that allows switching to small size 2013-09-19 08:24:39 +02:00
Michael Liebmann
c60c5c5ce3 Replace color indexes of the text colors by real color values for RenderString()
- If necessary, Correct data types of the color values
2013-07-21 22:00:58 +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
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
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
988d1f3ea8 CComponentsHeader/Button: force paint of text 2013-04-28 16:48:10 +02:00
Thilo Graf
39a4e3400e CComponentsForm: add own header for form classes 2013-04-16 08:26:56 +02:00
Thilo Graf
cc31a41f43 CComponentsWindow/Header: fix add of header buttons
setHeaderButtons was without effect
2013-03-24 21:14:10 +01:00
Thilo Graf
0dc4686874 fix license text, sorry, was a c&p error 2013-03-21 11:37:00 +01:00
Thilo Graf
824bc8913e CComponentsHeader: remove unused lines 2013-03-18 12:04:54 +01:00
Thilo Graf
ca42d9ba74 CComponentsHeader/Window: add possibility to return header height 2013-03-18 12:04:47 +01:00
Thilo Graf
544e3bb8ef CComponentsHeader: init text always before paint header 2013-03-18 12:04:29 +01:00
Thilo Graf
4a931af6ef CComponentsForm/Header/Icons/Window: try to fix multiple inits and paints
Some items had multiple inits and some calls of clearCCItems()
have caused segfaults, hope this fix this.
2013-03-18 12:04:25 +01:00
Thilo Graf
da356d94da CComponentsHeader/Icon: use inherited destructor
Inherited destructor contains identic code.
2013-03-18 12:04:21 +01:00
Thilo Graf
3ed9af87ad CComponents: split cc_base.cpp
It's easier to work with smaller files.
Most files contain only one cc-class and their names are
derived on the particular class that is contained therein.
2013-03-06 11:28:18 +01:00