Commit Graph

148 Commits

Author SHA1 Message Date
Thilo Graf
5c5805d0ea CComponentsText: add member clearCCText() 2013-03-06 11:28:07 +01:00
Thilo Graf
d970c5303f CComponentsText: fix possible segfault
segfault happens on left empty text

CComponentsInfoBox: inherit ct_textbox

CComponentsInfoBox: inherit ct_box

CComponentsInfoBox: inherit ct_box
2013-03-06 11:28:07 +01:00
Thilo Graf
bb39d1f64f CComponentsInfoBox:start inherit of CComponentsText onto CComponentsInfoBox 2013-03-06 11:28:06 +01:00
Thilo Graf
e80a254daa CComponentsInfoBox: move define of x_text onto paint() 2013-03-06 11:28:06 +01:00
Thilo Graf
e37b5d86f4 CComponents: add missing paint-members to circle and square classes
paint () ist in CComponentsItem abstrakt, muss definiert werden
seine eigene in Unterklassen.
2013-03-06 11:28:06 +01:00
Thilo Graf
4df7e4d144 CComponents: move CComponentsText before Infobox 2013-03-06 11:28:06 +01:00
Thilo Graf
e1c9749730 CComponents: rename Container onto Item, make void paint() abstract
CComponentsItem is shorter then CComponentsContainer, but also
plausible and appropriately.
paint() is required in all sub classes and useful for coming functions.
2013-03-06 11:28:06 +01:00
Thilo Graf
28904b79c7 ComponentsInfoBox: arange text to the left border if no picture is painted
changed isPainted() to isPicPainted(), return of isPicPainted() value was
not marked-down to false and isPainted() means the container frame and
isPicPainted() means the picture itself, so the last state was wrong. Now
it should work fine.

Btw: scope of x_text reduced, is only required in member paintText()
2013-03-06 11:28:05 +01:00
Thilo Graf
fcf8a018c5 CComponentsText: ensure an empty default value for AUTO_WIDTH in setText()
AUTO_WIDTH has ugly sideeffects in context with max width
2013-03-06 11:28:05 +01:00
Thilo Graf
d8447b9110 CComponents: add sub class CComponentsText 2013-03-06 11:28:05 +01:00
Thilo Graf
cb8ac750a5 CComponents: clean up, don't use fbadata in paintFbItems()
Use consistently vector v_fbdata, so we don't need all parameters in
paintFbItems()
2013-03-06 11:28:04 +01:00
Thilo Graf
2c6a317b40 CComponentsItemBox: move paint of text into its own method 2013-03-06 11:28:04 +01:00
Thilo Graf
5bbe8e770e CComponentsItemBox: move paint of icons and pictures into it's own member 2013-03-06 11:28:03 +01:00
Thilo Graf
bc764b4653 CComponentsForm: add functionality
Now it's possible to paint forms with defined caption and icon
2013-03-06 11:28:03 +01:00
Thilo Graf
7bbf0375e1 CComponents: remove bgmode handler
bg_mode varible was never used
2013-03-06 11:28:03 +01:00
Thilo Graf
16d12b4243 CComponentsForm: add basics for CComponentsForm 2013-03-06 11:28:02 +01:00
micha-bbg
33b4fc4cfa CComponentsItemBox: Add flag 'isCalculated' for control calculateElements() 2013-03-06 11:28:02 +01:00
Thilo Graf
2c5367bc59 CComponentsItemBox: use also locales in overloaded methode addText() 2013-03-06 11:28:02 +01:00
Thilo Graf
f5b584a925 CComponentsItemBox: split addElement() 2013-03-06 11:28:02 +01:00
Thilo Graf
0d039171c0 CComponentsPicture: fix hide() of picture box
After hide of a picture box, no paint was possible, this should fix this.
2013-03-06 11:28:01 +01:00
Thilo Graf
e931bdfd6c CComponents: add member isPainted()
Useful for monitoring and evaluation of the state of components,
is also inherited to all subclasses
2013-03-06 11:28:01 +01:00
Thilo Graf
4b1d9ca213 CComponentsShapeSircle: fix segfault on init 2013-03-06 11:28:01 +01:00
Thilo Graf
efb85b958f CComponentsTitleBar: add parameter for default icon
...also removed parameter for text ailgnment, because the most titelbars
need only left alignment and if required more elements, we can use the
addElement() methode.
2013-03-06 11:28:00 +01:00
Thilo Graf
f45246caed CComponentsTitleBar: rename member addText(), convert locale in constructor 2013-03-06 11:28:00 +01:00
Thilo Graf
806d840c86 CComponents: rework some members
*rename col_text to class relevant names,
 col_text is already defined in class CComponents InfoBox and
 its easy to confuse member names
*add member printItemBox() and
 move calculateElements() into CComponentsItemBox and use it
 in print() and refreshElement()
2013-03-06 11:28:00 +01:00
micha-bbg
8745d69d41 CComponentsItemBox: Add refreshElement() & paintElement()
- use paintElement() for CComponentsItemBox::paint
2013-03-06 11:28:00 +01:00
Thilo Graf
c540de4d77 CComponentsTitleBar: add overloaded constructors for different text types 2013-03-06 11:27:59 +01:00
Thilo Graf
edbbfbef8f CComponentsTitleBar: add blanc constructor 2013-03-06 11:27:59 +01:00
Thilo Graf
8cabe408cf CComponents: declare small members as inline 2013-03-06 11:27:59 +01:00
Thilo Graf
19e6866bb8 CComponentsItemBox: use plausible member names 2013-03-06 11:27:59 +01:00
micha-bbg
b88f73d595 * CComponentsItemBox: Use CTextBox for paint text 2013-03-06 11:27:58 +01:00
micha-bbg
758fda514a * CComponents: Adjustments for CComponentsItemBox and CComponentsTitleBar 2013-03-06 11:27:58 +01:00
Thilo Graf
b8c5e2b6da CComponents: add CComponentsItemBox as basich Class for CComponentsTitlebar 2013-03-06 11:27:58 +01:00
Thilo Graf
136885722a CComponentsTitlebar: remove member col_body
is allready inherit from basic class CComponents
2013-03-06 11:27:57 +01:00
micha-bbg
b51ff8401b * CComponents: add class to place an paint titlebars 2013-03-06 11:27:57 +01:00
micha-bbg
61ed9d4862 * CComponents::CComponentsPicture: Add the processing and scaling images 2013-03-06 11:27:56 +01:00
Thilo Graf
d521cac983 CComponents: add members to init inherit variables
This sould enshure, that we have init with basic values in sub classes
2013-03-06 11:27:55 +01:00
Thilo Graf
ee52053f2d CComponentsDetailsLine: add basic constructor without args 2013-03-06 11:27:55 +01:00
Thilo Graf
9aa0d14d39 CComponentsInfoBox: add basic constructor without args
usefull if dynamic changed properties are needed
2013-03-06 11:27:55 +01:00
micha-bbg
af8c8f2c10 * CComponentsInfoBox: Add removeLineBreaks() 2013-03-06 11:27:54 +01:00
micha-bbg
1ac03645cc * CComponentsInfoBox: Add setTextBorderWidth() to paintText()
- Add delete textbox to paint()
- remove CTextBox::AUTO_HIGH
2013-03-06 11:27:54 +01:00
Thilo Graf
9090e41d5b CComponents: Rework some buggy paint methodes 2013-03-06 11:27:53 +01:00
Thilo Graf
aa308c1236 CComponents: paint picture in Infobox 2013-03-06 11:27:53 +01:00
Thilo Graf
2e6ac2420a CComponents: add text functionality into class CComponentsInfoBox() 2013-03-06 11:27:52 +01:00
Thilo Graf
faca582807 CComponents: add class to place and paint icons and pictures 2013-03-06 11:27:52 +01:00
Thilo Graf
485dca43e2 CComponents: add more basic members and sub classes
- change default colors for info box
- add member methode to synchronize system colors
- add class CComponentsShapeCircle
- add class CComponentsShapeSquare
- add sub class CComponentsPIP
2013-03-06 11:27:51 +01:00
Thilo Graf
06ee0c0c10 CComponents: add sub class CComponentsContainer and clean up some members
- add virtual members to set colors
- remove parameters from CComponents constructor and set default values
  in constructor
- v_fbdata becomes a protected member, because old members like
  v_screen_val and v_infobox_val not needed in sub classes
- using sizeof() to get size of fbdata structs in paint() members,
  so we don't need explizit defines for struct size
- new class CComponentsContainer is a basic class for
  CComponentsInfoBox and other similar coming sub classes
- use enums for fbdata types
- add function setShadowOnOff()
- also add defines for plausible usage of setShadowOnOff(CC_SHADOW_ON/OFF)
2013-03-06 11:27:50 +01:00
Thilo Graf
0a961a4cf6 CComponents: move class into its own source directory
The components could over time become quite large,
so it makes more sense, coming features to split into
multiple files and to do it in a separate directory.
2013-02-19 11:27:46 +01:00