branchpropwindow.h
author insilmaril
Mon, 27 Apr 2009 12:07:15 +0000
changeset 756 a8a5c7288f57
parent 721 12958f987bcf
child 767 6d2b32f305f9
permissions -rw-r--r--
relinking branches and removing branches works
     1 #ifndef BRANCHPROPERTYWINDOW_H
     2 #define BRANCHPROPERTYWINDOW_H
     3 
     4 #include "ui_branchpropwindow.h"
     5 
     6 #include <QDialog>
     7 #include <QCloseEvent>
     8 #include <QtGui>
     9 
    10 
    11 #include "attributedelegate.h"
    12 #include "branchobj.h"
    13 #include "vymmodel.h"
    14 
    15 class QAbstractItemModel;
    16 
    17 class BranchPropertyWindow:public QDialog
    18 {
    19 	Q_OBJECT
    20 public:
    21 	BranchPropertyWindow (QWidget *parent=0);
    22 	~BranchPropertyWindow ();
    23 	void setBranch (BranchObj *);
    24 	void setModel (VymModel *);
    25 
    26 private slots:
    27 	void frameTypeChanged (int);
    28 	void framePenColorClicked ();
    29 	void frameBrushColorClicked ();
    30 	void framePaddingChanged(int);
    31 	void frameBorderWidthChanged(int);
    32 	void linkHideUnselectedChanged (int);
    33 	void incImgVerChanged (int);
    34 	void incImgHorChanged (int);
    35 	void addAttributeClicked();
    36 	void deleteAttributeClicked();
    37 
    38 signals:
    39 	void windowClosed();
    40 	
    41 protected:
    42 	void closeEvent( QCloseEvent* );
    43 
    44 private:
    45 	void connectSignals();
    46 	void disconnectSignals();
    47 	
    48 	Ui::BranchPropertyWindow ui;
    49 
    50 	BranchObj *branch;
    51 	VymModel *model;
    52 
    53 	QColor penColor;
    54 	QColor brushColor;
    55 
    56 	QAbstractItemModel *attributeModel;
    57 
    58 	AttributeDelegate delegate;
    59 };
    60 
    61 #endif //