// // Copyright 2001 Perforce Software. All rights reserved. // // This file is part of Perforce - the FAST SCM System. // // p4wCmdPane: // Generates a result pane containing the result of a simple // command or a spec -i command. #ifndef p4wCmdPane_H #define p4wCmdPane_H #include "p4wPane.h" class p4wCmdPane : public p4wPane { public: p4wCmdPane( p4wView & ParentView, p4wRequest & Request, const char *title ); // // special constructor used to replace a field // in a spec -i (InputData) command p4wCmdPane( p4wView & ParentView, p4wRequest & Request, const char *title, const char *field, const char *val ); virtual ~p4wCmdPane(); virtual void Begin(); virtual void RenderInfo( char *data, char level ); virtual void RenderError( char *data, int escapeHTML ); virtual void End(); virtual void InputData( StrBuf * strbuf, Error * e ); // // Override HandleError() so that we can generate // a better error message for labelsync's empty string // error virtual void HandleError( Error *e ); // // CmdPane-specification functions. void AdditionalFunction(); void SkipEnd() { fSkipEnd = 1; }; protected: int fSeenBegin; int fFunctionCount; private: // // Call OutputDirectoryHeader to generate linkified path // for certain commands void doDirHeader(); // // Construct a title for this status page void doTitle( StrBuf &title ); // // Insure we only do End() processing once at the end int fSkipEnd; StrBuf fTitle; // // Special handling for replacing a field of a form int fReplaceField; StrBuf fField; StrBuf fVal; // // Remember last line output by RenderInfo() StrBuf fLastLine; // // Remember last filename that was added. StrBuf fAddedFilename; }; #endif // p4wCmdPane_H
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 12234 | Matt Attaway |
Rejigger P4Web project in preparation for official sunsetting The bin directory contains the last official builds of P4Web from the Perforce download site. P4Web is soon to be completely sunsetted; these builds are here for folks who don't want to build their own. To better handle the archived builds the source code has been moved into a separate src directory. |
||
//guest/perforce_software/p4web/Panes/p4wCmdPane.h | |||||
#1 | 8914 | Matt Attaway | Initial add of the P4Web source code |