1
0
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:
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); 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());
} }
} }

View File

@ -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_*/