// // Copyright 2002 Perforce Software. All rights reserved. // // This file is part of Perforce - the FAST SCM System. // // p4wDescribeDefaultView: // Describe default client by invoking p4 opened -C <clientname> -c default #include <stdlib.h> #include <string.h> #include <p4wp4.h> #include "p4wView.h" #include "p4wMenuPane.h" #include "p4wDescribeDefaultView.h" p4wDescribeDefaultView::p4wDescribeDefaultView( p4wRequest & Request ) : p4wView( Request ) { // // Set the short and the long versions of the title fShortTitle.Set( "Default Changelist" ); fFullTitle << "Default Changelist Detail"; } p4wDescribeDefaultView::~p4wDescribeDefaultView() { } void p4wDescribeDefaultView::RenderContent() { // // Send the describe results to the describe pane. const StrPtr *arg = fRequest.GetDynArg( "arg" ); if (!arg) return; p4wDescribeDefaultPane describePane( *this, fRequest ); char *cli = strchr(arg->Text(), '@'); if (cli) { *cli++ = '\0'; describePane.SetUser(arg->Text()); } else { cli = arg->Text(); describePane.SetUser(fRequest.GetUser().Text()); } const char *describePaneArgs[] = { "-C", cli, "-c", "default" }; fRequest.p4( "opened", 4, describePaneArgs, &describePane ); // // Wait for the pane to draw. fRequest.p4Wait(); } void p4wDescribeDefaultView::RenderMenu() { // // Draw the menu bar p4wMenuPane menuPane( *this, fRequest, "describe" ); 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/p4wDescribeDefaultView.cpp | |||||
#1 | 8914 | Matt Attaway | Initial add of the P4Web source code |