forked from qt-creator/qt-creator
		
	More widgets in the Qt Designer plugin containing Qt Creator widgets.
This commit is contained in:
		@@ -38,6 +38,7 @@ namespace Utils {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
class QTCREATOR_UTILS_EXPORT StyledBar : public QWidget
 | 
					class QTCREATOR_UTILS_EXPORT StyledBar : public QWidget
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					    Q_OBJECT
 | 
				
			||||||
public:
 | 
					public:
 | 
				
			||||||
    StyledBar(QWidget *parent = 0);
 | 
					    StyledBar(QWidget *parent = 0);
 | 
				
			||||||
    void setSingleRow(bool singleRow);
 | 
					    void setSingleRow(bool singleRow);
 | 
				
			||||||
@@ -52,6 +53,7 @@ protected:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
class QTCREATOR_UTILS_EXPORT StyledSeparator : public QWidget
 | 
					class QTCREATOR_UTILS_EXPORT StyledSeparator : public QWidget
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					    Q_OBJECT
 | 
				
			||||||
public:
 | 
					public:
 | 
				
			||||||
    StyledSeparator(QWidget *parent = 0);
 | 
					    StyledSeparator(QWidget *parent = 0);
 | 
				
			||||||
protected:
 | 
					protected:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -190,6 +190,39 @@ DetailsButton_CW::DetailsButton_CW(QObject *parent) :
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					StyledBar_CW::StyledBar_CW(QObject *parent) :
 | 
				
			||||||
 | 
					    QObject(parent),
 | 
				
			||||||
 | 
					    CustomWidget<Utils::StyledBar>
 | 
				
			||||||
 | 
					    (QLatin1String("<utils/styledbar.h>"),
 | 
				
			||||||
 | 
					    false,
 | 
				
			||||||
 | 
					    QLatin1String(groupC),
 | 
				
			||||||
 | 
					    QIcon(),
 | 
				
			||||||
 | 
					    QLatin1String("Styled bar"))
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					StyledSeparator_CW::StyledSeparator_CW(QObject *parent) :
 | 
				
			||||||
 | 
					    QObject(parent),
 | 
				
			||||||
 | 
					    CustomWidget<Utils::StyledSeparator>
 | 
				
			||||||
 | 
					    (QLatin1String("<utils/styledbar.h>"),
 | 
				
			||||||
 | 
					    false,
 | 
				
			||||||
 | 
					    QLatin1String(groupC),
 | 
				
			||||||
 | 
					    QIcon(),
 | 
				
			||||||
 | 
					    QLatin1String("Styled separator"))
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Wizard_CW::Wizard_CW(QObject *parent) :
 | 
				
			||||||
 | 
					    QObject(parent),
 | 
				
			||||||
 | 
					    CustomWidget<Utils::Wizard>
 | 
				
			||||||
 | 
					    (QLatin1String("<utils/wizard.h>"),
 | 
				
			||||||
 | 
					    true,
 | 
				
			||||||
 | 
					    QLatin1String(groupC),
 | 
				
			||||||
 | 
					    QIcon(),
 | 
				
			||||||
 | 
					    QLatin1String("Wizard with progress indicator"))
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
DetailsWidget_CW::DetailsWidget_CW(QObject *parent) :
 | 
					DetailsWidget_CW::DetailsWidget_CW(QObject *parent) :
 | 
				
			||||||
    QObject(parent),
 | 
					    QObject(parent),
 | 
				
			||||||
    CustomWidget<Utils::DetailsWidget>
 | 
					    CustomWidget<Utils::DetailsWidget>
 | 
				
			||||||
@@ -312,6 +345,9 @@ WidgetCollection::WidgetCollection(QObject *parent) :
 | 
				
			|||||||
    m_plugins.push_back(new PathListEditor_CW(this));
 | 
					    m_plugins.push_back(new PathListEditor_CW(this));
 | 
				
			||||||
    m_plugins.push_back(new DetailsButton_CW(this));
 | 
					    m_plugins.push_back(new DetailsButton_CW(this));
 | 
				
			||||||
    m_plugins.push_back(new DetailsWidget_CW(this));
 | 
					    m_plugins.push_back(new DetailsWidget_CW(this));
 | 
				
			||||||
 | 
					    m_plugins.push_back(new StyledBar_CW(this));
 | 
				
			||||||
 | 
					    m_plugins.push_back(new StyledSeparator_CW(this));
 | 
				
			||||||
 | 
					    m_plugins.push_back(new Wizard_CW(this));
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
QList<QDesignerCustomWidgetInterface*> WidgetCollection::customWidgets() const
 | 
					QList<QDesignerCustomWidgetInterface*> WidgetCollection::customWidgets() const
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -45,6 +45,8 @@
 | 
				
			|||||||
#include <utils/pathlisteditor.h>
 | 
					#include <utils/pathlisteditor.h>
 | 
				
			||||||
#include <utils/detailsbutton.h>
 | 
					#include <utils/detailsbutton.h>
 | 
				
			||||||
#include <utils/detailswidget.h>
 | 
					#include <utils/detailswidget.h>
 | 
				
			||||||
 | 
					#include <utils/styledbar.h>
 | 
				
			||||||
 | 
					#include <utils/wizard.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <QtDesigner/QDesignerCustomWidgetCollectionInterface>
 | 
					#include <QtDesigner/QDesignerCustomWidgetCollectionInterface>
 | 
				
			||||||
#include <QtDesigner/QDesignerContainerExtension>
 | 
					#include <QtDesigner/QDesignerContainerExtension>
 | 
				
			||||||
@@ -191,6 +193,37 @@ public:
 | 
				
			|||||||
    explicit DetailsButton_CW(QObject *parent = 0);
 | 
					    explicit DetailsButton_CW(QObject *parent = 0);
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class StyledBar_CW :
 | 
				
			||||||
 | 
					    public QObject,
 | 
				
			||||||
 | 
					    public CustomWidget<Utils::StyledBar>
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    Q_OBJECT
 | 
				
			||||||
 | 
					    Q_INTERFACES(QDesignerCustomWidgetInterface)
 | 
				
			||||||
 | 
					public:
 | 
				
			||||||
 | 
					    explicit StyledBar_CW(QObject *parent = 0);
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class StyledSeparator_CW :
 | 
				
			||||||
 | 
					    public QObject,
 | 
				
			||||||
 | 
					    public CustomWidget<Utils::StyledSeparator>
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    Q_OBJECT
 | 
				
			||||||
 | 
					    Q_INTERFACES(QDesignerCustomWidgetInterface)
 | 
				
			||||||
 | 
					public:
 | 
				
			||||||
 | 
					    explicit StyledSeparator_CW(QObject *parent = 0);
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class Wizard_CW :
 | 
				
			||||||
 | 
					    public QObject,
 | 
				
			||||||
 | 
					    public CustomWidget<Utils::Wizard>
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    Q_OBJECT
 | 
				
			||||||
 | 
					    Q_INTERFACES(QDesignerCustomWidgetInterface)
 | 
				
			||||||
 | 
					public:
 | 
				
			||||||
 | 
					    explicit Wizard_CW(QObject *parent = 0);
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Details Widget: plugin + simple, hacky container extension that
 | 
					// Details Widget: plugin + simple, hacky container extension that
 | 
				
			||||||
// accepts only one page.
 | 
					// accepts only one page.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user