1
git-svn-id: svn://db.shs.com.ru/libs@1 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
33
pip/utils/system_daemon/file_manager.h
Normal file
33
pip/utils/system_daemon/file_manager.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#ifndef FILE_MANAGER_H
|
||||
#define FILE_MANAGER_H
|
||||
|
||||
#include "piconsole.h"
|
||||
#include "pidir.h"
|
||||
|
||||
extern PIConsole console;
|
||||
|
||||
class FileManager: public PIObject {
|
||||
PIOBJECT(FileManager)
|
||||
public:
|
||||
FileManager();
|
||||
|
||||
void enable() {enabled = true; updateDir(); updateConsole();}
|
||||
void disable() {enabled = false;}
|
||||
|
||||
private:
|
||||
EVENT_HANDLER1(void, keyEvent, char, key);
|
||||
EVENT(menuRequest);
|
||||
void updateConsole();
|
||||
void updateDir();
|
||||
void buildNames();
|
||||
|
||||
int offset, cur, height;
|
||||
bool enabled, del_commit;
|
||||
PIDir dir;
|
||||
PIVector<PIFile::FileInfo> files;
|
||||
PIMap<PIString, int> prev_pos, prev_off;
|
||||
PIStringList selected;
|
||||
};
|
||||
|
||||
|
||||
#endif // FILE_MANAGER_H
|
||||
Reference in New Issue
Block a user