diff options
Diffstat (limited to 'tracker-wii')
-rw-r--r-- | tracker-wii/export.hpp | 11 | ||||
-rw-r--r-- | tracker-wii/wii_module.cpp | 17 | ||||
-rw-r--r-- | tracker-wii/wii_module.hpp | 14 |
3 files changed, 35 insertions, 7 deletions
diff --git a/tracker-wii/export.hpp b/tracker-wii/export.hpp new file mode 100644 index 00000000..e186b1aa --- /dev/null +++ b/tracker-wii/export.hpp @@ -0,0 +1,11 @@ +// generates export.hpp for each module from compat/linkage.hpp + +#pragma once + +#include "compat/linkage-macros.hpp" + +#ifdef BUILD_TRACKER_WII +# define OTR_WII_EXPORT OTR_GENERIC_EXPORT +#else +# define OTR_WII_EXPORT OTR_GENERIC_IMPORT +#endif diff --git a/tracker-wii/wii_module.cpp b/tracker-wii/wii_module.cpp index 5ef75f57..9f2a4b04 100644 --- a/tracker-wii/wii_module.cpp +++ b/tracker-wii/wii_module.cpp @@ -6,11 +6,12 @@ * 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" @@ -62,18 +63,20 @@ struct wii_dialog_pt : TrackerDialog_PT wii_dialog_pt(); }; -class wii_metadata_pt : public Metadata +QString wii_metadata_pt::name() { - QString name() { return _("WiiPointTracker 1.1"); } - QIcon icon() { return QIcon(":/Resources/wii.png"); } -}; + return tr("WiiPointTracker 1.1"); +} + +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); diff --git a/tracker-wii/wii_module.hpp b/tracker-wii/wii_module.hpp new file mode 100644 index 00000000..34a8561d --- /dev/null +++ b/tracker-wii/wii_module.hpp @@ -0,0 +1,14 @@ +#pragma once + +#include "api/plugin-api.hpp" + +#include <QIcon> +#include <QtGlobal> + +class Q_DECL_EXPORT wii_metadata_pt : public Metadata +{ + Q_OBJECT + + QString name(); + QIcon icon(); +}; |