Show CTypeWidget.h syntax highlighted
#ifndef __CTYPEWIDGET_H__
#define __CTYPEWIDGET_H__ 1
#include <osgIntrospectionToolKit/signalslib.hpp>
#include <osgDesigner/core/FlowLayout.h>
#include <QtGui/QWidget>
#include <QtGui/QToolBox>
#include <QtGui/QGridLayout>
#include <QtGui/QSplitter>
#include <QtGui/QFrame>
#include <QtGui/QVBoxLayout>
#include <QtGui/QPushButton>
#include <QtGui/QListView>
#include <QtGui/QTreeView>
#include <osgIntrospectionToolKit/CommonStdType.h>
namespace osgDesigner
{
class CTypeModel;
class CPropertyInfoModel;
class CTypeWidget: public QWidget
{
Q_OBJECT
public:
CTypeWidget();
virtual ~CTypeWidget();
public slots:
void initTypeInfoView(const QModelIndex& index);
protected:
bool eventFilter(QObject *obj, QEvent *event);
protected slots :
void reziseColumnRequest();
private:
void initLayoutButton(const osgIntrospectionToolKit::NameList& nl, QLayout* layout);
QPushButton* addTypeButton(const std::string& typeName);
void clearLayout(QLayout* layout);
void initDialog(std::string typeName);
QGridLayout* _gridLayout;
QSplitter* _splitter;
QListView* _typeListView;
QToolBox* _typeInfoToolBox;
QFrame* _inheritsFrame;
FlowLayout* _inheritsLayout;
QFrame* _inheritedByFrame;
FlowLayout* _inheritedByLayout;
QTreeView* _propertyView;
CTypeModel* _typeModel;
CPropertyInfoModel* _propertyInfoModel;
};
}
#endif // ** __CTYPEDIALOG_H__ ** //
See more files for this project here