]> Some of my projects - aniplayer.git/commitdiff
Fix typo Plaugin -> Plugin
authorAPTX <marek321@gmail.com>
Sun, 20 Feb 2022 23:50:11 +0000 (08:50 +0900)
committerAPTX <marek321@gmail.com>
Sun, 20 Feb 2022 23:50:11 +0000 (08:50 +0900)
core/annotationmodel.cpp
core/annotationmodel.h
core/player.h
featureplugins/feature_annotations/featureannotations.cpp
featureplugins/feature_annotations/featureannotations.h
featureplugins/feature_localmylist/featurelocalmylist.cpp
featureplugins/feature_localmylist/featurelocalmylist.h
pluginapi/aniplayer/featurepluginbase.h
pluginapi/aniplayer/playerfeatureplugininterface.h

index a1bf838e8f7addab9f9b80cfe2319c333a0599c9..dc848cb8eca045a2fcfc86fa67455d2c9ec95b7b 100644 (file)
@@ -3,7 +3,7 @@
 AnnotationModel::AnnotationModel(QObject *parent) : QAbstractListModel{parent} {}
 
 void AnnotationModel::setAnnotations(
-    const PlayerFeaturePlauginInterface::AnnotationList &data) {
+    const PlayerFeaturePluginInterface::AnnotationList &data) {
   beginResetModel();
   m_data = data;
   endResetModel();
@@ -32,7 +32,7 @@ QVariant AnnotationModel::data(const QModelIndex &index, int role) const {
   if (!index.isValid())
     return {};
 
-  const PlayerFeaturePlauginInterface::Annotation &annotation =
+  const PlayerFeaturePluginInterface::Annotation &annotation =
       m_data.at(index.row());
   switch (role) {
   case Qt::DisplayRole:
index 492acadce0dd8fd788804616c42ad6b05871d363..d3ced5105d43dae199ec7284bd4eb6edcb73436e 100644 (file)
@@ -19,14 +19,14 @@ public:
 
   explicit AnnotationModel(QObject *parent = nullptr);
 
-  void setAnnotations(const  PlayerFeaturePlauginInterface::AnnotationList &);
+  void setAnnotations(const  PlayerFeaturePluginInterface::AnnotationList &);
 
   QHash<int, QByteArray> roleNames() const override;
   int rowCount(const QModelIndex &parent = QModelIndex{}) const override;
   QVariant data(const QModelIndex &index, int role) const override;
 
 private:
-  PlayerFeaturePlauginInterface::AnnotationList m_data;
+  PlayerFeaturePluginInterface::AnnotationList m_data;
 };
 
 #endif // ANNOTATIONMODEL_H
index 0414360ebc1ba573d66749e8630f8b87550f97d9..b6d29185d5ef7afd6907daa437c00d1b1034cf0e 100644 (file)
@@ -17,7 +17,7 @@
 class Player : public QObject,
                public PlayerPluginInterface,
                public PlayerRendererInterface,
-               public PlayerFeaturePlauginInterface {
+               public PlayerFeaturePluginInterface {
   Q_OBJECT
   Q_PROPERTY(QUrl currentSource READ currentSource WRITE load NOTIFY
                  currentSourceChanged)
index 39cc0634cf5090e8543bcd17cafbb689ca292b91..487fad587651da889466e86d9bf54d9f74e07c52 100644 (file)
@@ -51,14 +51,14 @@ FeatureAnnoations::FeatureAnnoations(QObject *parent) : QObject{parent} {
 
 FeaturePluginInstance *
 FeatureAnnoations::createInstance(QObject *instance,
-                                  PlayerFeaturePlauginInterface *interface) {
+                                  PlayerFeaturePluginInterface *interface) {
   if (!valid)
     throw std::exception{"Network failed to initialize"};
   return new FeatureAnnoationsInstance(instance, interface);
 }
 
 FeatureAnnoationsInstance::FeatureAnnoationsInstance(
-    QObject *instance, PlayerFeaturePlauginInterface *player, QObject *)
+    QObject *instance, PlayerFeaturePluginInterface *player, QObject *)
     : FeaturePluginInstance{instance, player} {
   qCDebug(annotationsCategory) << "Registering with instance" << instance;
 
@@ -88,7 +88,7 @@ void FeatureAnnoationsInstance::onFrameChanged(const QImage &image) {
   qCDebug(annotationsVerboseCategory) << "Starting annotation detection...";
 
   auto future = QtConcurrent::run(
-      [](QImage image) -> PlayerFeaturePlauginInterface::AnnotationList {
+      [](QImage image) -> PlayerFeaturePluginInterface::AnnotationList {
         try {
           const int maxHeight{600};
           if (image.size().height() > maxHeight)
@@ -109,9 +109,9 @@ void FeatureAnnoationsInstance::onFrameChanged(const QImage &image) {
           // dlib::save_bmp(img, "testimage.bmp");
 
           auto dets = net(img);
-          PlayerFeaturePlauginInterface::AnnotationList al;
+          PlayerFeaturePluginInterface::AnnotationList al;
           for (auto &&d : dets)
-            al << PlayerFeaturePlauginInterface::Annotation{
+            al << PlayerFeaturePluginInterface::Annotation{
                 static_cast<double>(d.rect.left()) / image.size().width(),
                 static_cast<double>(d.rect.top()) / image.size().height(),
                 static_cast<double>(d.rect.right() - d.rect.left()) /
index 898ad91334645af71acd2ce550f675616e70ce64..cf7948fba9648bfd2d28ea5df724096191bff450 100644 (file)
@@ -24,13 +24,13 @@ public:
   FeatureAnnoations(QObject *parent = nullptr);
 
   FeaturePluginInstance *
-  createInstance(QObject *instance, PlayerFeaturePlauginInterface *) override;
+  createInstance(QObject *instance, PlayerFeaturePluginInterface *) override;
 };
 
 class FeatureAnnoationsInstance : public QObject, public FeaturePluginInstance {
   Q_OBJECT
 public:
-  FeatureAnnoationsInstance(QObject *instance, PlayerFeaturePlauginInterface *, QObject *parent = nullptr);
+  FeatureAnnoationsInstance(QObject *instance, PlayerFeaturePluginInterface *, QObject *parent = nullptr);
 
 private slots:
   void onFrameChanged(const QImage &);
@@ -43,7 +43,7 @@ private:
   double m_duration;
   QTimer m_fpsTimer;
   int m_fpsCounter = 0;
-  QFutureWatcher<PlayerFeaturePlauginInterface::AnnotationList> m_watcher;
+  QFutureWatcher<PlayerFeaturePluginInterface::AnnotationList> m_watcher;
 };
 
 #endif // FeatureAnnoations_H
index a66ba557661d80e47d5f9d1f879c377acbafe913..0234a26e40dac03182ac285173e54a784b8d8e69 100644 (file)
@@ -22,7 +22,7 @@ FeatureLocalMyList::FeatureLocalMyList(QObject *parent) : QObject{parent} {
 
 FeaturePluginInstance *
 FeatureLocalMyList::createInstance(QObject *instance,
-                                   PlayerFeaturePlauginInterface *interface) {
+                                   PlayerFeaturePluginInterface *interface) {
   return new FeatureLocalMyListInstance(instance, interface);
 }
 
@@ -91,7 +91,7 @@ double FeatureLocalMyListInstance::readDuration(QObject *obj) {
 }
 
 FeatureLocalMyListInstance::FeatureLocalMyListInstance(
-    QObject *instance, PlayerFeaturePlauginInterface *player, QObject *parent)
+    QObject *instance, PlayerFeaturePluginInterface *player, QObject *parent)
     : FeaturePluginInstance{instance, player} {
   Q_UNUSED(parent);
   qCDebug(lmlCategory) << "Registering with instance" << instance;
index 256b9d8765b7412e871ed1fd05e3ed090fbcb291..8ca22bad187e16f2b105656066840702f100e801 100644 (file)
@@ -21,13 +21,13 @@ public:
   FeatureLocalMyList(QObject *parent = nullptr);
 
   FeaturePluginInstance *
-  createInstance(QObject *instance, PlayerFeaturePlauginInterface *) override;
+  createInstance(QObject *instance, PlayerFeaturePluginInterface *) override;
 };
 
 class FeatureLocalMyListInstance : public QObject, public FeaturePluginInstance {
   Q_OBJECT
 public:
-  FeatureLocalMyListInstance(QObject *instance, PlayerFeaturePlauginInterface *, QObject *parent = nullptr);
+  FeatureLocalMyListInstance(QObject *instance, PlayerFeaturePluginInterface *, QObject *parent = nullptr);
 
 private slots:
   void sourceChanged(const QUrl &source);
index b20b3b3e9dcacffd2f70da74776c74a6938fa86c..bdc4a33da4462bbc675b04e51ccfd3e9959f0a67 100644 (file)
@@ -10,12 +10,12 @@ public:
   virtual ~FeaturePluginInstance() = default;
 
   FeaturePluginInstance(QObject *player,
-                        PlayerFeaturePlauginInterface *interface)
+                        PlayerFeaturePluginInterface *interface)
       : m_player{player}, m_playerInterface{interface} {}
 
 protected:
   QObject *m_player;
-  PlayerFeaturePlauginInterface *m_playerInterface;
+  PlayerFeaturePluginInterface *m_playerInterface;
 };
 
 class FeaturePluginBase {
@@ -23,7 +23,7 @@ public:
   virtual ~FeaturePluginBase() = default;
 
   virtual FeaturePluginInstance *
-  createInstance(QObject *instance, PlayerFeaturePlauginInterface *) = 0;
+  createInstance(QObject *instance, PlayerFeaturePluginInterface *) = 0;
 };
 
 #define ANIPLAYER_FEATURE_PLUGIN_INTERFACE_IID                                 \
index b738094bd4103f55f837d9c2a75036481ba3cb73..003fa5dcf734cbf562cfca02e6ccaee2d4c5ab73 100644 (file)
@@ -4,7 +4,7 @@
 #include <QString>
 #include <QList>
 
-class PlayerFeaturePlauginInterface {
+class PlayerFeaturePluginInterface {
 public:
   struct Annotation {
     double x;
@@ -17,7 +17,7 @@ public:
 
   using AnnotationList = QList<Annotation>;
 
-  virtual ~PlayerFeaturePlauginInterface() = default;
+  virtual ~PlayerFeaturePluginInterface() = default;
 
   virtual void featureShowStatusMessage(const QString &message) = 0;