~kubuntu-members/kompare/4.11

« back to all changes in this revision

Viewing changes to komparepart/kompareconnectwidget.h

  • Committer: Otto Bruggeman
  • Date: 2002-03-26 23:09:21 UTC
  • Revision ID: git-v1:6463f3f86954bdfc86a95a04602a7b24db3249f9

Make some architectural changes:
- Moved the diffmodel stuff into a library
- Moved the komparenavtree into its own part
- Passing around pointers to diffmodels and differences now instead of offsets in a qptrlist
- Removed the differences menu because it sucked when there were many differences in a file

Still not ready but it is almost functional, only scrolling does not work atm, i'll fix that tonight if i can.

svn path=/trunk/kdesdk/kompare/; revision=145358

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
        Q_OBJECT
31
31
 
32
32
public:
33
 
        KompareConnectWidget( KompareModelList* models, KompareListView* left, KompareListView* right,
 
33
        KompareConnectWidget( KompareListView* left, KompareListView* right,
34
34
              GeneralSettings* settings, KompareView* parent, const char* name=0);
35
35
        ~KompareConnectWidget();
36
36
 
37
37
        QSize sizeHint() const;
38
38
 
39
39
public slots:
40
 
        void slotSetSelection( int model, int diff );
41
 
        
 
40
        void slotSetSelection( const DiffModel* model, const Difference* diff );
 
41
        void slotSetSelection( const Difference* diff );
 
42
 
 
43
signals:
 
44
        void selectionChanged(const Difference* diff);
 
45
 
42
46
protected:
43
47
        void paintEvent( QPaintEvent* e );
44
48
        QPointArray makeTopBezier( int tl, int tr );
46
50
        QPointArray makeConnectPoly( const QPointArray& topBezier, const QPointArray& bottomBezier );
47
51
 
48
52
private:
49
 
        KompareModelList*  m_models;
50
53
        GeneralSettings*   m_settings;
 
54
 
51
55
        KompareView*       m_diffView;
52
56
        KompareListView*   m_leftView;
53
57
        KompareListView*   m_rightView;
54
 
        int                m_selectedModel;
55
 
        int                m_selectedDiff;
56
58
 
 
59
        const DiffModel*   m_selectedModel;
 
60
        const Difference*  m_selectedDifference;
57
61
};
58
62
 
59
63
#endif