mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 23:10:37 +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);
|
Selector sel(gmenu2x, this, selectorDir);
|
||||||
int selection = sel.exec(startSelection);
|
int selection = sel.exec(startSelection);
|
||||||
if (selection!=-1) {
|
if (selection!=-1) {
|
||||||
gmenu2x->writeTmp(selection,sel.dir);
|
gmenu2x->writeTmp(selection, sel.getDir());
|
||||||
launch(sel.file, sel.dir);
|
launch(sel.getFile(), sel.getDir());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,18 +38,21 @@ class Selector : protected Dialog {
|
|||||||
private:
|
private:
|
||||||
int selRow;
|
int selRow;
|
||||||
LinkApp *link;
|
LinkApp *link;
|
||||||
|
string file, dir;
|
||||||
unordered_map<string, string> aliases;
|
unordered_map<string, string> aliases;
|
||||||
|
|
||||||
void loadAliases();
|
void loadAliases();
|
||||||
string getAlias(const string &key);
|
string getAlias(const string &key);
|
||||||
void prepare(FileLister *fl, vector<string> *screens, vector<string> *titles);
|
void prepare(FileLister *fl, vector<string> *screens, vector<string> *titles);
|
||||||
void freeScreenshots(vector<string> *screens);
|
void freeScreenshots(vector<string> *screens);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
string file, dir;
|
|
||||||
Selector(GMenu2X *gmenu2x, LinkApp *link, const string &selectorDir="");
|
Selector(GMenu2X *gmenu2x, LinkApp *link, const string &selectorDir="");
|
||||||
|
|
||||||
int exec(int startSelection=0);
|
int exec(int startSelection=0);
|
||||||
|
|
||||||
|
const string &getFile() { return file; }
|
||||||
|
const string &getDir() { return dir; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /*SELECTOR_H_*/
|
#endif /*SELECTOR_H_*/
|
||||||
|
Loading…
Reference in New Issue
Block a user