Commit Graph

122 Commits

Author SHA1 Message Date
Michael Liebmann
60b0c9dfd6 CComponents::paintFbItems: Fix paint frame
- Remove function CComponents::allowPaint()


Origin commit data
------------------
Commit: 612ef514a3
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-05-09 (Thu, 09 May 2013)

Origin message was:
------------------
* CComponents::paintFbItems: Fix paint frame

- Remove function CComponents::allowPaint()
2013-05-10 11:32:12 +01:00
Thilo Graf
109a0ba9ac CComponents: rework kill()
There was some problems with restore, hide, clean and save background of item parts,
seen in detailsline. kill() worked not really clean.
kill() works now as virtual member and uses paintBackgroundBoxRel().

In consequence of which:
-unnecessary members in subclasses removed.
-add some comments


Origin commit data
------------------
Commit: a4c3e08f77
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-05-03 (Fri, 03 May 2013)
2013-05-03 19:51:57 +02:00
Thilo Graf
39683163d1 CComponentsPicture: use members as virtual members
Makes members ready for use in subclasses


Origin commit data
------------------
Commit: e84ac6f3a1
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-27 (Sat, 27 Apr 2013)
2013-04-28 16:48:10 +02:00
Thilo Graf
21002c268b CComponents: add members setPos() and getSize()
Origin commit data
------------------
Commit: 0fe69feb96
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-26 (Fri, 26 Apr 2013)
2013-04-28 16:48:09 +02:00
Thilo Graf
5e92bd4cb6 CComponentsText: paint text only on text change, add members to handle this
It can be usefull to hold unchanged text to avoid unnecessary text
paintings. It's also also possible to force paint of text,
use forceTextPaint(). Use textChanged(), to evaluate current text changes.


Origin commit data
------------------
Commit: dfc6e2069e
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-26 (Fri, 26 Apr 2013)
2013-04-27 22:20:10 +02:00
Michael Liebmann
53286b7a4a CComponentsLabel: Use 'std::string' instead of 'const char*' for ct_text
- Supplement to commit 4c87ca5...


Origin commit data
------------------
Commit: eafcbf6a86
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-04-25 (Thu, 25 Apr 2013)

Origin message was:
------------------
* CComponentsLabel: Use 'std::string' instead of 'const char*' for ct_text

- Supplement to commit 4c87ca5...
2013-04-25 09:34:53 +01:00
Thilo Graf
be86748e20 CComponentsText: add bool as return value for setTextFromFile()
Origin commit data
------------------
Commit: cc63773920
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-24 (Wed, 24 Apr 2013)
2013-04-24 19:56:00 +02:00
Thilo Graf
00df520734 CComponentsText: use member function 'ToString' as static
Origin commit data
------------------
Commit: ca9d7add48
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-22 (Mon, 22 Apr 2013)
2013-04-24 19:48:39 +02:00
Thilo Graf
f25a1ef797 CComponentsText: add member to use file as text source
Origin commit data
------------------
Commit: cdfc544809
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-22 (Mon, 22 Apr 2013)
2013-04-24 19:48:39 +02:00
Michael Liebmann
4c87ca5fea CComponentsText: Use 'std::string' instead of 'const char*' for ct_text
Origin commit data
------------------
Commit: 3a19edda45
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-04-20 (Sat, 20 Apr 2013)

Origin message was:
------------------
* CComponentsText: Use 'std::string' instead of 'const char*' for ct_text
2013-04-22 15:41:03 +01:00
Thilo Graf
7704f0de8c CComonents: disable debug spam
Origin commit data
------------------
Commit: 8813dccc7e
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-16 (Tue, 16 Apr 2013)
2013-04-16 11:40:01 +02:00
Thilo Graf
a34b353f06 CComponents: add vars to modifie frames in selected mode
Origin commit data
------------------
Commit: 894d229b09
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-16 (Tue, 16 Apr 2013)
2013-04-16 08:32:42 +02:00
Thilo Graf
a034567d97 CComponentsItem: add members to set pointer for parent object
Pointer is typically of type CComponentsForm or derived classes,
default intialized with NULL and serves to access for
properties of parent object by embedded items.


Origin commit data
------------------
Commit: 336c3bc7a1
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-15 (Mon, 15 Apr 2013)
2013-04-16 08:26:56 +02:00
Thilo Graf
4187dcbf8e CComponents: add own header file for unused experimental classes
Origin commit data
------------------
Commit: 4317b0b4fb
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-15 (Mon, 15 Apr 2013)
2013-04-16 08:26:56 +02:00
Thilo Graf
36a293b309 CComponentsForm: add own header for form classes
Origin commit data
------------------
Commit: 39a4e3400e
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-15 (Mon, 15 Apr 2013)
2013-04-16 08:26:56 +02:00
Thilo Graf
9bec663650 CComonents: use allowPaint() as private, parameter as by rev
not used in sub classes


Origin commit data
------------------
Commit: d7c35b07e4
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-14 (Sun, 14 Apr 2013)
2013-04-16 08:26:56 +02:00
Thilo Graf
2e343b322e CComponentsItem: add properties for stats enabled/selected
Origin commit data
------------------
Commit: 4f623b822f
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-13 (Sat, 13 Apr 2013)
2013-04-16 08:26:56 +02:00
Thilo Graf
8a97c383f9 CComponentsItem: add members to get real item position
Origin commit data
------------------
Commit: 9420edd932
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-12 (Fri, 12 Apr 2013)
2013-04-16 08:26:55 +02:00
Thilo Graf
be1c95266b CComponentsText: add overloaded member setText() for int vars
Origin commit data
------------------
Commit: fb64fb5d35
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-10 (Wed, 10 Apr 2013)
2013-04-16 08:26:55 +02:00
Thilo Graf
48237184c8 CComponentsItem/Form: add var for real item position
If items are used in forms it can be usefully to have a variable
which contains the real position on screen.
This can happen e.g. if an item contains separate render methods, because within forms
usual x/y values related to form dimensions and be converted.


Origin commit data
------------------
Commit: 62efe2cb59
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-10 (Wed, 10 Apr 2013)
2013-04-16 08:26:54 +02:00
Thilo Graf
dbc9c1e08f CComponentsText: add helper to convert integer to string
Origin commit data
------------------
Commit: 546b04b846
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-10 (Wed, 10 Apr 2013)
2013-04-16 08:26:54 +02:00
Jacek Jendrzej
ba1e24ee31 CComponents: don't paint the same box with different colors as background
Origin commit data
------------------
Commit: d18217effb
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-04-04 (Thu, 04 Apr 2013)
2013-04-04 12:19:31 +02:00
Thilo Graf
6004ccf321 CComponentsText: add member to control background paint on textbox objects
Origin commit data
------------------
Commit: 3a4543b8d2
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-04 (Thu, 04 Apr 2013)
2013-04-04 09:56:53 +02:00
Thilo Graf
0fc70f3bb6 CComponents: disable debug spam
Origin commit data
------------------
Commit: bdbea07e71
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-01 (Mon, 01 Apr 2013)
2013-04-04 09:56:52 +02:00
Thilo Graf
03b22f2d23 CComponents: add progressbar class to cc-items
CProgressbar moved into components sub directory and adapt includes.
Progressbar objects are now usable as cc-item

TODO:
-some color and size corrections
-found some dub codes for sig and snr-bars, needs rework


Origin commit data
------------------
Commit: 860be9a412
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-04-01 (Mon, 01 Apr 2013)
2013-04-02 09:31:05 +02:00
Thilo Graf
17d13ef103 CComponents: move item type enum to cc_types.h
Origin commit data
------------------
Commit: d391bedd5f
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-26 (Tue, 26 Mar 2013)
2013-04-02 09:31:05 +02:00
Thilo Graf
9376d64379 CComponentsLabel: add missing item type
Origin commit data
------------------
Commit: c99e23289b
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-24 (Sun, 24 Mar 2013)
2013-03-24 21:14:11 +01:00
Thilo Graf
b43f07bd80 CComponentsWindow/Header: fix add of header buttons
setHeaderButtons was without effect


Origin commit data
------------------
Commit: cc31a41f43
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-22 (Fri, 22 Mar 2013)
2013-03-24 21:14:10 +01:00
Thilo Graf
4096f4f6f6 CComponentsPIP: paint alternate picture if no tv mode
Use setPicture() to change image on runtime.


Origin commit data
------------------
Commit: 8196cf7671
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-22 (Fri, 22 Mar 2013)

Origin message was:
------------------
CComponentsPIP: paint alternate picture if no tv mode

Use setPicture() to change image on runtime.
2013-03-24 21:14:10 +01:00
Thilo Graf
5612f13d94 CComponentsText: rename getCCItemTextBoxInst -> getCTextBoxObject
This name should be more plausible


Origin commit data
------------------
Commit: 6b68259ac6
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-21 (Thu, 21 Mar 2013)
2013-03-21 11:37:20 +01:00
Thilo Graf
0e9ff3d23c fix license text, sorry, was a c&p error
Origin commit data
------------------
Commit: 0dc4686874
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-20 (Wed, 20 Mar 2013)
2013-03-21 11:37:00 +01:00
Michael Liebmann
45f96526b9 CImageInfo: Scroll license text if text box too small
Origin commit data
------------------
Commit: 801a15df7c
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-03-20 (Wed, 20 Mar 2013)

Origin message was:
------------------
* CImageInfo: Scroll license text if text box too small
2013-03-21 06:56:24 +01:00
Thilo Graf
91b0577c45 CComponents: fix build, fb_pixel_t and neutrino_locale_t was missed
Origin commit data
------------------
Commit: ab00522900
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-19 (Tue, 19 Mar 2013)
2013-03-19 08:12:35 +01:00
Thilo Graf
dd28162c61 CComponentsInfoBox: add NULL as default parameter for info_text
It's better to handel with NULL.

make clearCCItems() public and virtual so it can be used in window objects


Origin commit data
------------------
Commit: 259b58c829
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-18 (Mon, 18 Mar 2013)
2013-03-19 08:11:00 +01:00
Thilo Graf
a4460b8623 CComponentsLabel: add new sub class CComponentsLabel
Origin commit data
------------------
Commit: 2f5404d2fa
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-17 (Sun, 17 Mar 2013)
2013-03-18 12:04:58 +01:00
Thilo Graf
d2e2248b03 CComponentsHeader/Window: add possibility to return header height
Origin commit data
------------------
Commit: ca42d9ba74
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-15 (Fri, 15 Mar 2013)
2013-03-18 12:04:47 +01:00
Thilo Graf
bb1b5bc188 CComponentsWindow: add constructors with parameters for caption and icon
Origin commit data
------------------
Commit: d87d0754e0
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-14 (Thu, 14 Mar 2013)
2013-03-18 12:04:35 +01:00
Thilo Graf
15a7b60515 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.


Origin commit data
------------------
Commit: 4a931af6ef
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-13 (Wed, 13 Mar 2013)
2013-03-18 12:04:25 +01:00
Thilo Graf
b35eeb6c3c CComponentsHeader/Icon: use inherited destructor
Inherited destructor contains identic code.


Origin commit data
------------------
Commit: da356d94da
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-10 (Sun, 10 Mar 2013)
2013-03-18 12:04:21 +01:00
Thilo Graf
078e3414cc CComponentsWindow: remove refresh()
initCCWItems() does the same, but is private


Origin commit data
------------------
Commit: de330ac39c
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-09 (Sat, 09 Mar 2013)
2013-03-18 12:04:16 +01:00
Thilo Graf
de00ec3d5e 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.


Origin commit data
------------------
Commit: 3ed9af87ad
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-02-26 (Tue, 26 Feb 2013)
2013-03-06 11:28:18 +01:00
Thilo Graf
3e41a76a1d CComponents: move components.cpp to cc_base.cpp, move types to own header
Origin commit data
------------------
Commit: 10f429ee0f
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-02-23 (Sat, 23 Feb 2013)
2013-03-06 11:28:18 +01:00
Thilo Graf
94b2477fa4 CComponents: fix some includes
Included header files don't fit after move of components.


Origin commit data
------------------
Commit: 44346c6417
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-02-20 (Wed, 20 Feb 2013)
2013-03-06 11:28:17 +01:00
Thilo Graf
45a9f295e7 CComponents: add some new variables and parameters and modifie debug output
- add var for object index
 can be usefull for identifications of objects for focus operations soon

- add default value for screen size (30%) to CComponentsPIP constructor
 most size we mostly use is 30% of size

- add setters for screen_w and screen_h
 also this can be usefull t adapt screen sizes e.g. during
 runtime operations


Origin commit data
------------------
Commit: 399eb696d6
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-02-17 (Sun, 17 Feb 2013)

Origin message was:
------------------
CComponents: add some new variables and parameters and modifie debug output

- add var for object index
 can be usefull for identifications of objects for focus operations soon

- add default value for screen size (30%) to CComponentsPIP constructor
 most size we mostly use is 30% of size

- add setters for screen_w and screen_h
 also this can be usefull t adapt screen sizes e.g. during
 runtime operations
2013-03-06 11:28:17 +01:00
Thilo Graf
9dc65b1879 CComponents: add more debug output and fix typo in enum CC_ITEMTYPES
Origin commit data
------------------
Commit: 2940c4e5f6
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-02-17 (Sun, 17 Feb 2013)
2013-03-06 11:28:16 +01:00
Thilo Graf
7b6db46cbc CComponentsItem: add members getItemType(), cc_item_type
Small helper for detection of item types.
This could be useful, if it is necessary, to track these at runtime or
debugging, because it's not really detectable, which items just be used.
e.g forms could contain very much items, but many of these items
are inherited from CComponentsItem and an assignment to a certain subclass.


Origin commit data
------------------
Commit: 6175fd989d
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-12-04 (Tue, 04 Dec 2012)
2013-03-06 11:28:16 +01:00
Thilo Graf
b0d34073ee CComponentsHeader: add member 'setHeaderButtons()'
Gives possibility to set default button types,

possible parameter types are:
CC_BTN_HELP, CC_BTN_INFO, CC_BTN_MENU, CC_BTN_EXIT


Origin commit data
------------------
Commit: 9605d7438f
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-30 (Fri, 30 Nov 2012)
2013-03-06 11:28:16 +01:00
Thilo Graf
f4bfcc6657 CComponentsWindow: add sub class CComponentsWindow
Origin commit data
------------------
Commit: fa9ffdd46e
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-30 (Fri, 30 Nov 2012)
2013-03-06 11:28:16 +01:00
Thilo Graf
0fa3c86ab9 CComponentsForm: add virtual members to replace cc-item
Origin commit data
------------------
Commit: b9dd3e21bf
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-26 (Mon, 26 Nov 2012)
2013-03-06 11:28:15 +01:00
Thilo Graf
4ea3ce9297 CComponentsHeader: add enums for header items
Origin commit data
------------------
Commit: 79dd6456b0
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-11-25 (Sun, 25 Nov 2012)
2013-03-06 11:28:14 +01:00