// // Copyright 2000 Perforce Software. All rights reserved. // // This file is part of Perforce - the FAST SCM System. // // p4wBranchView: // Generates the branch -o command for the branch pane #include <stdlib.h> #include <string.h> #include <p4wp4.h> #include "p4wView.h" #include "p4wBranchView.h" #include "p4wMenuPane.h" #include "p4wBranchPane.h" p4wBranchView::p4wBranchView( p4wRequest & Request ) : p4wView(Request) { // // Set the short and the long versions of the title fShortTitle.Set( "Branch Spec Detail" ); fFullTitle << "Branch " << fRequest.GetURL(); } p4wBranchView::~p4wBranchView() { } void p4wBranchView::RenderContent() { // // Generate a branch -o command and send it to the branch pane p4wBranchPane branchPane( *this, fRequest, 0 ); fRequest.p4Arg( "-o" ); if( fRequest.GetURL().Length() != 0 ) fRequest.p4Arg( fRequest.GetURL().Text() ); fRequest.p4( "branch", 0, 0, &branchPane ); fRequest.p4Wait(); } void p4wBranchView::RenderMenu() { // // Draw the menu bar p4wMenuPane menuPane( *this, fRequest, "branch" ); menuPane.Render( NULL ); }
# | 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/Views/p4wBranchView.cpp | |||||
#1 | 8914 | Matt Attaway | Initial add of the P4Web source code |