Dennis Syrovatsky | 32ed332 | 2005-12-15 09:37:38 +0000 | [diff] [blame] | 1 | /* Copyright (C) 2005 TightVNC Team. All Rights Reserved. |
Dennis Syrovatsky | f72f9fd | 2006-04-17 08:56:48 +0000 | [diff] [blame] | 2 | * |
| 3 | * Developed by Dennis Syrovatsky |
Dennis Syrovatsky | 32ed332 | 2005-12-15 09:37:38 +0000 | [diff] [blame] | 4 | * |
| 5 | * This is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This software is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this software; if not, write to the Free Software |
| 17 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
| 18 | * USA. |
| 19 | * |
| 20 | * TightVNC distribution homepage on the Web: http://www.tightvnc.com/ |
| 21 | * |
| 22 | */ |
| 23 | |
| 24 | // -=- FTBrowseDlg.h |
| 25 | |
| 26 | #ifndef __RFB_WIN32_FTBROWSEDLG_H__ |
| 27 | #define __RFB_WIN32_FTBROWSEDLG_H__ |
| 28 | |
| 29 | #include <windows.h> |
| 30 | #include <commctrl.h> |
| 31 | |
| 32 | #include <rfb/FileInfo.h> |
| 33 | #include <vncviewer/FTDialog.h> |
| 34 | #include <vncviewer/resource.h> |
| 35 | |
| 36 | namespace rfb { |
| 37 | namespace win32 { |
Dennis Syrovatsky | b0b7247 | 2005-12-15 10:02:16 +0000 | [diff] [blame] | 38 | class FTDialog; |
| 39 | |
Dennis Syrovatsky | 32ed332 | 2005-12-15 09:37:38 +0000 | [diff] [blame] | 40 | class FTBrowseDlg |
| 41 | { |
| 42 | public: |
| 43 | FTBrowseDlg(FTDialog *pFTDlg); |
| 44 | ~FTBrowseDlg(); |
Dennis Syrovatsky | 2eee1c7 | 2005-12-15 09:43:34 +0000 | [diff] [blame] | 45 | |
| 46 | static BOOL CALLBACK FTBrowseDlgProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); |
| 47 | |
Dennis Syrovatsky | 04e05c3 | 2005-12-15 09:51:03 +0000 | [diff] [blame] | 48 | bool create(); |
| 49 | void destroy(); |
| 50 | |
Dennis Syrovatsky | b0b7247 | 2005-12-15 10:02:16 +0000 | [diff] [blame] | 51 | void addItems(FileInfo *pFI); |
Dennis Syrovatsky | 1a3a553 | 2005-12-15 14:20:03 +0000 | [diff] [blame] | 52 | char *getPath(); |
Dennis Syrovatsky | b0b7247 | 2005-12-15 10:02:16 +0000 | [diff] [blame] | 53 | |
Dennis Syrovatsky | f72f9fd | 2006-04-17 08:56:48 +0000 | [diff] [blame] | 54 | void deleteChildItems(); |
| 55 | |
Dennis Syrovatsky | 04e05c3 | 2005-12-15 09:51:03 +0000 | [diff] [blame] | 56 | private: |
| 57 | HWND m_hwndDlg; |
Dennis Syrovatsky | 1a3a553 | 2005-12-15 14:20:03 +0000 | [diff] [blame] | 58 | HWND m_hwndTree; |
Dennis Syrovatsky | 04e05c3 | 2005-12-15 09:51:03 +0000 | [diff] [blame] | 59 | FTDialog *m_pFTDlg; |
Dennis Syrovatsky | 1a3a553 | 2005-12-15 14:20:03 +0000 | [diff] [blame] | 60 | HTREEITEM m_hParentItem; |
| 61 | |
| 62 | char m_szPath[FT_FILENAME_SIZE]; |
| 63 | |
| 64 | char *pathInvert(char *pPath); |
| 65 | char *getTVPath(HTREEITEM hTItem); |
Dennis Syrovatsky | 32ed332 | 2005-12-15 09:37:38 +0000 | [diff] [blame] | 66 | }; |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | #endif // __RFB_WIN32_FTBROWSEDLG_H__ |