summaryrefslogtreecommitdiffhomepage
path: root/tracker-wii/wii_module.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-wii/wii_module.cpp')
-rw-r--r--tracker-wii/wii_module.cpp33
1 files changed, 11 insertions, 22 deletions
diff --git a/tracker-wii/wii_module.cpp b/tracker-wii/wii_module.cpp
index c4884f22..40131f69 100644
--- a/tracker-wii/wii_module.cpp
+++ b/tracker-wii/wii_module.cpp
@@ -6,12 +6,11 @@
* copyright notice and this permission notice appear in all copies.
*/
#include "ftnoir_tracker_pt.h"
+#include "api/plugin-api.hpp"
-#include "wii_module.hpp"
#include "wii_camera.h"
#include "wii_frame.hpp"
#include "wii_point_extractor.h"
-#include "wii_module.hpp"
#include "ftnoir_tracker_pt_dialog.h"
#include "pt-api.hpp"
@@ -20,12 +19,7 @@
static const QString module_name = "tracker-wii-pt";
-#ifdef __clang__
-# pragma clang diagnostic push
-# pragma clang diagnostic ignored "-Wweak-vtables"
-#endif
-
-namespace pt_module {
+using namespace pt_module;
struct wii_pt_module_traits final : pt_runtime_traits
{
@@ -68,27 +62,22 @@ struct wii_dialog_pt : TrackerDialog_PT
wii_dialog_pt();
};
-} // ns pt_module
-
-#ifdef __clang__
-# pragma clang diagnostic pop
-#endif
-
-QString wii_metadata_pt::name()
+class wii_metadata_pt : public Metadata
{
- return tr("WiiPointTracker 1.1");
-}
+ QString name() { return _("WiiPointTracker 1.1"); }
+ QIcon icon() { return QIcon(":/Resources/wii.png"); }
+};
-QIcon wii_metadata_pt::icon()
-{
- return QIcon(":/Resources/wii.png");
-}
+// ns pt_module
using namespace pt_module;
+
+
wii_dialog_pt::wii_dialog_pt() : TrackerDialog_PT(module_name)
{
- ui.tabWidget->removeTab(0);
+ ui.camera_settings_groupbox->hide();
+ ui.groupBox_2->hide();
}
OPENTRACK_DECLARE_TRACKER(wii_tracker_pt, wii_dialog_pt, wii_metadata_pt)