#include "cmdlib.h"
#include "scenelib.h"
#include "stream/stringstream.h"
+#include "signal/isignal.h"
#include "os/path.h"
#include "os/file.h"
#include "eclasslib.h"
Radiant_detachHomePathsObserver(g_VFSModuleObserver);
}
-
// Home Paths
void HomePaths_Realise()
void Copy()
{
- if(GlobalSelectionSystem().Mode() == SelectionSystem::ePrimitive)
+ if(SelectedFaces_empty())
{
Selection_Copy();
}
void Paste()
{
- if(GlobalSelectionSystem().Mode() == SelectionSystem::ePrimitive)
+ if(SelectedFaces_empty())
{
UndoableCommand undo("paste");
MainWindowActive g_MainWindowActive;
+SignalHandlerId XYWindowDestroyed_connect(const SignalHandler& handler)
+{
+ return g_pParentWnd->GetXYWnd()->onDestroyed.connectFirst(handler);
+}
+
+void XYWindowDestroyed_disconnect(SignalHandlerId id)
+{
+ g_pParentWnd->GetXYWnd()->onDestroyed.disconnect(id);
+}
+
+MouseEventHandlerId XYWindowMouseDown_connect(const MouseEventHandler& handler)
+{
+ return g_pParentWnd->GetXYWnd()->onMouseDown.connectFirst(handler);
+}
+
+void XYWindowMouseDown_disconnect(MouseEventHandlerId id)
+{
+ g_pParentWnd->GetXYWnd()->onMouseDown.disconnect(id);
+}
+
// =============================================================================
// MainFrame class