ede/ede-preferred-applications/AppChoice.h

28 lines
627 B
C
Raw Normal View History

2011-10-21 19:20:48 +04:00
#ifndef __APPCHOICE_H__
#define __APPCHOICE_H__
#include <FL/Fl_Choice.H>
#include <edelib/String.h>
#include "PredefApps.h"
EDELIB_NS_USING(String)
/* choices with name/value pair */
class AppChoice : public Fl_Choice {
private:
KnownApp *known_apps;
/* previous selected val */
int pvalue;
/* user selected program; for now allow only one */
String user_val;
public:
AppChoice(int X, int Y, int W, int H, const char *l = 0);
void add_programs(KnownApp *lst);
void add_if_user_program(const char *cmd);
void select_by_cmd(const char *cmd);
const char *selected(void);
void on_select(void);
};
#endif