aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/drawable_control.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-05-04remove semicolon after namespaceAlexander Sulfrian1-1/+1
Class definitions have to end with a semicolon but not namespaces. So remove this everywhere.
2013-01-20menu/drawable_control: add signals for mouse eventsAlexander Sulfrian1-0/+7
2013-01-20fix includesAlexander Sulfrian1-0/+2
2013-01-20menu/drawable_control: add static member for debug boxesAlexander Sulfrian1-6/+15
2013-01-20menu/drawable_control: fix focus with clippingAlexander Sulfrian1-0/+1
2013-01-18menu: add mouse manager for handling mouse focus and clicksAlexander Sulfrian1-0/+28
2013-01-18menu: add get_component_at to get componentAlexander Sulfrian1-0/+22
This is the basis for mouse focus handling.
2013-01-18drawable_control: add focusable propertyAlexander Sulfrian1-2/+12
drawable controls could now disable the ability to receive focus
2013-01-18menu: fix calculate window coordinatesAlexander Sulfrian1-0/+5
2013-01-13menu: code style: change naming of bool-getter to is prefixAlexander Sulfrian1-1/+1
2013-01-13base/config: add debug.boxes config optionAlexander Sulfrian1-0/+10
if debug.boxes is true in configuration file, a red border is drawn around all controls
2013-01-13menu/drawable_control: always cache modelview matrixAlexander Sulfrian1-12/+17
Some controls modify the modelview matrix during drawing their contents. Restore it afterwards, so that other parts could be drawn easily on top.
2013-01-13menu: use boost::shared_mutexAlexander Sulfrian1-11/+19
Use everywhere a mutable boost::shared_mutex to enable locking during const getter and the multiple reader and single writer pattern.
2013-01-13remove legacy keywords from file headerAlexander Sulfrian1-2/+0
2013-01-13menu: generalized frame_background to backgroundAlexander Sulfrian1-2/+32
background could now be a background for all DrawableControl instances each subclass should call the parents draw() during executing the draw() method for background painting TODO: background should know the size of the control to only draw the background there
2013-01-13menu/clipping_helper: made clipping workingAlexander Sulfrian1-5/+1
2013-01-13menu/contianer: element position should be relative to the container positionAlexander Sulfrian1-2/+0
container should provide each of the containing elements' draw functions with its own position as base (store before drawing the first element and restore it after each drawing)
2013-01-13menu/container: clipping requires window coordinatesAlexander Sulfrian1-1/+4
glScissor only work with window coordinates. to calculate that a control has to know it position on the window and therefor the parent container have to track the position in the window
2013-01-13menu/container: cleanup while destruction of containerAlexander Sulfrian1-4/+9
while a container is destructed, the parent of all containing controls will be removed, so that the controls it self do not try to unregister itself from the destroyed container later (while destruction the control class of the container and destroying all slave controls)
2013-01-13menu/drawable_control: added size to controls and clip drawing if requestedAlexander Sulfrian1-3/+57
if requested (set_clipping_required) DrawableControl will use ClippingHelper to setup glScissor befor drawing the content. container will request clipping by default
2013-01-05menu/drawable_control: added position, glTransform to position before drawingAlexander Sulfrian1-2/+37
software_mouse_pointer does not need an own position anymore and simply draw it without position change
2013-01-05menu/drawable_control: added repaint, that reinitialize the gl environmentAlexander Sulfrian1-0/+9
2013-01-05menu: frame should not be added to container item listAlexander Sulfrian1-3/+21
if a frame is constructed, it needs a container as parent to get the size of it, but it should not be in the container item list and should be painted first, to be under every component the inner classes are used as helper classes, to be able to call a virtual method in the constructor of drawable_control to decide whether to add the control to the controls list of the container or not
2013-01-05menu/drawable_control: added logAlexander Sulfrian1-0/+3
2013-01-05menu: Container could contains and draw DrawableControlsAlexander Sulfrian1-2/+9
DrawableControls register/unregister itself during construction/destruction at the Container (supplied as owner) and get automatically drawn
2013-01-05added parent to controlAlexander Sulfrian1-1/+2
parent is used to delete the objects if the parent is deleted
2013-01-05started gui frameworkAlexander Sulfrian1-1/+7
renamed menubackground to framebackground and splited out framebackgroundcolor created control as base class renamed draw to repaint and on_draw to draw in drawable implemented drawablecontrol as base for all visible controls on windows created container (subclass of drawablecontrol) that could contain other drawablecontrols created frame (subclass of container) with a background added openGL ldflag
2013-01-05added Point, Point3D, Dimension, Rectangle, RgbColor and Texture classesAlexander Sulfrian1-17/+1
2013-01-05added complete song structureAlexander Sulfrian1-6/+9
added LyricLines for lines of lyrics with some words added LyricWords for single words (notes) of lyrics added construction/deconstruction of lines and words form parsed data changed BPM list to list of pointer
2013-01-05added wrapper for easily getting istreams from files with proper cleanupAlexander Sulfrian1-6/+7
2013-01-05added song loading stubs with different strategies chosen by file extensionAlexander Sulfrian1-20/+12
2013-01-05converted URingBufferAlexander Sulfrian1-27/+16
2013-01-05converted UTime.pas to c++Alexander Sulfrian1-13/+34
2008-09-23indentation unified, no code change.k-m_schindler1-1/+1
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1406 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-09-23gpl header added and property svn:header set to "HeadURL Id"k-m_schindler1-0/+25
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1403 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-09-06Delphi-mode set for FPCtobigun1-0/+4
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1348 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-09-02Moved: The folder classes has been renamed to basemogguh1-0/+0
Updated: ultrastardx.dpr has been changed accordingly git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1339 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-08-27rename Classes part2k-m_schindler1-0/+0
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1308 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-08-27rename Classes part1k-m_schindler1-0/+0
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1307 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-08-27Reordering of the directories[1]: moving Game/Code to srck-m_schindler1-0/+0
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1302 b956fd51-792f-4845-bead-9b4dfca2ff2c
2008-06-08- set svn:eol-style to nativetobigun1-13/+13
- removed some svn:executable properties from non-executable files git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1144 b956fd51-792f-4845-bead-9b4dfca2ff2c
2007-11-01Mac OS X version compiles and links. I hope I didn't break too many files on ↵eddie-08151-0/+3
windows/linux. Added switches.inc to all files. Changed many IFDEFs. For Windows-only code please use MSWINDOWS instead of WIN32 now. WIN32 is also used by the Mac port. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@546 b956fd51-792f-4845-bead-9b4dfca2ff2c
2007-09-23New class for score managementwhiteshark01-0/+10
-Scores are raised when PopUp slides under the scorebg -1 to 6 Player support (even 5 Players(not supported by Core atm)) -Display 3 Players instead of 2 when 4 Players are set in the Options and Screens=2 Ratingbar is not drawn by class atm. Have to be done git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@430 b956fd51-792f-4845-bead-9b4dfca2ff2c