mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 17:51:34 +02:00
Converted public fields of Selector to private.
This commit is contained in:
parent
b78ffa704a
commit
0586595de5
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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_*/
|
||||
|
Loading…
Reference in New Issue
Block a user