// // QPerforce is a gui interface to the perforce revision control // system. It is based on the qt library, and should be easily portable // across any platform that has this toolkit available. // // Copyright (C) 2002 Jacob Gladish // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // #include "ViewMenu.h" #include "qperforceWindow.h" #include "todo.h" #include <qcheckbox.h> #include <qmainwindow.h> #include <qstatusbar.h> ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// ViewMenu::ViewMenu( QWidget* parent, const char* name ) : QPopupMenu( parent, name ) { setCheckable( true ); _showBranchSpecId = insertItem( "BranchSpecs", this, SLOT(slotBranchSpec()), Key_F8 ); _changeLists = new QPopupMenu(); CHECK_PTR( _changeLists ); _changeLists->insertItem( "Pending Changelists", this, SLOT(slotPendingChangelists()), Key_F6 ); _showSubmittedChangeListsId = _changeLists->insertItem( "Submitted Changelists", Key_F7 ); insertItem( "ChangeLists", _changeLists ); insertItem( "ClientSpecs", this, SLOT(slotClientSpecs()), Key_F10 ); insertItem( "Jobs", this, SLOT(slotJobs()), Key_F12 ); insertItem( "Labels", this, SLOT(slotLabels()), Key_F9 ); _usersId = insertItem( "Users" ); setAccel( Key_F11, _usersId ); insertSeparator(); insertItem( "Client View of Depot", this, SLOT(slotClientViewOfDepot()) ); insertItem( "Local View of Depot", this, SLOT(slotLocalViewOfDepot()) ); insertItem( "Local View of Client Tree", this, SLOT(slotLocalViewOfClientTree()) ); insertItem( "Entire Depot", this, SLOT(slotEntireDepot()) ); insertSeparator(); insertItem( "Filter Depot...", this, SLOT(slotFilterDepot()) ); insertItem( "Clear Filter", this, SLOT(slotClearFilter()) ); insertSeparator(); // _showToolBar = new QCheckBox( "Show Toolbar", this ); //CHECK_PTR( _showToolBar ); //_showToolBar->setChecked( true ); //QObject::connect( _showToolBar, SIGNAL(toggled(bool)), // this, SLOT(slotShowToolBar(bool)) ); // insertItem( _showToolBar ); // // _showStatusBar = new QCheckBox( "Show Status Bar", this ); // CHECK_PTR( _showStatusBar ); // _showStatusBar->setChecked( true ); // QObject::connect( _showStatusBar, SIGNAL(toggled(bool)), // this, SLOT(slotShowStatusBar(bool)) ); // insertItem( _showStatusBar ); _showToolBarId = insertItem( "Show Toolbar", this, SLOT(slotShowToolBar()) ); setItemChecked( _showToolBarId, true ); _showStatusBarId = insertItem( "Show Status Bar", this, SLOT(slotShowStatusBar()) ); setItemChecked( _showStatusBarId, true ); insertSeparator(); _bookMarks = new QPopupMenu(); CHECK_PTR( _bookMarks ); _bookMarks->insertItem( "Add Bookmark", this, SLOT(slotAddBoomark()) ); _bookMarks->insertItem( "Organize Bookmarks", this, SLOT(slotOrganizeBookmarks()) ); insertItem( "Bookmarks", _bookMarks, CTRL+Key_B ); insertItem( "View Warnings and Errors...", this, SLOT(slotViewWarningsAndErrors()) ); insertItem( "Refresh Active Pane", this, SLOT(slotRefreshActivePane()), CTRL+Key_F5 ); } ViewMenu::~ViewMenu() { delete _changeLists; _changeLists = NULL; delete _bookMarks; _bookMarks = NULL; } void ViewMenu::slotClientSpecs() { TODO(); } void ViewMenu::slotPendingChangelists() { TODO(); } void ViewMenu::slotJobs() { TODO(); } void ViewMenu::slotLabels() { TODO(); } void ViewMenu::slotClientViewOfDepot() { TODO(); } void ViewMenu::slotLocalViewOfDepot() { TODO(); } void ViewMenu::slotLocalViewOfClientTree() { TODO(); } void ViewMenu::slotEntireDepot() { TODO(); } void ViewMenu::slotFilterDepot() { TODO(); } void ViewMenu::slotClearFilter() { TODO(); } void ViewMenu::slotShowToolBar() { TODO(); } void ViewMenu::slotShowStatusBar() { QMainWindow* win = qperforceWindow::getInstance(); ASSERT( win != NULL ); QStatusBar* statusBar = win->statusBar(); ASSERT( statusBar != NULL ); bool b = isItemChecked( _showStatusBarId ); setItemChecked( _showStatusBarId, !b ); if (b) { statusBar->hide(); } else { statusBar->show(); } } void ViewMenu::slotAddBoomark() { TODO(); } void ViewMenu::slotOrganizeBookmarks() { TODO(); } void ViewMenu::slotViewWarningsAndErrors() { TODO(); } void ViewMenu::slotRefreshActivePane() { TODO(); }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#9 | 2217 | Jacob Gladish |
More work on the configuration options dialog box. Added the sub-class that will implement all the slot functionality (ConfigOptionsDialogImpl) |
||
#8 | 2216 | Jacob Gladish | Added the .ui/xml file for the Configuration Dialog box. | ||
#7 | 2145 | Jacob Gladish | Added PendingChanges listview | ||
#6 | 2141 | Jacob Gladish |
Begun adding toolbar buttons, and added connection info. Added some missing files from project. |
||
#5 | 2127 | Jacob Gladish | Added client's table. | ||
#4 | 2118 | Jacob Gladish | changed server interface to use perforce c++ api instead of p4 command. | ||
#3 | 2103 | Jacob Gladish | Added Job table | ||
#2 | 2100 | Jacob Gladish | Adding more menu's, tables, and a few icons. | ||
#1 | 2092 | Jacob Gladish | Importing initial code |