Commit Graph

19 Commits

Author SHA1 Message Date
Thilo Graf
a68fa0b68d CComponentsFooter: add member to add button labels via vector
Origin commit data
------------------
Commit: 9f902af587
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-08-19 (Tue, 19 Aug 2014)
2014-09-25 11:01:39 +04:00
Thilo Graf
2cfc335e92 CComponentsFooter: use same corner properties like parent object
This avoids paint of unnecessary edges inside parent object.


Origin commit data
------------------
Commit: df4151936b
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-18 (Sun, 18 May 2014)
2014-05-22 21:50:54 +02:00
Thilo Graf
6f1f4cc7e4 CComponentsFooter: use dynamic font on too small footer width
If required width of evaluated buttons larger than footer width,
then use dynamic font for caption, and try to fit buttons into chain
container. Dynamic font is used if ccf_btn_font==NULL

NOTE: user should not use too small window size and not select too large
fontsize. At some point this possibility will be depleted and it's no
more space for readable caption.


Origin commit data
------------------
Commit: 6aecdf3b5a
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-17 (Sat, 17 May 2014)
2014-05-22 21:50:54 +02:00
Thilo Graf
3f4dd7d438 CComponentsFooter: ignore item, if no text and icon are defined
Empty buttons with defined width are causing gaps...looks not nice!


Origin commit data
------------------
Commit: 9937c0fae8
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-11 (Sun, 11 May 2014)
2014-05-22 21:50:52 +02:00
Thilo Graf
1cdbf9c85e CComponentsFooter: add member paintButtons()
This is a nearly methode similar with the older button handler find
in gui/widget/buttons.h, some parameters are different,
but require minimalized input.
This member sets some basic parameters and will paint
concurrently on execute, explicit call of paint() is not required.
This should simplify the implementation of the footer class.


Origin commit data
------------------
Commit: 18f13b0062
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-11 (Sun, 11 May 2014)
2014-05-22 21:50:52 +02:00
Thilo Graf
8a536deb5c CComponentsFooter: simplified dimensions init for default height
Origin commit data
------------------
Commit: 0a3101728a
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-04 (Sun, 04 May 2014)
2014-05-22 21:50:50 +02:00
Thilo Graf
a7b62abdbe CComponentsFooter: set color of button frames to button type, default=gray
Origin commit data
------------------
Commit: 995eff8ffe
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-02 (Fri, 02 May 2014)
2014-05-22 21:50:48 +02:00
Thilo Graf
b1a8e0df28 CComponentsFooter: apply showButtonContour() after init of labels
Function was without effect after adding of button objects,
showButtonContour() now changes property explicit for all items, also
after their addition to chain.


Origin commit data
------------------
Commit: f7860fed35
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-02 (Fri, 02 May 2014)
2014-05-22 21:50:47 +02:00
Thilo Graf
cb8060da8b CComponentsFooter: use chain object in global scope of class
Origin commit data
------------------
Commit: bd03327cb4
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-01 (Thu, 01 May 2014)
2014-05-22 21:50:47 +02:00
Thilo Graf
fffa7ece56 CComponentsFooter: fix missing types for log output
Origin commit data
------------------
Commit: 14ea1de789
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-01 (Thu, 01 May 2014)
2014-05-22 21:50:47 +02:00
Thilo Graf
f2a19fbc2d CComponentsButton, CComponentsFooter: rework bestfit of buttons inside chain
Origin commit data
------------------
Commit: 9ffdb1cb98
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-05-01 (Thu, 01 May 2014)
2014-05-22 21:50:45 +02:00
Thilo Graf
8fc9b3a6a7 CComponentsFooter: add possibility to change font type
Origin commit data
------------------
Commit: 41c01cedad
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-04-30 (Wed, 30 Apr 2014)
2014-05-22 21:50:44 +02:00
Thilo Graf
3ba2c24cad CComponentsFooter: add functionality to add button labels via struct
This function uses struct label like old button label function
see /gui/widget/buttons.cpp, but can also use strings in structs

also possible: add single button with text or locale


Origin commit data
------------------
Commit: 8797872d47
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-04-27 (Sun, 27 Apr 2014)
2014-05-22 21:50:43 +02:00
Thilo Graf
8b6c92681e 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.


Origin commit data
------------------
Commit: 6fe7b452c1
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-03-22 (Sat, 22 Mar 2014)
2014-04-02 08:40:21 +02: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
e15a28753e CComponentsHeader/CComponentsFooter: move footer class into its own file
Origin commit data
------------------
Commit: 7151608c8b
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-28 (Tue, 28 Jan 2014)
2014-02-05 11:56:46 +01:00
Thilo Graf
5ad73f09aa 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.


Origin commit data
------------------
Commit: 5ea7ec48df
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-18 (Sat, 18 Jan 2014)

Origin message was:
------------------
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
[CST] Focus
3bef5be320 components: remove initVarHeader calls in classes derived from CComponentsHeader
Origin commit data
------------------
Commit: 90c76a2985
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-11-27 (Wed, 27 Nov 2013)

Origin message was:
------------------
components: remove initVarHeader calls in classes derived from CComponentsHeader
2013-11-29 17:27:10 +04:00
Thilo Graf
f83a9e6b19 CComponentsFooter: add new class CComponentsFooter
Origin commit data
------------------
Commit: e665ab18ab
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-05-29 (Wed, 29 May 2013)
2013-06-03 22:06:03 +02:00