Commit Graph

29 Commits

Author SHA1 Message Date
[CST] Focus
fdd5486714 gui/components/cc_frm_button.cpp: set CTextBox save screen flag 2015-03-06 14:13:59 +03:00
Thilo Graf
de2aebcebc CComponentsButton: apply color gradiant to buttons 2014-09-25 11:08:16 +04:00
Thilo Graf
706ed0f31f CComponentsButton: add extended properties for button objects
Allows to assign values for events, msg, results. So it is possible
to evaluate/use these properties eg. directly in exec routines.
2014-09-25 11:02:22 +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
svenhoefer
8b91cda918 - change getRenderWidth() default to UTF8 2014-06-11 23:07:00 +02:00
Thilo Graf
9c4aadd2bf CComponentsButton: use y position 0 for general alignment 2014-05-22 21:50:50 +02:00
Thilo Graf
9d014d2039 CComponentsButton: ensure matching icons inside button
Some icons can be too large for defined button height, so it's required to
scale icons. Scaling happens inside cc_btn_icon_obj during its init.
2014-05-22 21:50:49 +02:00
Thilo Graf
75bf3aa276 CComponentsButton: remove additonal y offset
Any other offset could have bad side effects for centered text,
it must be centered here. Other font sizes can make problems here.
2014-05-22 21:50:49 +02:00
Thilo Graf
2c87bb750a CComponentsButton: add class with const char* parameters for icon names 2014-05-22 21:50:47 +02:00
Thilo Graf
95c7e44eb1 CComponentsButton: ignonre objects if no inititalized
This makes it possible to use buttons with or without icons or text
2014-05-22 21:50:46 +02:00
Thilo Graf
9ffdb1cb98 CComponentsButton, CComponentsFooter: rework bestfit of buttons inside chain 2014-05-22 21:50:45 +02:00
Thilo Graf
419fc12f2e CComponentsButton: add possibility to change font type, whitespace fixes 2014-05-22 21:50:44 +02:00
Thilo Graf
7b279ddd33 CComponentsButton: simplify handling of init of buttons with chain class 2014-05-22 21:50:43 +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
M. Liebmann
c4bff391a5 CComponentsButton: Incrase height for btn font 2014-02-21 00:02:46 +01:00
Thilo Graf
9ac35f0d92 CComponentsButton: reduce scope of variable face_x
The scope of the variable 'face_x' can be reduced. (style)
2013-12-25 19:50:31 +01:00
[CST] Focus
062b10be2a components: remove initVarForm calls in classes derived from CComponentsForm 2013-11-29 17:27:10 +04:00
Thilo Graf
812168416f CComponentsButton: add members to get caption properties 2013-11-11 00:19:48 +01:00
Thilo Graf
a47091872b CComponentsButton: involving of button text for dyn font evaluation 2013-10-16 11:54:06 +02:00
Thilo Graf
c3a3eea0d8 CComponentsButton: use dynamic fonts, remove old font handling 2013-10-16 11:54:04 +02:00
Thilo Graf
19fa5e6418 CComponentsButton: remove function blocks from header 2013-09-20 08:33: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
be8e47fe3f CComponentsButton: add localized button
So it's possible to use locales for button caption.
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
Thilo Graf
b18741efc7 CComponentsButton: fix alignment of button items 2013-06-16 00:34:07 +02:00
Thilo Graf
7d82da09ae CComponentsButton: rework position handling for buttons and code comments 2013-06-03 22:12:48 +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
04afa10e02 CComponents:add sub class CComponentsButton 2013-04-20 12:53:25 +02:00