// // 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 // #ifndef __USER_MENU_H__ #define __USER_MENU_H__ #include "User.h" #include "WidgetID.h" #include <qlistview.h> #include <qpopupmenu.h> class UserTable; class UserMenu : public QPopupMenu { Q_OBJECT public: typedef void (UserMenu::*UserMenuMemeberFunction)(); UserMenu( QWidget* parent = 0, const char* name = 0 ); virtual ~UserMenu(); void setListView( UserTable* view ); signals: void showUsers( WidgetId id ); public slots: void slotViewUsers(); void _slotViewUsers(); void slotViewChangesBy(); void slotSetDefaultUser(); void slotSwitchToUser(); void slotSetPasswordFor(); void slotDelete(); void slotDescribe(); void slotEdit(); void slotNew(); private: UserTable* _myView; }; //======================================================================== // The Widget to display the users. // class UserTable : public QListView { Q_OBJECT public: UserTable( QWidget* parent = 0, const char* name = 0 ); void addUser( const Perforce::User* u ); public slots: void onRightClick( QListViewItem*, const QPoint&, int ); private: int describeId; int switchToId; int viewChangesById; QPopupMenu* rightClickMenu; }; #endif
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#7 | 3782 | Jacob Gladish | I have no clue... | ||
#6 | 2147 | Jacob Gladish | Added more functionality to the pending changes list, and added asynchronous access to the server. | ||
#5 | 2145 | Jacob Gladish | Added PendingChanges listview | ||
#4 | 2118 | Jacob Gladish | changed server interface to use perforce c++ api instead of p4 command. | ||
#3 | 2103 | Jacob Gladish | Added Job table | ||
#2 | 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. |
||
#1 | 2092 | Jacob Gladish | Importing initial code |