PIScreen windows optimization, expanded pisd copy dialog
git-svn-id: svn://db.shs.com.ru/pip@90 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -72,7 +72,8 @@ private:
|
||||
public:
|
||||
Remote(const PIString & n = PIString());
|
||||
~Remote();
|
||||
void sendFiles(const PIString & dir, const PIStringList & fl);
|
||||
void sendFiles(const PIString & dir, const PIStringList & fl) {startAction(Daemon::CopyFiles, dir, fl);}
|
||||
void removeFiles(const PIStringList & fl) {startAction(Daemon::RemoveFiles, PIString(), fl);}
|
||||
EVENT_HANDLER1(void, ftSendRequest, PIByteArray &, data) {PIByteArray h; h << int(FileTransfer); data.insert(0, h); sendRequest(name(), data);}
|
||||
EVENT_HANDLER1(void, ftReceived, bool, ok) {receiveFinished(name(), ok);}
|
||||
EVENT_HANDLER1(void, ftSended, bool, ok) {sendFinished(name(), ok);}
|
||||
@@ -80,12 +81,16 @@ private:
|
||||
EVENT2(sendRequest, const PIString & , name, const PIByteArray &, data)
|
||||
EVENT2(receiveFinished, const PIString & , name, bool, ok)
|
||||
EVENT2(sendFinished, const PIString & , name, bool, ok)
|
||||
EVENT2(removeFinished, const PIString & , name, const PIString & , dir)
|
||||
EVENT_HANDLER1(void, received, const PIByteArray & , data) {ft.received(data);}
|
||||
|
||||
|
||||
void startAction(PacketType a, const PIString & dir, const PIStringList & fl);
|
||||
void run();
|
||||
|
||||
PIDir dir_my, dir_remote;
|
||||
PIFileTransfer ft;
|
||||
PIStringList _fl;
|
||||
void run();
|
||||
PacketType action;
|
||||
};
|
||||
|
||||
class TileFileProgress: public PIScreenTile {
|
||||
@@ -94,10 +99,11 @@ private:
|
||||
TileFileProgress();
|
||||
void show(PIFileTransfer * f);
|
||||
void close(bool ok = true);
|
||||
TileSimple * label_file, * label_speed;
|
||||
TileSimple * label_file, * label_speed, * label_cnt;
|
||||
TileProgress * prog_file, * prog_all;
|
||||
TileButtons * buttons;
|
||||
PIFileTransfer * ft;
|
||||
PITimeMeasurer tm, tme;
|
||||
void resizeEvent(int w, int h);
|
||||
void sizeHint(int & w, int & h) const;
|
||||
void drawEvent(PIScreenDrawer * d);
|
||||
@@ -113,6 +119,7 @@ private:
|
||||
EVENT_HANDLER3(void, fmActionRequest, bool, remote_tile, FileManager::Action, type, PIVariant, data);
|
||||
EVENT_HANDLER2(void, timerEvent, void * , _d, int, delim);
|
||||
EVENT_HANDLER2(void, filesReceived, const PIString & , name, bool, ok);
|
||||
EVENT_HANDLER2(void, filesRemoved, const PIString & , name, const PIString & , dir);
|
||||
EVENT_HANDLER2(void, closeFileDialog, const PIString & , name, bool, ok);
|
||||
EVENT(menuRequest);
|
||||
void hideAll();
|
||||
@@ -125,6 +132,7 @@ private:
|
||||
void makeOtherHostInfo();
|
||||
|
||||
void requestChDir(const PIString & d);
|
||||
void sendDirToRemote(Remote * r);
|
||||
|
||||
mutable PIStringList available_daemons;
|
||||
PITimer timer;
|
||||
|
||||
Reference in New Issue
Block a user