Commit Graph

45 Commits

Author SHA1 Message Date
svenhoefer
9bb0e45fce - icons: rename mute.png => muted.png; ...
This icon isn't a button. It signalizes the mute-status. So i renamed it to get the name free for the button icon.

Signed-off-by: Thilo Graf <dbt@novatux.de>
2018-01-05 00:52:58 +01:00
svenhoefer
0fc3e793a4 - neutrino: unify modes handling; ...
remove double enum from CNeutrinoApp and move mostly used enum from NeutrinoMessages to new NeutrinoModes

Signed-off-by: Thilo Graf <dbt@novatux.de>
2017-11-22 15:42:09 +01:00
svenhoefer
6ee3e54741 - add and use FRAME_WIDTH defines; ...
replace other fixed frame widths with OFFSET defines

Signed-off-by: Thilo Graf <dbt@novatux.de>
2017-09-20 21:29:53 +02:00
svenhoefer
4dffefcc21 - volumebar: use OFFSET defines; fix height of progressbar
Signed-off-by: Thilo Graf <dbt@novatux.de>
2017-06-15 01:01:55 +02:00
svenhoefer
43dbfed1ba - move ENABLE_CHANGE_OSD_RESOLUTION to scale2Res() function 2017-02-19 23:31:46 +01:00
svenhoefer
e631c3e3c0 - framebuffer: rename scaleFont() to scale2Res() 2017-02-19 23:22:12 +01:00
M. Liebmann
13a7358e64 neutrino: Upscaling fonts, infoclock and volumebar for full hd 2017-02-13 12:51:14 +01:00
Stefan Seyfried
2303d94300 replace fontrenderer.h include with forward declaration
in order to flatten the build dependency tree further, include
fontrenderer.h directly where needed, in header files a forward
declaration is enough
2017-02-07 17:23:42 +01:00
Thilo Graf
58c65b1a7e CVolumeBar: add missing paint() methode, avoid multiple iitem instances 2017-01-31 16:36:43 +01:00
Thilo Graf
7de2fbe881 CVolumeBar: use OFFSET_INNER_SMALL instead static value for item offset 2017-01-31 16:36:42 +01:00
Thilo Graf
3f0b81f0a7 CVolumeBar: use CORNER_RADIUS_MID
cornerRad() is not really the best solution.
Inner items are fit with full height and should use the same value.
2017-01-31 16:36:42 +01:00
Thilo Graf
4d2dd415c1 CVolumeBar: don't use digit height
height is wrong and calculations for digit positions could be confused
2017-01-31 16:36:42 +01:00
M. Liebmann
e74f24a658 CVolumeBar: Enable background paint for digits 2017-01-31 16:36:42 +01:00
M. Liebmann
dc4ce280ed CMoviePlayerGui: Bind enable/disable FileTime to enableInfoClock() 2017-01-30 07:15:46 +01:00
Thilo Graf
236ca53954 CVolumeHelper: fix info clock position after changed clock osd settings
After increased clock height settings, position of infoclock was wrong.
Old font instance and old width were not changed related to new instance.

TODO: 	It works but procedure with helper class seems is rather elaborate
	and should be thoroughly revised.
	I recommend callbacks via native type save signal/slot handler.
2017-01-08 15:03:25 +01:00
Thilo Graf
9839db9729 CVolumeHelper: remove unnecessary reinit of font
Is already done in previous block.
2016-12-21 10:19:35 +01:00
TangoCash
1ea12764da volumebar font reset after change (thx dboxoldie)
to avoid segfault

Signed-off-by: Thilo Graf <dbt@novatux.de>

picked from Duckbox-Developers/neutrino-mp-cst-next
4365761b2a47e12666154821c2ce982f74ef0627

needs supplements
2016-12-21 10:13:48 +01:00
svenhoefer
5d450c60d3 - rename SHADOW_OFFSET -> OFFSET_SHADOW 2016-10-10 14:19:55 +02:00
Thilo Graf
0146511f38 components: rework classes
- outsourced some classes cc_item.cpp/h, cc_draw.cpp/h
- added extra methodes for simple use of some basic components extra.cpp/h
- rework clock handling: use timer class, reworked members for
  enable/disable clock with external timer events,
  tryed to fix some display issues related with infoclock and
  time osd clock in moviebrowser, channellist, menuus
- reworked hide/kill handling, removed parameter for hide(), try to use
  cached backgrounds for other constallations, paint cache, image cache (all beta)
- reworked shadow/frame handling, add shadow modes for left/right
  arrangement, TODO: repaint for existant instances required
- reworked color gradient assignment (beta)

... Note: I had a data crash in my local git tree
and i tryed to restore my historie, but most was lost. Therefore here
the commit is large
2015-12-27 14:42:27 +01:00
Thilo Graf
6a50e56321 CVolumeBar: optimize icon position 2015-03-29 22:40:11 +02:00
Thilo Graf
84ee2dd059 CVolumeBar: use defined volumebar size as default height 2015-03-29 22:40:11 +02:00
Thilo Graf
8a1965fcca CVolumeBar: fix icon postion
Icon was not centered in y position.
2015-03-29 22:39:55 +02:00
[CST] Focus
416646bbff merge neutrino-mp progressbar code, (C) martii 2014-07-17 17:02:37 +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
M. Liebmann
65859318d0 Fix display volumebar when channellist is visible 2014-01-28 12:59:17 +01:00
martii
1c53781218 gui/timeosd: rewrite based on infoclock implementation 2013-12-17 00:11:43 +01:00
M. Liebmann
a4dc972774 CInfoClock: Fix size & position calculation 2013-12-11 15:55:14 +01:00
martii
15b2b2ec05 remove widest_number definition and usage, add Font::getMaxDigitWidth() method instead
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com>
2013-11-29 23:02:50 +01:00
[CST] Focus
062b10be2a components: remove initVarForm calls in classes derived from CComponentsForm 2013-11-29 17:27:10 +04:00
M. Liebmann
1bfb6d2cd3 CComponentsFrmClock: Rework font handling
- Use setClockFont(enum FONT_TYPES) for selection of neutrino fonts
- Use setClockFontSize(size) for Dynamic Font
2013-11-28 16:07:48 +01:00
M. Liebmann
0c18d4a6db CInfoClock: Rework calculate size & position
- Fix display info clock
- Preparation for alternative use of neutrino fonts / DynFonts
2013-11-28 16:07:48 +01:00
M. Liebmann
7466d6f19c InfoClock: Fix display clock in movie browser, file browser etc. 2013-11-22 10:01:35 +01:00
M. Liebmann
6a5d335430 CInfoClock: Fix paint info clock when mute icon is displayed 2013-11-20 09:38:38 +01:00
Thilo Graf
b8b61684df CInfoClock: rework infocklock 2013-11-20 09:38:37 +01:00
Thilo Graf
33ec56ad6f CComponents: remove member setCornerRadius(),
setCorner() replaces this function, 2nd parameter sets type
2013-09-19 08:24:40 +02:00
Michael Liebmann
0a0035c2ae Add option to resize the VolumeBar
- Minimum height: Height of NEUTRINO_ICON_VOLUME + 2 pixels
- Maximum height: 50 pixels
- Setting can be changed with:
  Menu -> Settings -> OSD -> Volume -> Height of display
2013-07-21 22:06:05 +02:00
Michael Liebmann
5267667cfb Use dynamic font in CVolumeBar 2013-07-21 22:06:00 +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
Michael Liebmann
2a63a85584 CVolumeBar: add enums for volume bar pos 2013-07-03 07:30:09 +02:00
Thilo Graf
a6cd3d8633 CVolumeBar: remove redundant code parts
corrections of position is already  calculated in paintInit()
2013-06-16 00:34:07 +02:00
Michael Liebmann
c70167b58f CVolumeBar: Reactivate position 'higher center' for volume bar 2013-06-06 12:00:06 +02:00
Thilo Graf
b010b3bd09 CVolumeBar: rework size handling
Signed-off-by: Michael Liebmann <tuxcode.bbg@gmail.com>
2013-06-03 22:12:48 +02:00
Thilo Graf
fb812f38e8 CProgressBar/CVolumeBar: fix position of active/passive bar
Assign real position values to progressbar if is bound (embedded) in a form.
This is dependently from its own parent status. Status of cc_parent==NULL
means, it's not bound and without parent form so we use x/y, otherwise
we use real values stored by cc_xr/cc_yr.
Values in cc_xr/cc_yr and cc_parent were assigned with addCCItem().

Signed-off-by: Michael Liebmann <tuxcode.bbg@gmail.com>
2013-06-03 22:12:48 +02:00
Michael Liebmann
cfd7b4b16b * Rework positioning of volumebar / mute icon / info clock
- Is required for custom icons
2013-05-10 11:32:12 +01:00
Thilo Graf
8baec6d62a CVolumeBar: rework volumebar handling
Use CComponenets and separates the gui part from driver part

- add new class CVolumeBar as CComponentsForm
- Various changes for reworked volume bar handling in some classes
- Move AudioMute() from CVolume to new class CAudioMute
- Use CComponentsPicture to paint muteicon
2013-05-08 05:11:24 +01:00