// QTreeFileStripe: a rectangle representing a depot file. Contains a // string (FileText) with its name, and a circle (RevBall) for each rev. class QTreeFileStripe : public QCanvasRectangle { public: QTreeFileStripe( QCanvas*, FileHead*, int w, int y, char, bool trunc ); virtual ~QTreeFileStripe(); // Slide the FileText over to the given x-coordinate. void UpdateFText( int x ) { filetext->move( x, filetext->y() ); } ; // Update color of this stripe, including revs. void UpdateBrush(); void MoveY( double y ); QString Name() { return filetext->Name().Text(); }; char stripecolor; private: FileHead* filehead; QTreeFileText* filetext; QTreeRevBall** revballs; };
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 4422 | Sam Stafford |
Finished implementing alphabetical sort. Along the way, I gained new appreciation for the OpenGL canvas system I implemented for Revision Graph, for it is vastly superior to this QCanvas crud in many ways. Might go ahead and implement this in Revision Graph just to marvel at how many fewer lines of new code it takes. Turn on alphabetical sort by adding the "-n" option to the command line ("-n" for "name sort"). This feature is not accessible from the settings dialog, nor does it persist after a refresh, but it DOES stack with "-o outputfile", which as far as I know is all that anyone needs. |
||
#1 | 2377 | Sam Stafford | P4QTree. |