![]() |
Main Page
Class Hierarchy
Alphabetical List
Compound List
File List
Compound Members
![]() |
00001 /******************************************************************************** 00002 * FXNetworkDialogEx.h * 00003 * Copyright (C) 2001 by Dustin Graves. All Rights Reserved. * 00004 ********************************************************************************* 00005 * This library is free software; you can redistribute it and/or * 00006 * modify it under the terms of the GNU Lesser General Public * 00007 * License as published by the Free Software Foundation; either * 00008 * version 2.1 of the License, or (at your option) any later version. * 00009 * * 00010 * This library is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00013 * Lesser General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU Lesser General Public * 00016 * License along with this library; if not, write to the Free Software * 00017 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * 00018 ********************************************************************************/ 00019 #ifdef WIN32 00020 #ifndef FXNETWORKDIALOGEX_H 00021 #define FXNETWORKDIALOGEX_H 00022 00023 #ifndef FXDIALOGBOX_H 00024 #include <fox/FXDialogBox.h> 00025 using namespace FX; 00026 #endif 00027 namespace FXEX { 00028 class FXNetworkSelectorEx; 00029 00030 /** 00031 * Browse network shares, using a dialog 00032 */ 00033 class FXAPI FXNetworkDialogEx : public FXDialogBox { 00034 FXDECLARE(FXNetworkDialogEx) 00035 00036 protected: 00037 FXNetworkSelectorEx *netbox; // Network selection widget 00038 00039 protected: 00040 FXNetworkDialogEx(){} 00041 00042 private: 00043 FXNetworkDialogEx(const FXNetworkDialogEx&); 00044 FXNetworkDialogEx &operator=(const FXNetworkDialogEx&); 00045 00046 public: 00047 /// ctor 00048 FXNetworkDialogEx(FXWindow* owner,const FXString& name,FXuint opts=0,FXint x=0,FXint y=0,FXint w=300,FXint h=300); 00049 00050 /// When called, will relist net neighborhood. A wait cursor is optional. 00051 FXbool refreshNetworkList(FXbool waitCursor=FALSE); 00052 00053 /// When called, option to relist net neighborhood. A wait cursor is optional. 00054 void showNetworkShares(FXbool show,FXbool refresh=FALSE,FXbool waitCursor=FALSE); 00055 FXbool showNetworkShares() const; 00056 00057 /// manipulate the current selection 00058 void setSelection(const FXString& name); 00059 FXString getSelection() const; 00060 00061 // get the network names 00062 FXString getNetworkName(const FXString& name) const; 00063 FXString getSelectionNetworkName() const; 00064 00065 /// manipulate the style for the net box 00066 void setNetBoxStyle(FXuint style); 00067 FXuint getNetBoxStyle() const; 00068 00069 /// save to stream 00070 virtual void save(FXStream& store) const; 00071 00072 /// load from stream 00073 virtual void load(FXStream& store); 00074 00075 /// Specialized shows for loading net data 00076 void show(FXbool loadnet=FALSE); 00077 void show(FXuint placement,FXbool loadnet=FALSE); 00078 FXuint execute(FXuint placement=PLACEMENT_CURSOR,FXbool loadnet=FALSE); 00079 00080 /// dtor 00081 virtual ~FXNetworkDialogEx(); 00082 }; 00083 00084 } // namespace FXEX 00085 #endif // FXNETWORKDIALOGEX_H 00086 #endif