aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/container.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-01-20fix includesAlexander Sulfrian1-0/+2
2013-01-18menu: add get_component_at to get componentAlexander Sulfrian1-0/+21
This is the basis for mouse focus handling.
2013-01-18menu/container: add window_coords_changeAlexander Sulfrian1-2/+16
The children container of a container have to be notified if the window coordinates of the parent changed. The children have to recalculate their own window coordinates.
2013-01-18menu: fix calculate window coordinatesAlexander Sulfrian1-3/+4
2013-01-13menu/container: remove assertAlexander Sulfrian1-1/+0
2013-01-13menu/modelview_matrix_cache: add helper classAlexander Sulfrian1-6/+3
Use the new ModelviewMatrixCache to cache the current state of the opengl MODELVIEW_MATRIX.
2013-01-13remove legacy keywords from file headerAlexander Sulfrian1-2/+0
2013-01-13menu: generalized frame_background to backgroundAlexander Sulfrian1-0/+2
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/contianer: element position should be relative to the container positionAlexander Sulfrian1-0/+6
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: calculate window coordinatesAlexander Sulfrian1-0/+36
the container have to keep the current window coordinates of its left, bottom corner, therefor they have to be recalculated on every size/position change (need virtual functions in DrawableControl)
2013-01-13menu/container: clipping requires window coordinatesAlexander Sulfrian1-2/+7
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-0/+5
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-0/+2
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/container: initialize frameAlexander Sulfrian1-1/+1
2013-01-05menu: frame should not be added to container item listAlexander Sulfrian1-0/+5
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: keep frame in containerAlexander Sulfrian1-0/+16
before the current frame was stored in application, now every container could keep a frame and paint it before all other content
2013-01-05menu/container: added logAlexander Sulfrian1-0/+3
2013-01-05menu: Container could contains and draw DrawableControlsAlexander Sulfrian1-15/+14
DrawableControls register/unregister itself during construction/destruction at the Container (supplied as owner) and get automatically drawn
2013-01-05changed from SDL rendering to OpenGLAlexander Sulfrian1-3/+3
draw, repaint methods do not have the SDL_Surface* parameter anymore
2013-01-05added SDL_Surface* display to all repaint/draw methodsAlexander Sulfrian1-3/+3
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-12/+18
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-05redraw on property changeAlexander Sulfrian1-0/+1
2013-01-05added drawable abstract base classAlexander Sulfrian1-8/+11
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