PIFile: applyFileInfo
PIPeer: fixed pisd work progress ... git-svn-id: svn://db.shs.com.ru/pip@20 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include "file_manager.h"
|
||||
#include "shared.h"
|
||||
|
||||
|
||||
extern PIScreen screen;
|
||||
|
||||
FileManager::TileDir::TileDir(): TileList() {
|
||||
label_path = 0;
|
||||
@@ -132,8 +132,8 @@ void FileManager::TileDir::resizeEvent(int w, int h) {
|
||||
|
||||
FileManager::FileManager() {
|
||||
setName("FileManager");
|
||||
enabled = del_commit = false;
|
||||
//CONNECTU(&console, keyPressed, this, keyEvent)
|
||||
del_commit = false;
|
||||
CONNECTU(&screen, keyPressed, this, keyEvent)
|
||||
//dir.setDir("/home/peri4/Documents");
|
||||
TileSimple * tl;
|
||||
|
||||
@@ -183,6 +183,13 @@ PIScreenTile * FileManager::tile() const {
|
||||
|
||||
|
||||
void FileManager::keyEvent(PIKbdListener::KeyEvent key) {
|
||||
if (!tile_root->visible) return;
|
||||
switch (key.key) {
|
||||
case PIKbdListener::Esc:
|
||||
menuRequest();
|
||||
break;
|
||||
default: break;
|
||||
}
|
||||
/*if (!enabled) return;
|
||||
if (key.key == 'D') {
|
||||
if (cur >= files.size_s() || cur < 0) return;
|
||||
|
||||
Reference in New Issue
Block a user