Commit Graph

89 Commits

Author SHA1 Message Date
Olivier Teulière
1650c7648c Allow controls directly in the Layout tag (the intermediate Group tag is not mandatory anymore). 2007-09-27 18:04:45 +00:00
Olivier Teulière
8086b07cf0 * skins2:
- New Panel tag, allowing to group the resizing behaviour of controls
    - Documentation updated accordingly
    - Fixed a memory leak due to CtrlMove/CtrlResize objects
2007-01-28 16:49:30 +00:00
Olivier Teulière
dda858d436 * skins2: new "xkeepratio" and "ykeepratio" attributes, common to all the
controls. When set to "true", the behaviour of the resizing is changed
   (cf. documentation). The main use for these attributes is to keep a
   a control centered in the layout (horizontally, vertically or both) without
   resizing the control.
2006-08-05 13:37:06 +00:00
Olivier Teulière
24648f43cf * modules/gui/skins2/*:
- anchors have a new "lefttop" attribute, allowing them to follow the
       border of the window when resizing
     - the resizing is now handled by the WindowManager class (to enforce the
       mediator pattern). This makes it possible to handle tricky cases,
       such as:
           window B is anchored to window A, and A is resized
           ==> B moves accordingly, and can still be anchored by other windows
2006-06-03 23:57:40 +00:00
Olivier Teulière
9ddc8d6a0e * forwardport of [15426] and [15516] 2006-05-02 06:50:30 +00:00
Antoine Cellerier
1aff501d32 Forward port [15485] and [15486]. 2006-04-30 19:16:39 +00:00
Antoine Cellerier
fed99e5f05 Remove the Thumbs.db files here too 2006-04-30 17:12:50 +00:00
Antoine Cellerier
e3aa4d0b12 Forward port [15458]. 2006-04-30 15:39:19 +00:00
Cyril Deguet
b7718838bd * all: added a SliderBackground to the volume slider of the default skin
(fixes an incorrect behaviour when clicking on the white part of the slider)
2006-04-30 13:12:34 +00:00
Antoine Cellerier
0428abf503 Forward port [15410] 2006-04-29 13:12:29 +00:00
Antoine Cellerier
9a72439fd7 New default skin by aLtgLasS. Many thanks for making one on such short notice. 2006-04-28 12:10:07 +00:00
Antoine Cellerier
655d7fb089 Remove playtree skin 2006-04-28 11:38:55 +00:00
Antoine Cellerier
623979f701 Remove old default skin 2006-04-28 11:37:38 +00:00
Cyril Deguet
997d993b34 * all: convert keys in INI files to lower case, to fix buggy winamp2 skins 2006-04-17 17:03:55 +00:00
Cyril Deguet
a5a9346ce5 * all: added a INI file parser in skins2. For instance if the file
with id "pledit" (defined in the new tag "<IniFile>" contains:
    [Text]
    Normal=#FFFFFF
 it will create a constant "pledit.Text.Normal" with value "#FFFFFF"
* winamp2.xml: use the "pledit.txt" file to have correct playlist colors

is it ok to backport in 0.8.5 ?
2006-04-17 12:46:51 +00:00
Antoine Cellerier
832b6848b6 Fix dtd (a Layout can have more than one groups) 2006-04-15 22:33:27 +00:00
Cyril Deguet
467472bcec * all: added a new skin text variable "$S" to get the audio sample rate
(in KHz) + fixed the bitrate ("$B") variable to use only the audio bit rate.
* winamp2.xml: updated the winamp2 skin
2006-04-15 16:18:59 +00:00
Cyril Deguet
ef5c233752 * all: new skin text variable "$B" to get the stream bitrate
* winamp2.xml: added "kbps" info in winamp skins
2006-04-09 14:29:26 +00:00
Antoine Cellerier
3cbb889e73 Ooops, i forgot to commit this in [14771] 2006-04-04 21:21:23 +00:00
Cyril Deguet
1d02365417 * attribute "nbFrames" of element Bitmap is now "nbframes", as said in the
documentation (and the old name was inconsistent with other attribute names)
 Sorry for the compatibility break...
2006-03-25 11:01:03 +00:00
Clément Stenac
f12fa7ca85 Fix playtree deletion
Should support deletion through the delete key. But the delete key is not recognized par X11 skins2.
2006-02-10 23:39:53 +00:00
Clément Stenac
b25680f832 Use uncompressed VLT in svn instead of compressed and compress on build 2006-01-29 21:45:13 +00:00
Olivier Teulière
2fe8bace37 * share/skins2/winamp2.xml: removed a useless control (not even working :)) 2005-12-04 18:52:25 +00:00
Olivier Teulière
87d12b49df * share/skins2/skin.dtd: Video.autoresize defaults to true
* doc/skins/skins2-howto.xml: Added documentation for this attribute
2005-12-04 16:54:17 +00:00
Olivier Teulière
314feea513 * share/skins2/winamp2.xml: Change layout on double-clicks 2005-12-04 16:01:12 +00:00
Olivier Teulière
8a3513c025 * skins2: support for custom popup menus, and win32 implementation.
XML example:
       <PopupMenu id="sample_menu">
           <MenuItem label="Play" action="vlc.play()" />
           <MenuItem label="Pause" action="vlc.pause()" />
           <MenuSeparator />
           <MenuItem label="Show playlist" action="playlist_window.show()" />
           <MenuItem label="Hide playlist" action="playlist_window.hide()" />
           <MenuSeparator />
           <MenuItem label="Quick open file" action="dialogs.fileSimple()" />
       </PopupMenu>

   To call the menu:
       <Button action="sample_menu.show()" ... />

   Known bug: the popup disappears when the user clicks "too fast" on the
   button: the control refreshes itself in an asynchronous way, and the popup
   dislikes it... so click slowly :)
2005-12-04 14:47:26 +00:00
Olivier Teulière
191dc6be6b * share/skins2/skin.dtd: fixed a typo 2005-12-03 22:46:33 +00:00
Cyril Deguet
07391315eb * all: support of animated bitmaps in skins: there are new attributes
"nbFrames" and "fps" in the (Sub)Bitmap elements to set the number
  of frames and the frame rate in a bitmap. As in the radialslider,
  the different frames are just laid vertically in the bitamp (and
  all the frames must have the same size)
  At the moment animated bitmaps are only supported in Button controls.
2005-12-03 11:43:35 +00:00
Cyril Deguet
994fc2286d * winamp2.xml: fix the resize control of the playlist small layout 2005-11-29 18:44:11 +00:00
Olivier Teulière
5c4ccbb149 * skins2: The Image control now supports the "action2" attribute (feel free to
suggest a better name :)), triggered by a double click.
   Very kewl to change the layout...
2005-11-28 21:01:07 +00:00
Olivier Teulière
88367ceafb * share/skins2/winamp2.xml: same fix for other controls 2005-11-27 18:49:49 +00:00
Olivier Teulière
3b55990d9b * share/skins2/winamp2.xml: Fixed a Text control 2005-11-27 18:47:39 +00:00
Olivier Teulière
cb3ffd975a * share/skins2/winamp2.xml: Use the new resizeE feature for the resizing
control of the playlist, in the small layout.
2005-11-27 18:15:23 +00:00
Cyril Deguet
b256b8ef8e * winamp2.xml: fixed 13419 (don't work at least for "chaos") 2005-11-27 16:19:45 +00:00
Cyril Deguet
eb4bf29866 * all: added a new variable "equalizer.preamp" (self-explanatory ;) in skins
* winamp2.xml: added preamp slider and fixed offsets
2005-11-27 16:01:53 +00:00
Olivier Teulière
163879e708 * share/skins2/winamp2.xml: fixed the images of the playlist buttons 2005-11-27 15:29:55 +00:00
Olivier Teulière
82c45b1dee * share/skins2/winamp2.xml:
- added the smaller version of the time slider used in some skins
   - made all the IDs unique
2005-11-27 14:54:02 +00:00
Cyril Deguet
406c3f7c63 * winamp2.xml: add/sub buttons in playlist 2005-11-19 13:56:46 +00:00
Olivier Teulière
f53914b68e * share/skins2/winamp2.xml: A few more controls 2005-11-16 22:35:56 +00:00
Olivier Teulière
8753c93a6d * share/skins2/winamp2.xml: use the new Text control attributes, and use $t
instead of $T
2005-11-15 20:53:43 +00:00
Olivier Teulière
e2cc1fabee * skins2: the Text control now supports 2 additional attributes:
- alignment: possible values are left/right/center (left is the default)
         The right and center alignments are computed using the width of the
         control (as given by the "width" attribute).
    - scrolling: possible values are auto/manual/none (auto is the default)
       * auto: same behaviour as before, the text automatically starts
         scrolling if it doesn't fit in the width of the control. The user can
         still drag it manually.
       * manual: only manual scrolling is possible
       * none: no scrolling possible
2005-11-15 20:00:04 +00:00
Olivier Teulière
3c5d89e5e8 * share/skins2/winamp2.xml: Fixed some offsets 2005-11-13 19:14:06 +00:00
Olivier Teulière
563dc100db * share/skins2/winamp2.xml: Added a few controls 2005-11-13 14:43:25 +00:00
Cyril Deguet
b827c556d5 * winamp2.xml: support smaller volume bars (65 pixels instead of 68)
* builder.cpp: don't build a subbitmap or a fontbitmap if it already
  exists (so if the xml contains elements with the same id, the first
  valid one is kept)
2005-11-13 12:12:25 +00:00
Cyril Deguet
fff99eeaf2 * winamp2.xml: re-added the removed equalizer slider 2005-11-13 10:54:39 +00:00
Olivier Teulière
d3bbcab891 * share/skins2/winamp2.xml: Still more controls 2005-11-13 01:25:16 +00:00
Olivier Teulière
cc6e64574e * share/skins2/winamp2.xml: Fixed the volume slider background, and added
images for the state of the stream (playing/paused/stopped)
2005-11-13 00:07:56 +00:00
Olivier Teulière
c544336775 * share/skins2/winamp2.xml: Added other controls 2005-11-12 23:45:34 +00:00
Olivier Teulière
ac91ba0290 * share/skins2/winamp2.xml: A few fixes, and some more controls 2005-11-12 19:59:58 +00:00
Olivier Teulière
e55c41bf7b * share/skins2/winamp2.xml: minor fix 2005-11-12 18:00:57 +00:00