/* * Copyright 2004 Perforce Software. All rights reserved. * * Developed by Data Shades Ltd. */ #ifndef INC_OLD_VERSION_DIALOG #define INC_OLD_VERSION_DIALOG #include <windows.h> #include "Dialog.h" #include "PerforceApi.h" /* * OldVersionDialog - This dialog is shown when user opens an out of date * version of a file. */ class OldVersionDialog : public Dialog { public: /* * Constructor * * ops - The plugin operations object. * have - The version of the file in the client workspace. * head - The latest version in the depot. */ OldVersionDialog( PluginOperations *ops, StrPtr *have, StrPtr *head ); /* * Get the version in the client workspace. */ StrPtr *HaveRevision(); /* * Get the latest version in the depot. */ StrPtr *HeadRevision(); /* * Set which button the user presses to exit the dialog. */ void SetExitCode( int code) ; /* * Get which button the user presses to exit the dialog. */ int ExitCode(); private: /* * Dialog windows procedure * * hWnd - Handle of dialog window. * uMsg - Windows message. * wParam - Message wParam. * lParam - Message lParam. */ static BOOL CALLBACK DialogWndProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ); StrPtr *have; StrPtr *head; int exitCode; }; #endif
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 10843 | Robert Cowham |
Initial version of P4OFC source code. See README.txt (and LICENSE.txt and doc\P4OFC-Design.docx) |