#include "ChangeListMenu.h" #include <qbuttongroup.h> #include <qradiobutton.h> #define ADD_BUTTON_TO_GROUP( B, G, POPUP )\ G->insert(B);\ POPUP->insertItem(B); ChangeListMenu::ChangeListMenu( QWidget* parent, const char* name ) : QPopupMenu( parent, name ) { insertItem( "New...", this, SLOT(slotNew()) ); insertItem( "Edit Spec...", this, SLOT(slotEditSpec()) ); insertItem( "Describe...", this, SLOT(slotDescribe()) ); insertItem( "Describe Changelist...", this, SLOT(slotDescribeChangeList()) ); insertItem( "Delete", this, SLOT(slotDelete()) ); insertItem( "Submit...", this, SLOT(slotSubmit()) ); insertSeparator(); insertItem( "Add Job Fix...", this, SLOT(slotAddJobFix()) ); insertItem( "Describe Job Fix...", this, SLOT(slotDescribeJobFix()) ); insertItem( "Remove Job Fix", this, SLOT(slotRemoveJobFix()) ); insertItem( "Revert Unchanged Files", this, SLOT(slotRevertUnchangedFiles()) ); insertItem( "Sync to Changelist...", this, SLOT(slotSyncToChangeList()) ); // TODO: make sub-men insertItem( "Integrate", this, SLOT(slotIntegrate()) ); insertSeparator(); insertItem( "Sort Files in Pending Changelists by Extension", this, SLOT(slotSortFilesInPendingChangelistsByExtension()) ); insertItem( "Sort Changes by User", this, SLOT(slotSortChangesByUser()) ); insertSeparator(); //====================================================================== // filter radio buttons // _buttonGroup = new QButtonGroup(); _unfilteredSubmittedChangelists = new QRadioButton( "Unfiltered Submitted Changelists", _buttonGroup ); ADD_BUTTON_TO_GROUP( _unfilteredSubmittedChangelists, _buttonGroup, this ); _fscForSelectedFiles = new QRadioButton( "Filtered Submitted Changelists for Selected Files", _buttonGroup ); ADD_BUTTON_TO_GROUP( _fscForSelectedFiles, _buttonGroup, this ); _fscForSelectedFilesIncludingIntegrations = new QRadioButton( "Filtered Submitted Changelists for Selected Files, including Integrations", _buttonGroup ); ADD_BUTTON_TO_GROUP( _fscForSelectedFilesIncludingIntegrations, _buttonGroup, this ); _fscByClient = new QRadioButton( "Filtered Submitted Changelists by Client...", _buttonGroup ); ADD_BUTTON_TO_GROUP( _fscByClient, _buttonGroup, this ); _fscByUser = new QRadioButton( "Filtered Submitted Changelists by User...", _buttonGroup ); ADD_BUTTON_TO_GROUP( _fscByUser, _buttonGroup, this ); //====================================================================== insertSeparator(); insertItem( "View Pending Changelists", this, SLOT(slotViewPendingChangelists()) ); insertItem( "View Submitted Changelists", this, SLOT(slotViewPendingChangelists()) ); } ChangeListMenu::~ChangeListMenu() { }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#10 | 2190 | Jacob Gladish | Added more functionality to the DepotView tree | ||
#9 | 2152 | Jacob Gladish | Added a couple more images, and non-blocking server communication | ||
#8 | 2147 | Jacob Gladish | Added more functionality to the pending changes list, and added asynchronous access to the server. | ||
#7 | 2145 | Jacob Gladish | Added PendingChanges listview | ||
#6 | 2128 | Jacob Gladish | Renamed changelist to change | ||
#5 | 2118 | Jacob Gladish | changed server interface to use perforce c++ api instead of p4 command. | ||
#4 | 2100 | Jacob Gladish | Adding more menu's, tables, and a few icons. | ||
#3 | 2098 | Jacob Gladish |
changed the IUpdateable abstract class to be a template. The template parameter is the structure that backs the storage for the class. |
||
#2 | 2095 | Jacob Gladish | Added ability to view submitted changelists. | ||
#1 | 2094 | Jacob Gladish | Added the Changelist menu |