// SquidMainWindow.h: interface for the SquidMainWindow class. // ////////////////////////////////////////////////////////////////////// #ifndef SQUIDMAINWINDOW_H #include <qmainwindow.h> #include <qscrollview.h> #include <qsplitter.h> #include <qtoolbutton.h> #include <qwmatrix.h> #include "SquidPortrait.h" #include "SquidStaticPane.h" #include "SquidDynamicPane.h" #include "SquidDiffBlocker.h" #endif class SquidMainWindow : public QMainWindow { Q_OBJECT public: SquidMainWindow( QImage* file1, QImage* file2, QString n1, QString n2 ); virtual ~SquidMainWindow(); void resizeEvent( QResizeEvent* e ); void InitToolBar(); void SetMaxSize(); void SetBGColor( QRgb col ); QRgb BGColor() { return f1->scroll->viewport()->backgroundColor().rgb(); }; int BlendSize() { return di->blendsize; }; int DiffTol() { return dtolnc; }; int MinBlock() { return minblocksize; }; void SetBlendSize( int area ); void SetDiffTol( int rms ); void SetMinBlock( int min ); void LoadSettings(); public slots: void dummy() { }; void HScroll( int pct ); void VScroll( int pct ); void ToggleDiff( bool ); void ToggleF1( bool ); void ToggleF2( bool ); void ToggleMask( bool mask ) { di->maskdiffs = mask; di->Redraw(); }; void ZoomIn(); void ZoomOut(); void ToggleBlocks( bool blocks ); void Prefs(); void SaveSettings(); void About(); private: SquidStaticPane *f1, *f2; SquidDynamicPane *di; SquidDiffBlocker *dblocks; QToolBar* toolbar; QToolButton *f1b, *f2b, *dib, *mask; QScrollBar *hscroll, *vscroll; QSplitter* sp; float zoom; int minblocksize; int dtolnc; };
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 2401 | Sam Stafford |
Rename SID to SQUID - avoids conflicts with another program. Also lets me use cool squid icon. |
||
//guest/sam_stafford/sid/src/SidMainWindow.h | |||||
#8 | 2052 | Sam Stafford | An About Box. | ||
#7 | 2050 | Sam Stafford | Settings. | ||
#6 | 2038 | Sam Stafford |
Fix crashing resulting from invalid image files, and set a good caption on the main window. |
||
#5 | 2036 | Sam Stafford |
Uber-L33T "highlight" feature. Has to be seen to be believed. |
||
#4 | 2034 | Sam Stafford |
Working "subtraction" diff and zooming. Definitely need to make some decent toolbutton icons. |
||
#3 | 2033 | Sam Stafford | Add a toolbar that allows you to turn panes on and off at will. | ||
#2 | 2030 | Sam Stafford |
Scrolling. It's not perfect, but I'm happy enough with it to move on with my life. |
||
#1 | 2016 | Sam Stafford |
Barely-functional Sid (about three hours worth of code). "Sid" = "Sam's Image Differ", for those who were curious. |