CMakeSetupGUIImplementation.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef CMakeSetupGUIImplementation_h
  2. #define CMakeSetupGUIImplementation_h
  3. #include "CMakeSetupGUI.h"
  4. #include "FLTKPropertyList.h"
  5. /**
  6. *
  7. * This class implements the virtual methods
  8. * declared in the GUI interface
  9. *
  10. */
  11. class CMakeSetupGUIImplementation : public CMakeSetupGUI
  12. {
  13. public:
  14. CMakeSetupGUIImplementation();
  15. virtual ~CMakeSetupGUIImplementation();
  16. virtual void Close( void );
  17. virtual void Show( void );
  18. virtual void UpdateData( bool option );
  19. virtual void BuildProjectFiles( void );
  20. virtual void BrowseForBinaryPath( void );
  21. virtual void BrowseForSourcePath( void );
  22. virtual bool SetBinaryPath( const char * path );
  23. virtual bool SetSourcePath( const char * path );
  24. virtual void SaveCacheFromGUI( void );
  25. virtual void LoadCacheFromDiskToGUI( void );
  26. virtual void FillCacheGUIFromCacheManager( void );
  27. virtual void FillCacheManagerFromCacheGUI( void );
  28. virtual void SetPathToExecutable( const char * path );
  29. private:
  30. virtual bool VerifyBinaryPath( const std::string & path ) const;
  31. virtual bool VerifySourcePath( const std::string & path ) const;
  32. virtual std::string ExpandPathAndMakeItAbsolute( const std::string & inputPath ) const;
  33. private:
  34. fltk::PropertyList m_CacheEntriesList;
  35. std::string m_WhereBuild;
  36. std::string m_WhereSource;
  37. std::string m_PathToExecutable;
  38. bool m_BuildPathChanged;
  39. };
  40. #endif