00001 /* 00002 * Copyright 2003, 2004 Martin Fuchs 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2.1 of the License, or (at your option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public 00015 * License along with this library; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00017 */ 00018 00019 00020 // 00021 // Explorer clone 00022 // 00023 // explorer.h 00024 // 00025 // Martin Fuchs, 23.07.2003 00026 // 00027 00028 00029 #define _LIGHT_STARTMENU 00030 #define _LAZY_ICONEXTRACT 00031 #define _SINGLE_ICONEXTRACT 00032 //#define _NO_WIN_FS 00033 00034 00035 #include "utility/shellclasses.h" 00036 00037 #include "shell/entries.h" 00038 00039 #ifndef _NO_WIN_FS 00040 #include "shell/winfs.h" 00041 #endif 00042 00043 #include "shell/shellfs.h" 00044 00045 #ifndef ROSSHELL 00046 #include "shell/unixfs.h" 00047 #endif 00048 00049 #include "utility/window.h" 00050 00051 00052 #define IDW_STATUSBAR 0x100 00053 #define IDW_TOOLBAR 0x101 00054 #define IDW_EXTRABAR 0x102 00055 #define IDW_DRIVEBAR 0x103 00056 #define IDW_ADDRESSBAR 0x104 00057 #define IDW_COMMANDBAR 0x105 00058 #define IDW_SIDEBAR 0x106 00059 #define IDW_FIRST_CHILD 0xC000 /*0x200*/ 00060 00061 00062 #define PM_GET_FILEWND_PTR (WM_APP+0x05) 00063 #define PM_GET_SHELLBROWSER_PTR (WM_APP+0x06) 00064 00065 #define PM_GET_CONTROLWINDOW (WM_APP+0x16) 00066 00067 #define PM_RESIZE_CHILDREN (WM_APP+0x17) 00068 #define PM_GET_WIDTH (WM_APP+0x18) 00069 00070 #define PM_REFRESH (WM_APP+0x1B) 00071 #define PM_REFRESH_CONFIG (WM_APP+0x1C) 00072 00073 00074 #define CLASSNAME_FRAME TEXT("CabinetWClass") // same class name for frame window as in MS Explorer 00075 00076 #define CLASSNAME_CHILDWND TEXT("WFS_Child") 00077 #define CLASSNAME_WINEFILETREE TEXT("WFS_Tree") 00078 00079 00080 #include "shell/pane.h" 00081 #include "shell/filechild.h" 00082 #include "shell/shellbrowser.h" 00083 00084 00085 #ifndef ROSSHELL 00086 00087 /// Explorer command line parser 00088 // for commands like "/e,/root,c:\" 00089 // or "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}" (launch of control panel) 00090 struct ExplorerCmd 00091 { 00092 ExplorerCmd() 00093 : _flags(0), 00094 _cmdShow(SW_SHOWNORMAL), 00095 _mdi(false), 00096 _valid_path(false) 00097 { 00098 } 00099 00100 ExplorerCmd(LPCTSTR url, bool mdi) 00101 : _path(url), 00102 _flags(0), 00103 _cmdShow(SW_SHOWNORMAL), 00104 _mdi(mdi), 00105 _valid_path(true) //@@ 00106 { 00107 } 00108 00109 bool ParseCmdLine(LPCTSTR lpCmdLine); 00110 bool EvaluateOption(LPCTSTR option); 00111 bool IsValidPath() const; 00112 00113 String _path; 00114 int _flags; // OPEN_WINDOW_MODE 00115 int _cmdShow; 00116 bool _mdi; 00117 bool _valid_path; 00118 }; 00119 00120 #include "shell/mainframe.h" 00121 00122 #endif
ROS Explorer Source Code Documentation
generated on 02.01.2013 by ![]() |