Hugin trunk 0.1
Loading...
Searching...
No Matches
PluginItems.h
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
10/*
11 * This is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public
13 * License as published by the Free Software Foundation; either
14 * version 2 of the License, or (at your option) any later version.
15 *
16 * This software is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public
22 * License along with this software. If not, see
23 * <http://www.gnu.org/licenses/>.
24 *
25 */
26
27#ifndef PLUGINITEMS_H
28#define PLUGINITEMS_H
29
30#include <wx/string.h>
31#include <wx/filename.h>
32#include <list>
33
36{
37public:
41 explicit PluginItem(wxFileName filename);
43 const bool IsAPIValid() const;
45 const wxString GetCategory() const;
47 const wxFileName GetFilename() const;
49 const wxString GetName() const;
51 const wxString GetDescription() const;
52private:
53 void ParseMetadata();
59};
60
61typedef std::list<PluginItem> PluginItems;
64
65#endif // PLUGINITEMS_H
options wxIntPtr item2
std::list< PluginItem > PluginItems
Definition PluginItems.h:61
bool comparePluginItem(PluginItem item1, PluginItem item2)
compares 2 plugin with category and name
class for generating plugin menu items
Definition PluginItems.h:36
const wxFileName GetFilename() const
returns filename
bool m_validAPI
Definition PluginItems.h:58
const bool IsAPIValid() const
returns true, if plugin can run on given system and version
void ParseMetadata()
const wxString GetCategory() const
return category name
wxString m_name
Definition PluginItems.h:55
const wxString GetDescription() const
return description
wxFileName m_filename
Definition PluginItems.h:56
wxString m_description
Definition PluginItems.h:57
wxString m_category
Definition PluginItems.h:54
const wxString GetName() const
return name from metadata
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.
Definition threshold.h:41