|
From: | Sebastien Metrot <address@hidden> |
Subject: | [ngl-commits] fixed the popup menus! They are not a nuiWindow anymore. Need to update the doc a bit. You now create them at any scope and they automaticaly atach themselves to the root object (the given coordinates are in the repair of the given widget). |
Date: | Mon, 20 Oct 2003 20:31:32 -0400 |
Commit from meeloo | 2003-10-20 20:31 EDT |
fixed the popup menus! They are not a nuiWindow anymore. Need to update the doc a bit. You now create them at any scope and they automaticaly atach themselves to the root object (the given coordinates are in the repair of the given widget).
Module | File name | Revision | |||
---|---|---|---|---|---|
nui | ChangeLog | 1.151 | >>> | 1.152 | |
nui | examples/nuitest/nuiApp.cpp | 1.34 | >>> | 1.35 | |
nui | examples/nuitest/nuiGearWin.cpp | 1.29 | >>> | 1.30 | |
nui | include/nuiMenu.h | 1.13 | >>> | 1.14 | |
nui | include/nuiWindow.h | 1.29 | >>> | 1.30 | |
nui | src/core/nuiTopLevel.cpp | 1.1 | >>> | 1.2 | |
nui | src/widgets/nuiMenuItem.cpp | 1.24 | >>> | 1.25 | |
nui | src/windows/nuiMenu.cpp | 1.20 | >>> | 1.21 |
nui/ChangeLog 1.151 >>> 1.152 |
---|
Line 1 |
+ 2003/10/21 02:29 meeloo + - fixed the popup menus! They are not a nuiWindow anymore. Need to update the doc a bit. You now create them at any scope and they automaticaly atach themselves to the root object (the given coordinates are in the repair of the given widget). + |
2003/10/20 14:00 meeloo - fixed a stupid clipping pbm in the rendering of nuiWindow. |
nui/include/nuiMenu.h 1.13 >>> 1.14 |
---|
Line 20 |
#ifndef __nuiMenu_h__ #define __nuiMenu_h__ |
- #include "nuiWindow.h" |
+ #include "nuiContainer.h" |
#include "nuiEvent.h" class nuiMenuItem; class nuiScrollBar; /// This class implements a simple popup menu. Remember that popup menu can only contain nuiMenuItems (this will change when I find a better design and have some time :). |
- class nuiMenu : public nuiWindow |
+ class nuiMenu : public nuiContainer |
{ public: |
- nuiMenu(nuiWindowManager* pParent, const nuiRect& rRect); ///< Create a menu in the given MainWindow. The rectangle's size is ignored as the menu will query is items to decide its size. |
+ nuiMenu(nuiContainerPtr pParent, const nuiRect& rRect); ///< Create a menu in the given parent. The rectangle's size is ignored as the menu will query is items to decide its size. |
nuiMenu(nuiContainerPtr pParent, nuiXMLNode* pNode); ///< Create from an XML description. virtual ~nuiMenu(); |
nui/include/nuiWindow.h 1.29 >>> 1.30 |
---|
Line 91 |
virtual nglString GetTitle(); ///< Get the title of the window. // nui Events: |
- nuiMouseClicked ClickedMouse; - nuiMouseUnclicked UnclickedMouse; - nuiMouseMoved MovedMouse; |
nuiSimpleEventSource<nuiButtonPressed> CloseButtonPressed; nuiSimpleEventSource<nuiValueChanged> FlagsChanged; |
[Prev in Thread] | Current Thread | [Next in Thread] |