/* * Copyright 2004 Perforce Software. All rights reserved. * * Developed by Data Shades Ltd. */ #ifndef INC_MENU_STATE #define INC_MENU_STATE #include <windows.h> #include <tchar.h> #include "PerforceFileStat.h" /* * Class to work out the state of various menu options */ class MenuState { public: /* * Constructor. */ MenuState( BOOL online, PerforceFileStat *stat, bool exists ); bool AddEnabled(); bool CheckOutEnabled(); bool CheckInEnabled(); bool DocumentStatusEnabled(); bool DocumentHistoryEnabled(); bool LockUnlockEnabled(); bool UndoEnabled(); bool ResultsEnabled(); bool CheckedOutEnabled(); bool InfoEnabled(); bool OpenEnabled(); TCHAR *LockUnlockLabel(); TCHAR *UndoLabel(); TCHAR *EnableDisableLabel(); private: bool addOption; bool checkOutOption; bool checkInOption; bool documentStatusOption; bool documentHistoryOption; bool lockUnlockOption; bool undoOption; bool resultsOption; bool checkedOutOption; bool infoOption; bool openOption; TCHAR *lockUnlockString; TCHAR *undoString; TCHAR *enableDisableString; }; #endif
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 11893 | Robert Cowham |
Populate -o //guest/robert_cowham/perforce/P4OFC/main/... //guest/robert_cowham/perforce/P4OFC/icm/.... |
||
//guest/robert_cowham/perforce/P4OFC/main/libp4gt/MenuState.h | |||||
#1 | 10843 | Robert Cowham |
Initial version of P4OFC source code. See README.txt (and LICENSE.txt and doc\P4OFC-Design.docx) |