Commit Graph

7 Commits

Author SHA1 Message Date
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
8a897103ac 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.
2014-03-03 08:54:10 +01:00
Thilo Graf
72f3081b9c CBuildInfo: remove append offset
Append offset is not required here, even harmful, because parent
items (header, body, footer)  in the parent object are already adapted.
Offset maybe required in body object, but not in the parent window.
This fixes also fb remains on the bottom of window after executed
hide() in buildinfo object.
2014-02-05 11:56:47 +01:00
Thilo Graf
65ef4b4ccf CBuildInfo: use member doCenter() for centering window 2014-02-05 11:56:47 +01:00
Thilo Graf
a6c2518017 CBuildInfo: remove destructor
CBuildInfo using already inherited destructor from CComponentsForm.
2014-01-07 09:42:54 +01:00
Thilo Graf
6955df5c5e CBuildInfo: rework buildinfo class for use as CComponentsWindow
also possible: get partial informations also as strings for usage
in other classes
2013-11-11 00:20:10 +01:00
Michael Liebmann
4cf4857201 Add display of build info
- Display compiler version, compiler flags, build PC, kernel version
- configure.ac part ported from filezilla project
2013-11-11 00:20:09 +01:00