// QTreeCanvas: a QCanvas which fills itself with items representing // a FileLogCache. class QTreeCanvas : public QCanvas { public: QTreeCanvas ( QWidget* parent, char* file, ClientApi* client, Error* error, bool jobs, bool trunc, QString cs, QString ds, QString end, bool all, char* cfile ); virtual ~QTreeCanvas(); // Slide the FileTexts over to xcoord. void UpdateFTexts( int xcoord ); // Did something go wrong during construction? bool IsEmpty() { return ( !cache->main || !cache->changes || !cache->changes->Size() ); } ; // Size of the changebar and jobbar. QSize ChangeSize(); // Set colors according to current color scheme. void UpdateColors(); // Show or hide the gridline. void GridLine( int x ); FileLogCache* cache; private: void InitNormalArrows(); void InitTruncArrows(); void NameSort(); ClientApi* client; Error* error; char* cachefile; QTreeChangeBar* changebar; QTreeJobBar* jobbar; QTreeFileStripe** filestripes; QTreeArrow** arrows; QCanvasLine* gridline; };
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#5 | 4450 | Sam Stafford |
Slight refactoring of "name sort" code... this was to lead to an implementation of "directory graphing" but it didn't pan out. Will need to kludge more than previously thought to make that happen. |
||
#4 | 4419 | Sam Stafford |
Framework for command line alphabetical sort option. No functional change (still need to implement the sort algorithm). |
||
#3 | 2947 | Sam Stafford |
Give P4QTree the ability to read filelog data from a supplied text file. The syntax is: P4QTree [g-opts] [-F cachefile] depotfile The data in the supplied file will be read before the server is queried for a given filelog. If a required filelog is not found in the file, the server will be queried instead. The most handy application for this that I can see is quickly graphing integ scenarios based on customer-supplied (or even manually-generated) filelogs, when for whatever reason it's not feasible to access the server directly. |
||
#2 | 2399 | Sam Stafford | The "show all integs" feature in all its glory. | ||
#1 | 2377 | Sam Stafford | P4QTree. |