00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: NCAskForExistingDirectory.h 00014 00015 Author: Gabriele Strattner <gs@suse.de> 00016 Maintainer: Michael Andres <ma@suse.de> 00017 00018 /-*/ 00019 #ifndef NCAskForExistingDirectory_h 00020 #define NCAskForExistingDirectory_h 00021 00022 #include <iosfwd> 00023 00024 #include <vector> 00025 #include <string> 00026 00027 #include "NCPopup.h" 00028 #include "NCLabel.h" 00029 #include "NCFileSelection.h" 00030 #include "NCPushButton.h" 00031 #include "NCComboBox.h" 00032 #include "NCCheckBox.h" 00033 00034 00036 // 00037 // CLASS NAME : NCAskForExistingDirectory 00038 // 00039 // DESCRIPTION : 00040 // 00041 class NCAskForExistingDirectory : public NCPopup { 00042 00043 NCAskForExistingDirectory & operator=( const NCAskForExistingDirectory & ); 00044 NCAskForExistingDirectory ( const NCAskForExistingDirectory & ); 00045 00046 private: 00047 00048 NCPushButton * okButton; 00049 NCPushButton * cancelButton; 00050 NCComboBox * dirName; 00051 NCDirectoryTable *dirList; // directory list 00052 NCCheckBox *detailed; 00053 00054 bool getCheckBoxValue( NCCheckBox * detailed ); 00055 00056 protected: 00057 00058 virtual bool postAgain(); 00059 00060 virtual NCursesEvent wHandleInput( wint_t ch ); 00061 00062 public: 00063 00064 NCAskForExistingDirectory( const wpos at, 00065 const YCPString & startDir, 00066 const YCPString & headline ); 00067 00068 virtual ~NCAskForExistingDirectory(); 00069 00073 virtual long nicesize(YUIDimension dim); 00074 00081 void createLayout( const YCPString & iniDir, 00082 const YCPString & headline ); 00083 00088 NCursesEvent & showDirPopup( ); 00089 00090 }; 00091 00093 00094 00095 #endif // NCAskForExistingDirectory_h