summaryrefslogtreecommitdiff
path: root/menu_dirselect.h
diff options
context:
space:
mode:
Diffstat (limited to 'menu_dirselect.h')
-rw-r--r--menu_dirselect.h25
1 files changed, 17 insertions, 8 deletions
diff --git a/menu_dirselect.h b/menu_dirselect.h
index c1d9aa3..902059b 100644
--- a/menu_dirselect.h
+++ b/menu_dirselect.h
@@ -32,13 +32,21 @@ using std::string;
using std::set;
-class cDirExt : public cListObject {
+class cDirExt : public cListObject
+{
private:
char name[MaxFileName];
public:
- cDirExt(void){ name[0]=0; }
- bool Parse(const char *s) {strcpy(name,s); return true;}
- char* Name() {return name;}
+ cDirExt(void) {
+ name[0] = 0;
+ }
+ bool Parse(const char *s) {
+ strcpy(name, s);
+ return true;
+ }
+ char* Name() {
+ return name;
+ }
};
class cDirExts : public cConfig<cDirExt> {};
@@ -49,13 +57,14 @@ extern cConfDDirExts ConfDDirExts;
// --- cMenuDirSelect ---------------------------------------------------------
-class cMenuDirSelect : public cOsdMenu {
+class cMenuDirSelect : public cOsdMenu
+{
private:
int CurLevel;
int MaxLevel;
char* Directory;
char* yellow;
- public:
+public:
static set<string> directorySet;
@@ -68,7 +77,7 @@ private:
int Level(const char* szDir);
void ReplaceDirVars();
- static void CreateDirSet(bool extraDirs=true);
- };
+ static void CreateDirSet(bool extraDirs = true);
+};
#endif