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