class FileRev; class QTreeRevText; // QTreeRevBall: a circle representing a revision. class QTreeRevBall : public QCanvasPolygonalItem { public: QTreeRevBall( QCanvas* can, FileRev* rev, int y, int vspace, bool trun ); virtual ~QTreeRevBall(); // These are implemented for QCanvas compatibility. virtual QPointArray areaPoints() const; virtual void drawShape( QPainter& p ); // RTTI for collision detection. int rtti() const { return RTTI_REV; }; // Pop up a dialog. void InfoDialog( QWidget* parent ); // Returns "filename#rev" StrBuf Name(); // Binary file? bool IsBinary(); QString Tip() { return QString( Name().Text() ); }; // Set color. void UpdateBrush(); QTreeRevText* revtext; private: FileRev* rev; };
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 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. |
||
#2 | 2405 | Sam Stafford | Add support for binary diff programs, as well as "-l" and "-r" for P4Diff and SQUID. | ||
#1 | 2377 | Sam Stafford | P4QTree. |