gui/pluginlist: drop custom menu implementation

(but use the menu-hint as plugin-description)


Origin commit data
------------------
Commit: cf43a6f2a6
Author: martii <m4rtii@gmx.de>
Date: 2014-03-02 (Sun, 02 Mar 2014)
This commit is contained in:
martii
2014-03-02 23:00:30 +01:00
committed by vanhofen
parent 8aa16fc376
commit e6743c853c
3 changed files with 58 additions and 351 deletions

View File

@@ -43,71 +43,28 @@
class CPluginList : public CMenuTarget
{
public:
enum result_
{
close = 0,
resume = 1
} result;
private:
CFrameBuffer *frameBuffer;
struct pluginitem
{
int number;
std::string name; // UTF-8 encoded
std::string desc; // UTF-8 encoded
};
unsigned int liststart;
unsigned int listmaxshow;
int key;
neutrino_locale_t name;
neutrino_locale_t title;
uint32_t pluginlisttype;
int fheight; // Fonthoehe Channellist-Inhalt
int theight; // Fonthoehe Channellist-Titel
int fheight1,fheight2;
int width;
int height;
int x;
int y;
void paintItem(int pos);
void paintItems();
void paint();
void paintHead();
int width;
protected:
unsigned int selected;
std::vector<pluginitem *> pluginlist;
virtual CPluginList::result_ pluginSelected();
int selected;
int number;
public:
CPluginList(const neutrino_locale_t Name, const uint32_t listtype);
virtual ~CPluginList();
void hide();
CPluginList(const neutrino_locale_t Title, const uint32_t listtype);
int exec(CMenuTarget* parent, const std::string & actionKey);
virtual int run ();
};
class CPluginChooser : public CPluginList
{
private:
char* selected_plugin;
protected:
CPluginList::result_ pluginSelected();
std::string *selectedFilePtr;
public:
CPluginChooser(const neutrino_locale_t Name, const uint32_t listtype, char* pluginname);
CPluginChooser(const neutrino_locale_t Name, const uint32_t listtype, std::string &selectedFile);
int run ();
};
#endif