diff --git a/aegisub/build/aegisub_vs2008/aegisub_vs2008.vcproj b/aegisub/build/aegisub_vs2008/aegisub_vs2008.vcproj
index 3034ce9b1..25ce373f5 100644
--- a/aegisub/build/aegisub_vs2008/aegisub_vs2008.vcproj
+++ b/aegisub/build/aegisub_vs2008/aegisub_vs2008.vcproj
@@ -721,14 +721,6 @@
RelativePath="..\..\src\colorspace.h"
>
-
-
-
-
diff --git a/aegisub/build/msbuild/Aegisub/Aegisub.vcxproj b/aegisub/build/msbuild/Aegisub/Aegisub.vcxproj
index 9ddb4a5fb..b98efd28d 100644
--- a/aegisub/build/msbuild/Aegisub/Aegisub.vcxproj
+++ b/aegisub/build/msbuild/Aegisub/Aegisub.vcxproj
@@ -130,7 +130,6 @@
-
@@ -319,7 +318,6 @@
-
diff --git a/aegisub/build/msbuild/Aegisub/Aegisub.vcxproj.filters b/aegisub/build/msbuild/Aegisub/Aegisub.vcxproj.filters
index ac2f6900a..d05e5d40c 100644
--- a/aegisub/build/msbuild/Aegisub/Aegisub.vcxproj.filters
+++ b/aegisub/build/msbuild/Aegisub/Aegisub.vcxproj.filters
@@ -546,9 +546,6 @@
Features\Colour picker
-
- Main UI
-
Utilities
@@ -1064,9 +1061,6 @@
Features\Colour picker
-
- Main UI
-
Utilities
diff --git a/aegisub/src/Makefile b/aegisub/src/Makefile
index bd73bcae1..3f196f79c 100644
--- a/aegisub/src/Makefile
+++ b/aegisub/src/Makefile
@@ -178,7 +178,6 @@ SRC += \
dialog_translation.cpp \
dialog_version_check.cpp \
dialog_video_details.cpp \
- drop.cpp \
audio_provider_dummy.cpp \
export_clean_info.cpp \
export_fixstyle.cpp \
diff --git a/aegisub/src/drop.cpp b/aegisub/src/drop.cpp
deleted file mode 100644
index a7cebb7c4..000000000
--- a/aegisub/src/drop.cpp
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright (c) 2005, Rodrigo Braz Monteiro
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are met:
-//
-// * Redistributions of source code must retain the above copyright notice,
-// this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above copyright notice,
-// this list of conditions and the following disclaimer in the documentation
-// and/or other materials provided with the distribution.
-// * Neither the name of the Aegisub Group nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
-// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-// POSSIBILITY OF SUCH DAMAGE.
-//
-// Aegisub Project http://www.aegisub.org/
-//
-// $Id$
-
-/// @file drop.cpp
-/// @brief Drag-drop handling from other applications
-/// @ingroup main_ui
-///
-
-
-///////////
-// Headers
-#include "config.h"
-
-#ifndef AGI_PRE
-#include
-#endif
-
-#include "drop.h"
-#include "frame_main.h"
-
-
-/// @brief Constructor
-/// @param par Parent frame
-///
-AegisubFileDropTarget::AegisubFileDropTarget(FrameMain *par) {
- parent = par;
-}
-
-
-
-/// @brief Handle dropped files.
-/// @param x X drop co-ordinate.
-/// @param y Y drop co-ordinate
-/// @param filenames List of files dropped.
-/// @return Whether handling dropped files was sucessful
-///
-bool AegisubFileDropTarget::OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames) {
- return parent->LoadList(filenames);
-}
-
-
-
diff --git a/aegisub/src/drop.h b/aegisub/src/drop.h
deleted file mode 100644
index 4dae5ff0c..000000000
--- a/aegisub/src/drop.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) 2005, Rodrigo Braz Monteiro
-// All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are met:
-//
-// * Redistributions of source code must retain the above copyright notice,
-// this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above copyright notice,
-// this list of conditions and the following disclaimer in the documentation
-// and/or other materials provided with the distribution.
-// * Neither the name of the Aegisub Group nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
-// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-// POSSIBILITY OF SUCH DAMAGE.
-//
-// Aegisub Project http://www.aegisub.org/
-//
-// $Id$
-
-/// @file drop.h
-/// @see drop.cpp
-/// @ingroup main_ui
-///
-
-
-
-
-///////////
-// Headers
-#ifndef AGI_PRE
-#include
-#endif
-
-
-//////////////
-// Prototypes
-class FrameMain;
-
-
-
-/// @class AegisubFileDropTarget
-/// @brief Handle files DnD'd onto Aegisub
-///
-class AegisubFileDropTarget : public wxFileDropTarget {
-private:
-
- /// Parent frame
- FrameMain *parent;
-
-public:
- AegisubFileDropTarget(FrameMain *parent);
-
- bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
- //wxDragResult OnEnter(wxCoord x, wxCoord y, wxDragResult def);
-};
diff --git a/aegisub/src/frame_main.cpp b/aegisub/src/frame_main.cpp
index 16a68a40f..7a0c4bf55 100644
--- a/aegisub/src/frame_main.cpp
+++ b/aegisub/src/frame_main.cpp
@@ -39,6 +39,7 @@
#ifndef AGI_PRE
#include
+#include
#include
#include
#include
@@ -63,7 +64,6 @@
#include "command/command.h"
#include "dialog_search_replace.h"
#include "dialog_version_check.h"
-#include "drop.h"
#include "help_button.h"
#include "libresrc/libresrc.h"
#include "main.h"
@@ -94,6 +94,16 @@ enum {
static void autosave_timer_changed(wxTimer *timer, const agi::OptionValue &opt);
+/// Handle files drag and dropped onto Aegisub
+class AegisubFileDropTarget : public wxFileDropTarget {
+ FrameMain *parent;
+public:
+ AegisubFileDropTarget(FrameMain *parent) : parent(parent) { }
+ bool OnDropFiles(wxCoord, wxCoord, const wxArrayString& filenames) {
+ return parent->LoadList(filenames);
+ }
+};
+
FrameMain::FrameMain (wxArrayString args)
: wxFrame(0,-1,"",wxDefaultPosition,wxSize(920,700),wxDEFAULT_FRAME_STYLE | wxCLIP_CHILDREN)
, context(new agi::Context)