adjust gui.
This commit is contained in:
parent
b0d5ac6b71
commit
27f5ef5397
|
@ -3,11 +3,12 @@
|
|||
|
||||
#include "stdafx.h"
|
||||
#include "Trochilus.h"
|
||||
#include "FileMgrDlg.h"
|
||||
#include "IconLoader.h"
|
||||
#include "afxdialogex.h"
|
||||
#include "DownDlg.h"
|
||||
#include "json/json.h"
|
||||
#include "FileMgrDlg.h"
|
||||
#include "FilePanelDlg.h"
|
||||
|
||||
|
||||
// CFileMgrDlg ¶Ô»°¿ò
|
||||
|
@ -408,6 +409,10 @@ void CFileMgrDlg::OnBnClickedButtonUpload()
|
|||
strLocal += filename;
|
||||
|
||||
PutFileToClient(m_clientid,strLocal,strRemote);
|
||||
|
||||
((CFilePanelDlg*)m_panel)->m_TabCtrl.SetCurSel(1);
|
||||
((CFilePanelDlg*)m_panel)->m_FileMgr.ShowWindow(FALSE);
|
||||
((CFilePanelDlg*)m_panel)->m_TransInfo.ShowWindow(TRUE);
|
||||
}
|
||||
|
||||
|
||||
|
@ -447,8 +452,12 @@ void CFileMgrDlg::OnBnClickedButtonDown()
|
|||
|
||||
strRemote += filename;
|
||||
strLocal += filename;
|
||||
|
||||
|
||||
GetFileToServer(m_clientid,strRemote,strLocal);
|
||||
|
||||
((CFilePanelDlg*)m_panel)->m_TabCtrl.SetCurSel(1);
|
||||
((CFilePanelDlg*)m_panel)->m_FileMgr.ShowWindow(FALSE);
|
||||
((CFilePanelDlg*)m_panel)->m_TransInfo.ShowWindow(TRUE);
|
||||
}
|
||||
|
||||
|
||||
|
@ -473,6 +482,11 @@ void CFileMgrDlg::OnBnClickedButtonRun()
|
|||
strRemote += filename;
|
||||
|
||||
RunRemoteFile(m_clientid,strRemote);
|
||||
|
||||
CString notify;
|
||||
notify.Format(_T("Run %s !"),strRemote);
|
||||
|
||||
AfxMessageBox(notify);
|
||||
}
|
||||
|
||||
|
||||
|
@ -496,6 +510,11 @@ void CFileMgrDlg::OnBnClickedButtonDelete()
|
|||
strRemote += filename;
|
||||
|
||||
DeleteRemoteFile(m_clientid,strRemote);
|
||||
|
||||
CString notify;
|
||||
notify.Format(_T("Delete %s !"),strRemote);
|
||||
|
||||
AfxMessageBox(notify);
|
||||
}
|
||||
|
||||
BOOL CFileMgrDlg::IsEquPath( LPCTSTR filename,BOOL isRemote )
|
||||
|
|
|
@ -65,6 +65,8 @@ public:
|
|||
CImageList m_ImageList;
|
||||
|
||||
CResizer m_resizer;
|
||||
|
||||
LPVOID m_panel;
|
||||
private:
|
||||
//Ô¶³ÌĿ¼ÁбíË«»÷
|
||||
afx_msg void OnNMDblclkListRdic(NMHDR *pNMHDR, LRESULT *pResult);
|
||||
|
|
|
@ -48,6 +48,8 @@ void CFilePanelDlg::InitTab()
|
|||
CLIENT_INFO info;
|
||||
GetClientInfo(m_clientid,&info);
|
||||
|
||||
m_FileMgr.m_panel = this;
|
||||
|
||||
m_FileMgr.Create(IDD_DIALOG_FILE,&m_TabCtrl);
|
||||
m_FileMgr.MoveWindow(&rs);
|
||||
|
||||
|
|
|
@ -50,6 +50,8 @@ public:
|
|||
|
||||
private:
|
||||
|
||||
friend CFileMgrDlg;
|
||||
|
||||
CTabCtrl m_TabCtrl;
|
||||
|
||||
typedef std::map<tstring,tstring> ModuleCallBack;
|
||||
|
|
Loading…
Reference in New Issue