diff options
author | Dennis Syrovatsky <dennis@tightvnc.com> | 2005-11-23 09:15:12 +0000 |
---|---|---|
committer | Dennis Syrovatsky <dennis@tightvnc.com> | 2005-11-23 09:15:12 +0000 |
commit | be4956b7f5ae5dabc3dc85b8ce36e61fd020748d (patch) | |
tree | 4842467d9a13c4030b641b9d22b229c8838faabe /vncviewer/FTDialog.h | |
parent | 3f079e7eff79181a17ace419ebd405a76b3f005c (diff) | |
download | tigervnc-be4956b7f5ae5dabc3dc85b8ce36e61fd020748d.tar.gz tigervnc-be4956b7f5ae5dabc3dc85b8ce36e61fd020748d.zip |
Major changes in the FTDialog class.
Added routine for "file transfer" menu and
for control of the buttons state on the file transfer dialog.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@415 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer/FTDialog.h')
-rw-r--r-- | vncviewer/FTDialog.h | 35 |
1 files changed, 31 insertions, 4 deletions
diff --git a/vncviewer/FTDialog.h b/vncviewer/FTDialog.h index f9e5ba38..bfedf315 100644 --- a/vncviewer/FTDialog.h +++ b/vncviewer/FTDialog.h @@ -71,12 +71,22 @@ namespace rfb { void onLocalRButton(); void onRemoteRButton(); - void showFTMenu(int copyBtnState, int renameBtnState, - int deleteBtnState, int cancelBtnState); + void showFTMenu(bool copyBtnState, bool createFldBtnState, + bool renameBtnState, bool deleteBtnState, + bool cancelBtnState); + void onFTMenuCommand(int command); void onUpload(); void onDownload(); + void onLocalRename(); + void onRemoteRename(); + + void onLocalDelete(); + void onRemoteDelete(); + + void onFTCancel(); + void setIcon(int dest, int idIcon); bool initFTDialog(); @@ -84,8 +94,8 @@ namespace rfb { void onRemoteOneUpFolder(); int makeOneUpFolder(char *pPath); - void refreshState(); - void setButtonsState(int uploadBtnState, int downloadBtnState, int cancelBtnState); + void refreshBtnState(); + void setButtonsState(); bool m_bDlgShown; @@ -94,10 +104,27 @@ namespace rfb { FTProgress *m_pProgress; + int m_FTMenuSource; + char m_szLocalPath[FT_FILENAME_SIZE]; char m_szRemotePath[FT_FILENAME_SIZE]; char m_szLocalPathTmp[FT_FILENAME_SIZE]; char m_szRemotePathTmp[FT_FILENAME_SIZE]; + + typedef struct tagFTBUTTONSSTATE + { + bool uploadBtn; + bool downloadBtn; + bool createLocalFldBtn; + bool createRemoteFldBtn; + bool renameLocalBtn; + bool renameRemoteBtn; + bool deleteLocalBtn; + bool deleteRemoteBtn; + bool cancelBtn; + } FTBUTTONSSTATE; + + FTBUTTONSSTATE m_BtnState; }; } } |