Diff of /src/hugin1/hugin/PluginItems.cpp [a4627a] .. [f96f56] Maximize Restore

  Switch to side-by-side view

--- a/src/hugin1/hugin/PluginItems.cpp
+++ b/src/hugin1/hugin/PluginItems.cpp
@@ -71,6 +71,7 @@
     m_filename=filename;
     m_description=wxT("");
     m_validAPI=true;
+    m_type=DefaultPlugin;
     ParseMetadata();
 };
 
@@ -162,6 +163,29 @@
             continue;
         };
     };
+    CheckCategory();
+};
+
+void PluginItem::CheckCategory()
+{
+    if(m_category.CmpNoCase(wxT("images"))==0)
+    {
+        m_type=ImagePlugin;
+    }
+    else
+    {
+        if(m_category.CmpNoCase(wxT("stacks"))==0)
+        {
+            m_type=StackPlugin;
+        }
+        else
+        {
+            if(m_category.CmpNoCase(wxT("control points"))==0)
+            {
+                m_type=ControlpointPlugin;
+            };
+        };
+    };
 };
 
 const bool PluginItem::IsAPIValid() const
@@ -189,3 +213,8 @@
     return m_description;
 };
 
+const PluginItem::PluginType PluginItem::GetPluginType() const
+{
+    return m_type;
+};
+