branchpropwindow.h
author insilmaril
Tue Jul 07 09:34:24 2009 +0000 (2009-07-07)
changeset 779 1fb50e79661c
parent 721 12958f987bcf
child 785 5987f9f15bac
permissions -rw-r--r--
Hiding of links works again
     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 //