1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-26 02:08:28 +02:00

Converted public fields of Selector to private.

This commit is contained in:
Maarten ter Huurne 2010-07-26 05:47:46 +02:00
parent b78ffa704a
commit 0586595de5
2 changed files with 7 additions and 4 deletions

View File

@ -376,8 +376,8 @@ void LinkApp::selector(int startSelection, const string &selectorDir) {
Selector sel(gmenu2x, this, selectorDir);
int selection = sel.exec(startSelection);
if (selection!=-1) {
gmenu2x->writeTmp(selection,sel.dir);
launch(sel.file, sel.dir);
gmenu2x->writeTmp(selection, sel.getDir());
launch(sel.getFile(), sel.getDir());
}
}

View File

@ -38,18 +38,21 @@ class Selector : protected Dialog {
private:
int selRow;
LinkApp *link;
string file, dir;
unordered_map<string, string> aliases;
void loadAliases();
string getAlias(const string &key);
void prepare(FileLister *fl, vector<string> *screens, vector<string> *titles);
void freeScreenshots(vector<string> *screens);
public:
string file, dir;
Selector(GMenu2X *gmenu2x, LinkApp *link, const string &selectorDir="");
int exec(int startSelection=0);
const string &getFile() { return file; }
const string &getDir() { return dir; }
};
#endif /*SELECTOR_H_*/