branchpropwindow.h
author convert-repo
Fri, 23 Jul 2010 16:43:49 +0000
changeset 849 988f1908a7c4
parent 787 c6bb4fdcc55f
permissions -rw-r--r--
update tags
     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 setItem (TreeItem *);
    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 	BranchItem *branchItem;
    52 	VymModel *model;
    53 
    54 	QColor penColor;
    55 	QColor brushColor;
    56 
    57 //	QAbstractItemModel *attributeModel;
    58 
    59 //	AttributeDelegate delegate;
    60 };
    61 
    62 #endif //