/*---------------------------------------------------------------------------------------------------------
Poppler Replacement2 by Plague (Linus Brolin)
v1.1c

This will replace the Poppler (sidecar pop-in/pop-out button found in the Playlist Editor) with a new and
very much improved one.

Features:
 # Change location of the Sidecar to any edge (top, bottom, left or right).
 # Resize the Sidecar to any size, from tiny to the entire Playlist Editor.
 # Reset to the default Sidecar size anytime you want.
 # Lock the current Sidecar size with a simple menu setting.
 # Poppler Replacement2 remembers your layout when you shut down Winamp3 and resets itself to that exact
   layout when Winamp3 is started again.

To sum it up:
   Poppler Replacement2 let's you manage your Playlist Editor workarea like you should have been able to
   do from the start, and more!

How to use:
 > Rightclick on the Poppler to get a Settings menu, where you can choose to change
   the Sidecar's location to any edge (top, bottom, left or right), reset to the default
   Sidecar size and lock to the current size.
 > Leftclick on the Poppler to toggle the Sidecar between hidden and it's previous size.
 > Leftdown on the Poppler, while the lock-setting isn't set, and drag it to a desired new location.
   This will change the Sidecar's size. Once you let go of the mousebutton, the new size is set.
 > Shift + Leftdown on the Poppler and drag it to a desired new location. This will override the
   lock-setting and change the Sidecar's size. Once you let go of the mousebutton, the new size is set.


*** DO NOT blame me if you brake your Winamp3, use this at your own risk!! ***


Version history:
v1.1d
- removed the poppler tooltip again ;)
- added a msgbox instead, which shows up when the lock-setting is set and can be turned off anytime, just like
  the Quick Selection box which appears when you close the Searchline the first time. Much better :)

v1.1c
- added a menu item to lock the sidecar to it's current size.
- made SHIFT key override the lock-setting and added a tooltip for the poppler to explain the SHIFT feature.
- cleaned the code up a little bit..

v1.1b
- fixed a small annoyance when manually dragging the poppler until it's closed and then click it to open, it
  opened to a really tiny tiny size.. All better now, you'll see ;)

v1.1
- Fixed a few bugs I didn't notice before
- Removed Manual window, only the Readme file has the manual now. (Don't ask why, the decision has been made
  and will stay that way for the time beeing atleast)
- Now installs like the first Poppler Replacement in all builds, for several reasons:
  1) some people couldn't make it work when loaded as addon
  2) new addons manager isn't good, it's actually pretty bad, so I'll remove the "fix" and just keep
     the prefs page support for addons and release it as a separate project for anyone to download and use.
  3) Poppler Replacement2 will OFFICIALLY replace the default poppler soon, which removes the point of loading
     it as an addon at all..
- Can now be resizable to ANY size!! (by popular demand)
- It will "snap" towards the default width/height when it's nearing that size. (this is actually really nice)
- New/updated installer (also much smaller due to the wac not beeing included anymore)
- all the other shit I've forgotten about

v1.0 (initial release):
- Rewrote the Poppler Replacement from SCRATCH!
  Poppler Replacement2 is a whole new product with over 500 lines of code!! (which will probably increase)
- Made pretty logo :)
- Made support for changing position of the Sidecar, you can now have the sidecar at any edge you want
  (top, bottom, left or right)
- Poppler Replacement2 has a Settings Menu which will appear if you rightclick on the Poppler.
- Much improved resizing compared to the first Poppler Replacement.
  You now press Shift + Leftdown and drag the poppler to the desired location, instead of the "hackish"
  way it was done in the first Poppler Replacement.
- Minimum size for the Sidecar, when located at the left or right edge, is now the original Sidecar width.
  This was done for several reasons, but mostly because it was once requested by Brennan and there's also
  no point of having it smaller than that. Minimum size when the Sidecar is located at the top or bottom
  is smaller though, this is because there can actually be useful to have it alot smaller there since you
  have the whole Playlist Editor width to play with and you might want to have the sidecar only show one
  item/file plus the Sidecar selection button.
- In the Settings Menu, you'll find an item called "Move to default pos", this will move the Poppler/resize
  the Sidecar to the default Sidecar witdh for that Sidecar location. Can come in very handy at times.
- Poppler Replacement2 also has a manual window, stucked inside Winamp3 Preferences, which you can open
  from the Settings Menu.


Known issues:
- the sliding can be "choppy", this is a Winamp3 issue, there's nothing I currently can do about it in maki
- no resize cursor, However, in this new generation I don't think it needs one

Constructive comments/criticism/suggestions are welcome..
Have phun!

-Plague
---------------------------------------------------------------------------------------------------------*/

Linus Brolin
linus.b @ home.se