#define INCLUDED_XYWINDOW_H
#include "math/matrix.h"
+#include "signal/signal.h"
#include "gtkutil/cursor.h"
#include "gtkutil/window.h"
#include "view.h"
#include "map.h"
+#include "qerplugin.h"
+
class Shader;
class SelectionSystemWindowObserver;
namespace scene
void OnClipMode(bool enabled);
bool ClipMode();
-enum VIEWTYPE
-{
- YZ = 0,
- XZ = 1,
- XY = 2
-};
-
inline const char* ViewType_getTitle(VIEWTYPE viewtype)
{
if(viewtype == XY)
int m_ptCursorX, m_ptCursorY;
unsigned int m_buttonstate;
- void ButtonState_onMouseDown(unsigned int buttons)
- {
- m_buttonstate |= buttons;
- }
- void ButtonState_onMouseUp(unsigned int buttons)
- {
- m_buttonstate &= ~buttons;
- }
- unsigned int getButtonState() const
- {
- return m_buttonstate;
- }
int m_nNewBrushPressx;
int m_nNewBrushPressy;
bool m_entityCreate;
public:
+ void ButtonState_onMouseDown(unsigned int buttons)
+ {
+ m_buttonstate |= buttons;
+ }
+ void ButtonState_onMouseUp(unsigned int buttons)
+ {
+ m_buttonstate &= ~buttons;
+ }
+ unsigned int getButtonState() const
+ {
+ return m_buttonstate;
+ }
void EntityCreate_MouseDown(int x, int y);
void EntityCreate_MouseMove(int x, int y);
void EntityCreate_MouseUp(int x, int y);
{
return m_nHeight;
}
+
+ Signal3<const WindowVector&, ButtonIdentifier, ModifierFlags> onMouseDown;
+ void mouseDown(const WindowVector& position, ButtonIdentifier button, ModifierFlags modifiers);
+ typedef Member3<XYWnd, const WindowVector&, ButtonIdentifier, ModifierFlags, void, &XYWnd::mouseDown> MouseDownCaller;
};
inline void XYWnd_Update(XYWnd& xywnd)