using pragma once for the examples
This commit is contained in:
parent
923affe749
commit
3956f123f5
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef BUTTON_BAR_H
|
#pragma once
|
||||||
#define BUTTON_BAR_H
|
|
||||||
|
|
||||||
#include <QskLinearBox.h>
|
#include <QskLinearBox.h>
|
||||||
|
|
||||||
|
|
@ -19,5 +18,3 @@ class ButtonBar : public QskLinearBox
|
||||||
protected:
|
protected:
|
||||||
QSizeF layoutSizeHint( Qt::SizeHint, const QSizeF& ) const override;
|
QSizeF layoutSizeHint( Qt::SizeHint, const QSizeF& ) const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef MAINWINDOW_H
|
#pragma once
|
||||||
#define MAINWINDOW_H
|
|
||||||
|
|
||||||
#include <QskWindow.h>
|
#include <QskWindow.h>
|
||||||
|
|
||||||
|
|
@ -15,5 +14,3 @@ class MainWindow : public QskWindow
|
||||||
public:
|
public:
|
||||||
MainWindow();
|
MainWindow();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef SKIN_FACTORY_H
|
#pragma once
|
||||||
#define SKIN_FACTORY_H
|
|
||||||
|
|
||||||
#include <QskSkinFactory.h>
|
#include <QskSkinFactory.h>
|
||||||
|
|
||||||
|
|
@ -25,5 +24,3 @@ class SkinFactory : public QskSkinFactory
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
void rotateSkin();
|
void rotateSkin();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef SPEEDOMETER_H
|
#pragma once
|
||||||
#define SPEEDOMETER_H
|
|
||||||
|
|
||||||
#include <QskBoundedValueInput.h>
|
#include <QskBoundedValueInput.h>
|
||||||
|
|
||||||
|
|
@ -23,5 +22,3 @@ class Speedometer : public QskBoundedValueInput
|
||||||
private:
|
private:
|
||||||
QVector< QString > m_tickLabels;
|
QVector< QString > m_tickLabels;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef SPEEDOMETERDISPLAY_H
|
#pragma once
|
||||||
#define SPEEDOMETERDISPLAY_H
|
|
||||||
|
|
||||||
#include <QskLinearBox.h>
|
#include <QskLinearBox.h>
|
||||||
|
|
||||||
|
|
@ -13,5 +12,3 @@ class SpeedometerDisplay : public QskLinearBox
|
||||||
public:
|
public:
|
||||||
SpeedometerDisplay( QQuickItem* parent = nullptr );
|
SpeedometerDisplay( QQuickItem* parent = nullptr );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef SPEEDOMETERSKINLET_H
|
#pragma once
|
||||||
#define SPEEDOMETERSKINLET_H
|
|
||||||
|
|
||||||
#include <QskSkinlet.h>
|
#include <QskSkinlet.h>
|
||||||
|
|
||||||
|
|
@ -39,5 +38,3 @@ class SpeedometerSkinlet : public QskSkinlet
|
||||||
QSGNode* updateLabelsNode( const Speedometer*, QSGNode* ) const;
|
QSGNode* updateLabelsNode( const Speedometer*, QSGNode* ) const;
|
||||||
QSGNode* updateNeedleNode( const Speedometer*, QSGNode* ) const;
|
QSGNode* updateNeedleNode( const Speedometer*, QSGNode* ) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef BOX_H
|
#pragma once
|
||||||
#define BOX_H
|
|
||||||
|
|
||||||
#include <QskRgbPalette.h>
|
#include <QskRgbPalette.h>
|
||||||
#include <QskBox.h>
|
#include <QskBox.h>
|
||||||
|
|
@ -59,5 +58,3 @@ class Box : public QskBox
|
||||||
void setGradient( const QskGradient& gradient );
|
void setGradient( const QskGradient& gradient );
|
||||||
void setGradient( const QskGradient::Orientation, QskRgbPalette::Theme );
|
void setGradient( const QskGradient::Orientation, QskRgbPalette::Theme );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef THEME_H
|
#pragma once
|
||||||
#define THEME_H 1
|
|
||||||
|
|
||||||
#include <QColor>
|
#include <QColor>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
|
@ -34,5 +33,3 @@ class Theme : public QObject
|
||||||
|
|
||||||
QColor m_accent;
|
QColor m_accent;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the QSkinny License, Version 1.0
|
* This file may be used under the terms of the QSkinny License, Version 1.0
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef FRAME_H
|
#pragma once
|
||||||
#define FRAME_H
|
|
||||||
|
|
||||||
#include "QskControl.h"
|
#include "QskControl.h"
|
||||||
|
|
||||||
|
|
@ -70,5 +69,3 @@ class Frame : public QskControl
|
||||||
qreal m_frameWidth;
|
qreal m_frameWidth;
|
||||||
qreal m_radius;
|
qreal m_radius;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef PAGE_H
|
#pragma once
|
||||||
#define PAGE_H
|
|
||||||
|
|
||||||
#include <QskLinearBox.h>
|
#include <QskLinearBox.h>
|
||||||
|
|
||||||
|
|
@ -14,5 +13,3 @@ class Page : public QskLinearBox
|
||||||
Page( Qt::Orientation, QQuickItem* parent = nullptr );
|
Page( Qt::Orientation, QQuickItem* parent = nullptr );
|
||||||
void setGradient( const QskGradient& );
|
void setGradient( const QskGradient& );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef LABEL_PAGE_H
|
#pragma once
|
||||||
#define LABEL_PAGE_H
|
|
||||||
|
|
||||||
#include "Page.h"
|
#include "Page.h"
|
||||||
|
|
||||||
|
|
@ -13,5 +12,3 @@ class LabelPage : public Page
|
||||||
public:
|
public:
|
||||||
LabelPage( QQuickItem* = nullptr );
|
LabelPage( QQuickItem* = nullptr );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef PROGRESS_BAR_PAGE_H
|
#pragma once
|
||||||
#define PROGRESS_BAR_PAGE_H
|
|
||||||
|
|
||||||
#include "Page.h"
|
#include "Page.h"
|
||||||
|
|
||||||
|
|
@ -16,5 +15,3 @@ class ProgressBarPage : public Page
|
||||||
private:
|
private:
|
||||||
void populate();
|
void populate();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef CUSTOM_SLIDER_H
|
#pragma once
|
||||||
#define CUSTOM_SLIDER_H
|
|
||||||
|
|
||||||
#include <QskSlider.h>
|
#include <QskSlider.h>
|
||||||
|
|
||||||
|
|
@ -19,5 +18,3 @@ class CustomSlider : public QskSlider
|
||||||
|
|
||||||
QRectF focusIndicatorRect() const override;
|
QRectF focusIndicatorRect() const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef CUSTOM_SLIDER_SKINLET_H
|
#pragma once
|
||||||
#define CUSTOM_SLIDER_SKINLET_H
|
|
||||||
|
|
||||||
#include <QskSliderSkinlet.h>
|
#include <QskSliderSkinlet.h>
|
||||||
|
|
||||||
|
|
@ -44,5 +43,3 @@ class CustomSliderSkinlet : public QskSliderSkinlet
|
||||||
QRectF decorationRect( const QskSlider*, const QRectF& ) const;
|
QRectF decorationRect( const QskSlider*, const QRectF& ) const;
|
||||||
QRectF handleRect( const QskSlider*, const QRectF& ) const;
|
QRectF handleRect( const QskSlider*, const QRectF& ) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef OTHER_SLIDER_H
|
#pragma once
|
||||||
#define OTHER_SLIDER_H
|
|
||||||
|
|
||||||
#include <QskSlider.h>
|
#include <QskSlider.h>
|
||||||
|
|
||||||
|
|
@ -12,8 +11,5 @@ class OtherSlider : public QskSlider
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// Slider overriding many hints from the skin.
|
// Slider overriding many hints from the skin.
|
||||||
|
|
||||||
OtherSlider( QQuickItem* = nullptr );
|
OtherSlider( QQuickItem* = nullptr );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef SLIDER_PAGE_H
|
#pragma once
|
||||||
#define SLIDER_PAGE_H
|
|
||||||
|
|
||||||
#include "Page.h"
|
#include "Page.h"
|
||||||
|
|
||||||
|
|
@ -16,5 +15,3 @@ class SliderPage : public Page
|
||||||
private:
|
private:
|
||||||
void populate();
|
void populate();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef SWITCH_BUTTON_PAGE_H
|
#pragma once
|
||||||
#define SWITCH_BUTTON_PAGE_H
|
|
||||||
|
|
||||||
#include "Page.h"
|
#include "Page.h"
|
||||||
|
|
||||||
|
|
@ -16,5 +15,3 @@ class SwitchButtonPage : public Page
|
||||||
private:
|
private:
|
||||||
void populate();
|
void populate();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef BENCHMARK_
|
#pragma once
|
||||||
#define BENCHMARK_ 1
|
|
||||||
|
|
||||||
class QString;
|
class QString;
|
||||||
|
|
||||||
|
|
@ -12,5 +11,3 @@ namespace Benchmark
|
||||||
{
|
{
|
||||||
bool run( const QString& svgDir );
|
bool run( const QString& svgDir );
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef BOX_H
|
#pragma once
|
||||||
#define BOX_H
|
|
||||||
|
|
||||||
#include <QskLinearBox.h>
|
#include <QskLinearBox.h>
|
||||||
|
|
||||||
|
|
@ -26,5 +25,3 @@ class Box : public QskLinearBox
|
||||||
QString m_title;
|
QString m_title;
|
||||||
QskTextLabel* m_label;
|
QskTextLabel* m_label;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BOX_H
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef BOXWITHBUTTONS_H
|
#pragma once
|
||||||
#define BOXWITHBUTTONS_H
|
|
||||||
|
|
||||||
#include "Box.h"
|
#include "Box.h"
|
||||||
#include "RoundedIcon.h"
|
#include "RoundedIcon.h"
|
||||||
|
|
@ -101,5 +100,3 @@ class Humidity : public BoxWithButtons
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BOXWITHBUTTONS_H
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef CIRCULARPROGRESSBAR_H
|
#pragma once
|
||||||
#define CIRCULARPROGRESSBAR_H
|
|
||||||
|
|
||||||
#include <QskGradient.h>
|
#include <QskGradient.h>
|
||||||
|
|
||||||
|
|
@ -14,7 +13,7 @@
|
||||||
class CircularProgressBar : public QQuickPaintedItem
|
class CircularProgressBar : public QQuickPaintedItem
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CircularProgressBar( const QskGradient& gradient, int progress, QQuickItem* parent = nullptr );
|
CircularProgressBar( const QskGradient&, int progress, QQuickItem* parent = nullptr );
|
||||||
|
|
||||||
virtual void paint( QPainter* painter ) override;
|
virtual void paint( QPainter* painter ) override;
|
||||||
|
|
||||||
|
|
@ -55,5 +54,3 @@ class CircularProgressBar : public QQuickPaintedItem
|
||||||
double m_width = 20;
|
double m_width = 20;
|
||||||
int m_progress;
|
int m_progress;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CIRCULARPROGRESSBAR_H
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the QSkinny License, Version 1.0
|
* This file may be used under the terms of the QSkinny License, Version 1.0
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef DIAGRAM_H
|
#pragma once
|
||||||
#define DIAGRAM_H
|
|
||||||
|
|
||||||
#include <QskControl.h>
|
#include <QskControl.h>
|
||||||
#include <QskNamespace.h>
|
#include <QskNamespace.h>
|
||||||
|
|
@ -16,7 +15,8 @@ class Diagram : public QskControl
|
||||||
using Inherited = QskControl;
|
using Inherited = QskControl;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
QSK_SUBCONTROLS( Chart, Segments, ChartLine1, ChartArea1, ChartLine2, ChartArea2, ChartLine3, ChartArea3 )
|
QSK_SUBCONTROLS( Chart, Segments, ChartLine1, ChartArea1,
|
||||||
|
ChartLine2, ChartArea2, ChartLine3, ChartArea3 )
|
||||||
|
|
||||||
enum Type
|
enum Type
|
||||||
{
|
{
|
||||||
|
|
@ -30,7 +30,7 @@ class Diagram : public QskControl
|
||||||
~Diagram() override;
|
~Diagram() override;
|
||||||
|
|
||||||
QVector< QVector< QPointF > > dataPoints() const;
|
QVector< QVector< QPointF > > dataPoints() const;
|
||||||
void addDataPoints( const QVector< QPointF >& dataPoints, const Types& types );
|
void addDataPoints( const QVector< QPointF >&, const Types& );
|
||||||
|
|
||||||
Types typesAt( uint pos ) const;
|
Types typesAt( uint pos ) const;
|
||||||
|
|
||||||
|
|
@ -41,7 +41,7 @@ class Diagram : public QskControl
|
||||||
void setXGridLines( int lines );
|
void setXGridLines( int lines );
|
||||||
|
|
||||||
Qsk::Position chartPosition() const;
|
Qsk::Position chartPosition() const;
|
||||||
void setChartPosition( Qsk::Position position );
|
void setChartPosition( Qsk::Position );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
QSizeF contentsSizeHint( Qt::SizeHint, const QSizeF& ) const override;
|
QSizeF contentsSizeHint( Qt::SizeHint, const QSizeF& ) const override;
|
||||||
|
|
@ -52,5 +52,3 @@ class Diagram : public QskControl
|
||||||
};
|
};
|
||||||
|
|
||||||
Q_DECLARE_OPERATORS_FOR_FLAGS( Diagram::Types )
|
Q_DECLARE_OPERATORS_FOR_FLAGS( Diagram::Types )
|
||||||
|
|
||||||
#endif // DIAGRAM_H
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the QSkinny License, Version 1.0
|
* This file may be used under the terms of the QSkinny License, Version 1.0
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef DIAGRAM_SKINLET_H
|
#pragma once
|
||||||
#define DIAGRAM_SKINLET_H
|
|
||||||
|
|
||||||
#include <QskSkinlet.h>
|
#include <QskSkinlet.h>
|
||||||
|
|
||||||
|
|
@ -38,5 +37,3 @@ class DiagramSkinlet : public QskSkinlet
|
||||||
QSGNode* updateChartNode( const Diagram*, QSGNode* ) const;
|
QSGNode* updateChartNode( const Diagram*, QSGNode* ) const;
|
||||||
QSGNode* updateSeparatorNode( const Diagram*, QSGNode* ) const;
|
QSGNode* updateSeparatorNode( const Diagram*, QSGNode* ) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // DIAGRAM_SKINLET_H
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef LIGHTINTENSITY_H
|
#pragma once
|
||||||
#define LIGHTINTENSITY_H
|
|
||||||
|
|
||||||
#include "Box.h"
|
#include "Box.h"
|
||||||
|
|
||||||
|
|
@ -117,5 +116,3 @@ class LightIntensity : public Box
|
||||||
public:
|
public:
|
||||||
LightIntensity( QQuickItem* parent );
|
LightIntensity( QQuickItem* parent );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // LIGHTINTENSITY_H
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef MAINCONTENT_H
|
#pragma once
|
||||||
#define MAINCONTENT_H
|
|
||||||
|
|
||||||
#include <QskGridBox.h>
|
#include <QskGridBox.h>
|
||||||
#include <QskLinearBox.h>
|
#include <QskLinearBox.h>
|
||||||
|
|
@ -71,5 +70,3 @@ class MainContent : public QskLinearBox
|
||||||
QList< QskLinearBox* > m_columns;
|
QList< QskLinearBox* > m_columns;
|
||||||
ShadowPositioner* m_shadowPositioner;
|
ShadowPositioner* m_shadowPositioner;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // MAINCONTENT_H
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef MAINWINDOW_H
|
#pragma once
|
||||||
#define MAINWINDOW_H
|
|
||||||
|
|
||||||
#include <QskWindow.h>
|
#include <QskWindow.h>
|
||||||
|
|
||||||
|
|
@ -24,5 +23,3 @@ class MainWindow : public QskWindow
|
||||||
MenuBar* m_menuBar;
|
MenuBar* m_menuBar;
|
||||||
MainContent* m_mainContent;
|
MainContent* m_mainContent;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // MAINWINDOW_H
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef MENUBAR_H
|
#pragma once
|
||||||
#define MENUBAR_H
|
|
||||||
|
|
||||||
#include <QskGraphicLabel.h>
|
#include <QskGraphicLabel.h>
|
||||||
#include <QskLinearBox.h>
|
#include <QskLinearBox.h>
|
||||||
|
|
@ -115,5 +114,3 @@ class MenuBar final : public QskLinearBox
|
||||||
QList< MenuItem* > m_entries;
|
QList< MenuItem* > m_entries;
|
||||||
uint m_activeEntry = 0;
|
uint m_activeEntry = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // MENUBAR_H
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef MYDEVICES_H
|
#pragma once
|
||||||
#define MYDEVICES_H
|
|
||||||
|
|
||||||
#include "Box.h"
|
#include "Box.h"
|
||||||
|
|
||||||
|
|
@ -13,5 +12,3 @@ class MyDevices : public Box
|
||||||
public:
|
public:
|
||||||
MyDevices( QQuickItem* parent );
|
MyDevices( QQuickItem* parent );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // MYDEVICES_H
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef PIECHART_H
|
#pragma once
|
||||||
#define PIECHART_H
|
|
||||||
|
|
||||||
#include <QskControl.h>
|
#include <QskControl.h>
|
||||||
|
|
||||||
|
|
@ -27,5 +26,3 @@ class PieChart : public QskControl
|
||||||
QVector< float > m_angles;
|
QVector< float > m_angles;
|
||||||
QVector< QString > m_labels;
|
QVector< QString > m_labels;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // PIECHART_H
|
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,9 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef PIECHARTPAINTED_H
|
#pragma once
|
||||||
#define PIECHARTPAINTED_H
|
|
||||||
|
|
||||||
#include <QskControl.h>
|
#include <QskControl.h>
|
||||||
|
|
||||||
#include "CircularProgressBar.h"
|
#include "CircularProgressBar.h"
|
||||||
|
|
||||||
class ProgressBarAnimator;
|
class ProgressBarAnimator;
|
||||||
|
|
@ -20,7 +18,8 @@ class PieChartPainted : public QskControl
|
||||||
public:
|
public:
|
||||||
QSK_SUBCONTROLS( Panel )
|
QSK_SUBCONTROLS( Panel )
|
||||||
|
|
||||||
PieChartPainted( const QColor& color, const QskGradient& gradient, int progress, int value, QQuickItem* parent = nullptr );
|
PieChartPainted( const QColor&, const QskGradient&,
|
||||||
|
int progress, int value, QQuickItem* parent = nullptr );
|
||||||
|
|
||||||
QskAspect::Subcontrol effectiveSubcontrol(
|
QskAspect::Subcontrol effectiveSubcontrol(
|
||||||
QskAspect::Subcontrol subControl ) const override final;
|
QskAspect::Subcontrol subControl ) const override final;
|
||||||
|
|
@ -35,5 +34,3 @@ class PieChartPainted : public QskControl
|
||||||
QskTextLabel* m_progressLabel;
|
QskTextLabel* m_progressLabel;
|
||||||
ProgressBarAnimator* m_animator;
|
ProgressBarAnimator* m_animator;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // PIECHARTPAINTED_H
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef PIECHART_SKINLET_H
|
#pragma once
|
||||||
#define PIECHART_SKINLET_H
|
|
||||||
|
|
||||||
#include <QskSkinlet.h>
|
#include <QskSkinlet.h>
|
||||||
|
|
||||||
|
|
@ -23,14 +22,14 @@ class PieChartSkinlet : public QskSkinlet
|
||||||
|
|
||||||
Q_INVOKABLE PieChartSkinlet( QskSkin* skin = nullptr );
|
Q_INVOKABLE PieChartSkinlet( QskSkin* skin = nullptr );
|
||||||
|
|
||||||
QRectF subControlRect( const QskSkinnable*, const QRectF&, QskAspect::Subcontrol ) const override;
|
QRectF subControlRect( const QskSkinnable*,
|
||||||
|
const QRectF&, QskAspect::Subcontrol ) const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual QSGNode* updateSubNode( const QskSkinnable*, quint8 nodeRole, QSGNode* node ) const override;
|
virtual QSGNode* updateSubNode( const QskSkinnable*,
|
||||||
|
quint8 nodeRole, QSGNode* node ) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QSGNode* updatePanelNode( const PieChart*, QSGNode* ) const;
|
QSGNode* updatePanelNode( const PieChart*, QSGNode* ) const;
|
||||||
QSGNode* updateLabelsNode( const PieChart*, QSGNode* ) const;
|
QSGNode* updateLabelsNode( const PieChart*, QSGNode* ) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // PIECHART_SKINLET_H
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef ROUNDEDICON_H
|
#pragma once
|
||||||
#define ROUNDEDICON_H
|
|
||||||
|
|
||||||
#include <QskBox.h>
|
#include <QskBox.h>
|
||||||
#include <QskGradient.h>
|
#include <QskGradient.h>
|
||||||
|
|
@ -41,5 +40,3 @@ class RoundedIcon : public QskBox
|
||||||
QString m_iconName;
|
QString m_iconName;
|
||||||
QskGraphicLabel* m_graphicLabel = nullptr;
|
QskGraphicLabel* m_graphicLabel = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // ROUNDEDICON_H
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef SKIN_H
|
#pragma once
|
||||||
#define SKIN_H
|
|
||||||
|
|
||||||
#include <QskGradient.h>
|
#include <QskGradient.h>
|
||||||
#include <QskSkin.h>
|
#include <QskSkin.h>
|
||||||
|
|
@ -78,5 +77,3 @@ class NighttimeSkin : public Skin
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // SKIN_H
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef TOPBAR_H
|
#pragma once
|
||||||
#define TOPBAR_H
|
|
||||||
|
|
||||||
#include <QskLinearBox.h>
|
#include <QskLinearBox.h>
|
||||||
#include <QskTextLabel.h>
|
#include <QskTextLabel.h>
|
||||||
|
|
@ -106,5 +105,3 @@ class TopBar : public QskLinearBox
|
||||||
private:
|
private:
|
||||||
QList< TopBarItem* > m_entries;
|
QList< TopBarItem* > m_entries;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef UPANDDOWNBUTTON_H
|
#pragma once
|
||||||
#define UPANDDOWNBUTTON_H
|
|
||||||
|
|
||||||
#include <QskLinearBox.h>
|
#include <QskLinearBox.h>
|
||||||
#include <QskPushButton.h>
|
#include <QskPushButton.h>
|
||||||
|
|
@ -30,5 +29,3 @@ class UpAndDownButton : public QskLinearBox
|
||||||
public:
|
public:
|
||||||
UpAndDownButton( QQuickItem* parent );
|
UpAndDownButton( QQuickItem* parent );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // UPANDDOWNBUTTON_H
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef USAGE_H
|
#pragma once
|
||||||
#define USAGE_H
|
|
||||||
|
|
||||||
#include "Box.h"
|
#include "Box.h"
|
||||||
|
|
||||||
|
|
@ -40,5 +39,3 @@ class Usage : public Box
|
||||||
public:
|
public:
|
||||||
Usage( QQuickItem* parent );
|
Usage( QQuickItem* parent );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // USAGE_H
|
|
||||||
|
|
|
||||||
|
|
@ -3,13 +3,11 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef USAGEDIAGRAM_H
|
#pragma once
|
||||||
#define USAGEDIAGRAM_H
|
|
||||||
|
|
||||||
#include "Box.h"
|
#include "Box.h"
|
||||||
|
|
||||||
#include <QskTextLabel.h>
|
#include <QskTextLabel.h>
|
||||||
|
|
||||||
#include <QQuickPaintedItem>
|
#include <QQuickPaintedItem>
|
||||||
|
|
||||||
class Diagram;
|
class Diagram;
|
||||||
|
|
@ -157,5 +155,3 @@ class UsageDiagram : public Box
|
||||||
QskLinearBox* m_captionBox;
|
QskLinearBox* m_captionBox;
|
||||||
QskGridBox* m_weekdays;
|
QskGridBox* m_weekdays;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // USAGEDIAGRAM_H
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the QSkinny License, Version 1.0
|
* This file may be used under the terms of the QSkinny License, Version 1.0
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef DIAGRAMDATANODE_H
|
#pragma once
|
||||||
#define DIAGRAMDATANODE_H
|
|
||||||
|
|
||||||
#include <QskNamespace.h>
|
#include <QskNamespace.h>
|
||||||
|
|
||||||
|
|
@ -23,7 +22,8 @@ class DiagramDataNode : public QSGGeometryNode
|
||||||
|
|
||||||
DiagramDataNode();
|
DiagramDataNode();
|
||||||
|
|
||||||
void update( const QRectF& rect, Type type, const QColor& color, const QVector< QPointF >& dataPoints, const qreal yMax, Qsk::Position position, int lineWidth );
|
void update( const QRectF&, Type, const QColor&,
|
||||||
|
const QVector< QPointF >&, const qreal yMax, Qsk::Position, int lineWidth );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QSGFlatColorMaterial m_material;
|
QSGFlatColorMaterial m_material;
|
||||||
|
|
@ -37,5 +37,3 @@ class DiagramDataNode : public QSGGeometryNode
|
||||||
Qsk::Position m_position;
|
Qsk::Position m_position;
|
||||||
int m_lineWidth;
|
int m_lineWidth;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the QSkinny License, Version 1.0
|
* This file may be used under the terms of the QSkinny License, Version 1.0
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef DIAGRAMSEGMENTSNODE_H
|
#pragma once
|
||||||
#define DIAGRAMSEGMENTSNODE_H
|
|
||||||
|
|
||||||
#include <QPolygonF>
|
#include <QPolygonF>
|
||||||
#include <QSGFlatColorMaterial>
|
#include <QSGFlatColorMaterial>
|
||||||
|
|
@ -15,7 +14,8 @@ class DiagramSegmentsNode : public QSGGeometryNode
|
||||||
public:
|
public:
|
||||||
DiagramSegmentsNode();
|
DiagramSegmentsNode();
|
||||||
|
|
||||||
void update( const QRectF& rect, const QColor& color, const QVector< QVector< QPointF > >& dataPoints, int xGridLines );
|
void update( const QRectF&, const QColor&,
|
||||||
|
const QVector< QVector< QPointF > >&, int xGridLines );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QSGFlatColorMaterial m_material;
|
QSGFlatColorMaterial m_material;
|
||||||
|
|
@ -26,5 +26,3 @@ class DiagramSegmentsNode : public QSGGeometryNode
|
||||||
QVector< QVector< QPointF > > m_dataPoints;
|
QVector< QVector< QPointF > > m_dataPoints;
|
||||||
int m_xGridLines;
|
int m_xGridLines;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef BUTTON_BOX
|
#pragma once
|
||||||
#define BUTTON_BOX 1
|
|
||||||
|
|
||||||
#include <QskLinearBox.h>
|
#include <QskLinearBox.h>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
@ -17,5 +16,3 @@ class ButtonBox : public QskLinearBox
|
||||||
void addButton( const QString& text,
|
void addButton( const QString& text,
|
||||||
std::function< void() > func, bool autoRepeat = false );
|
std::function< void() > func, bool autoRepeat = false );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef DYNAMIC_CONSTRAINTS_PAGE
|
#pragma once
|
||||||
#define DYNAMIC_CONSTRAINTS_PAGE 1
|
|
||||||
|
|
||||||
#include <QskLinearBox.h>
|
#include <QskLinearBox.h>
|
||||||
|
|
||||||
|
|
@ -13,5 +12,3 @@ class DynamicConstraintsPage : public QskLinearBox
|
||||||
public:
|
public:
|
||||||
DynamicConstraintsPage( QQuickItem* parent = nullptr );
|
DynamicConstraintsPage( QQuickItem* parent = nullptr );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef FLOW_LAYOUT_PAGE
|
#pragma once
|
||||||
#define FLOW_LAYOUT_PAGE 1
|
|
||||||
|
|
||||||
#include <QskLinearBox.h>
|
#include <QskLinearBox.h>
|
||||||
|
|
||||||
|
|
@ -13,5 +12,3 @@ class FlowLayoutPage : public QskLinearBox
|
||||||
public:
|
public:
|
||||||
FlowLayoutPage( QQuickItem* parent = nullptr );
|
FlowLayoutPage( QQuickItem* parent = nullptr );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef GRID_LAYOUT_PAGE
|
#pragma once
|
||||||
#define GRID_LAYOUT_PAGE
|
|
||||||
|
|
||||||
#include <QskControl.h>
|
#include <QskControl.h>
|
||||||
|
|
||||||
|
|
@ -13,5 +12,3 @@ class GridLayoutPage : public QskControl
|
||||||
public:
|
public:
|
||||||
GridLayoutPage( QQuickItem* parent = nullptr );
|
GridLayoutPage( QQuickItem* parent = nullptr );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef LINERAR_LAYOUT_PAGE
|
#pragma once
|
||||||
#define LINEAR_LAYOUT_PAGE 1
|
|
||||||
|
|
||||||
#include <QskLinearBox.h>
|
#include <QskLinearBox.h>
|
||||||
|
|
||||||
|
|
@ -13,5 +12,3 @@ class LinearLayoutPage : public QskLinearBox
|
||||||
public:
|
public:
|
||||||
LinearLayoutPage( QQuickItem* parent = nullptr );
|
LinearLayoutPage( QQuickItem* parent = nullptr );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef STACK_LAYOUT_PAGE
|
#pragma once
|
||||||
#define STACK_LAYOUT_PAGE 1
|
|
||||||
|
|
||||||
#include <QskLinearBox.h>
|
#include <QskLinearBox.h>
|
||||||
|
|
||||||
|
|
@ -13,5 +12,3 @@ class StackLayoutPage : public QskLinearBox
|
||||||
public:
|
public:
|
||||||
StackLayoutPage( QQuickItem* parent = nullptr );
|
StackLayoutPage( QQuickItem* parent = nullptr );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef TEST_RECTANGLE
|
#pragma once
|
||||||
#define TEST_RECTANGLE
|
|
||||||
|
|
||||||
#include <QskTextLabel.h>
|
#include <QskTextLabel.h>
|
||||||
|
|
||||||
|
|
@ -24,5 +23,3 @@ class TestRectangle : public QskTextLabel
|
||||||
private:
|
private:
|
||||||
QString m_colorName;
|
QString m_colorName;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef MY_SKIN_H
|
#pragma once
|
||||||
#define MY_SKIN_H
|
|
||||||
|
|
||||||
#include <QskSkinFactory.h>
|
#include <QskSkinFactory.h>
|
||||||
|
|
||||||
|
|
@ -17,5 +16,3 @@ class MySkinFactory : public QskSkinFactory
|
||||||
QStringList skinNames() const override;
|
QStringList skinNames() const override;
|
||||||
QskSkin* createSkin( const QString& skinName ) override;
|
QskSkin* createSkin( const QString& skinName ) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef MY_TOGGLE_BUTTON_H
|
#pragma once
|
||||||
#define MY_TOGGLE_BUTTON_H
|
|
||||||
|
|
||||||
#include <QskAbstractButton.h>
|
#include <QskAbstractButton.h>
|
||||||
|
|
||||||
|
|
@ -49,5 +48,3 @@ class MyToggleButton : public QskAbstractButton
|
||||||
class PrivateData;
|
class PrivateData;
|
||||||
std::unique_ptr< PrivateData > m_data;
|
std::unique_ptr< PrivateData > m_data;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef MY_TOGGLE_BUTTON_SKINLET_H
|
#pragma once
|
||||||
#define MY_TOGGLE_BUTTON_SKINLET_H
|
|
||||||
|
|
||||||
#include <QskSkinlet.h>
|
#include <QskSkinlet.h>
|
||||||
|
|
||||||
|
|
@ -44,5 +43,3 @@ class MyToggleButtonSkinlet : public QskSkinlet
|
||||||
QSGNode* updateSubNode( const QskSkinnable*,
|
QSGNode* updateSubNode( const QskSkinnable*,
|
||||||
quint8 nodeRole, QSGNode* ) const override;
|
quint8 nodeRole, QSGNode* ) const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef MAIN_WINDOW_H_
|
#pragma once
|
||||||
#define MAIN_WINDOW_H_
|
|
||||||
|
|
||||||
#include <QskWindow.h>
|
#include <QskWindow.h>
|
||||||
|
|
||||||
|
|
@ -25,5 +24,3 @@ class MainWindow : public QskWindow
|
||||||
private:
|
private:
|
||||||
QskTabView* m_tabView;
|
QskTabView* m_tabView;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the QSkinny License, Version 1.0
|
* This file may be used under the terms of the QSkinny License, Version 1.0
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef ANCHOR_BOX_H
|
#pragma once
|
||||||
#define ANCHOR_BOX_H
|
|
||||||
|
|
||||||
#include "QskControl.h"
|
#include "QskControl.h"
|
||||||
|
|
||||||
|
|
@ -42,6 +41,3 @@ class AnchorBox : public QskControl
|
||||||
class PrivateData;
|
class PrivateData;
|
||||||
std::unique_ptr< PrivateData > m_data;
|
std::unique_ptr< PrivateData > m_data;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef WINDOW_H
|
#pragma once
|
||||||
#define WINDOW_H 1
|
|
||||||
|
|
||||||
#include <QskDialog.h>
|
#include <QskDialog.h>
|
||||||
#include <QskWindow.h>
|
#include <QskWindow.h>
|
||||||
|
|
@ -34,5 +33,3 @@ class Window : public QskWindow
|
||||||
QskLinearBox* m_layoutBox;
|
QskLinearBox* m_layoutBox;
|
||||||
Qt::Orientation m_orientation;
|
Qt::Orientation m_orientation;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef GRID_ACCESSOR_H
|
#pragma once
|
||||||
#define GRID_ACCESSOR_H
|
|
||||||
|
|
||||||
#include <Qt>
|
#include <Qt>
|
||||||
|
|
||||||
|
|
@ -61,5 +60,3 @@ class GridAccessor
|
||||||
|
|
||||||
virtual QSize preferredSize() const = 0;
|
virtual QSize preferredSize() const = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,15 +3,14 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef GRID_GRAPHICS_H
|
#pragma once
|
||||||
#define GRID_GRAPHICS_H
|
|
||||||
|
|
||||||
#include "GridAccessor.h"
|
#include "GridAccessor.h"
|
||||||
#include <QGraphicsView>
|
#include <QGraphicsView>
|
||||||
|
|
||||||
class QGraphicsGridLayout;
|
class QGraphicsGridLayout;
|
||||||
|
|
||||||
class GridGraphics : public QGraphicsView, public GridAccessor
|
class GridGraphics final : public QGraphicsView, public GridAccessor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
GridGraphics( QWidget* parent = nullptr );
|
GridGraphics( QWidget* parent = nullptr );
|
||||||
|
|
@ -39,5 +38,3 @@ class GridGraphics : public QGraphicsView, public GridAccessor
|
||||||
private:
|
private:
|
||||||
QGraphicsGridLayout* m_layout;
|
QGraphicsGridLayout* m_layout;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef GRID_QUICK_H
|
#pragma once
|
||||||
#define GRID_QUICK_H
|
|
||||||
|
|
||||||
#include "GridAccessor.h"
|
#include "GridAccessor.h"
|
||||||
#include <QQuickWidget>
|
#include <QQuickWidget>
|
||||||
|
|
@ -39,5 +38,3 @@ class GridQuick : public QQuickWidget, public GridAccessor
|
||||||
private:
|
private:
|
||||||
QQuickItem* m_grid;
|
QQuickItem* m_grid;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,15 +3,14 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef GRID_SKINNY_H
|
#pragma once
|
||||||
#define GRID_SKINNY_H
|
|
||||||
|
|
||||||
#include "GridAccessor.h"
|
#include "GridAccessor.h"
|
||||||
#include <QQuickWidget>
|
#include <QQuickWidget>
|
||||||
|
|
||||||
class QskGridBox;
|
class QskGridBox;
|
||||||
|
|
||||||
class GridSkinny : public QQuickWidget, public GridAccessor
|
class GridSkinny final : public QQuickWidget, public GridAccessor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
GridSkinny( QWidget* parent = nullptr );
|
GridSkinny( QWidget* parent = nullptr );
|
||||||
|
|
@ -36,5 +35,3 @@ class GridSkinny : public QQuickWidget, public GridAccessor
|
||||||
private:
|
private:
|
||||||
QskGridBox* m_grid;
|
QskGridBox* m_grid;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,15 +3,14 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef GRID_WIDGETS_H
|
#pragma once
|
||||||
#define GRID_WIDGETS_H
|
|
||||||
|
|
||||||
#include "GridAccessor.h"
|
#include "GridAccessor.h"
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
class QGridLayout;
|
class QGridLayout;
|
||||||
|
|
||||||
class GridWidgets : public QWidget, public GridAccessor
|
class GridWidgets final : public QWidget, public GridAccessor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
GridWidgets( QWidget* parent = nullptr );
|
GridWidgets( QWidget* parent = nullptr );
|
||||||
|
|
@ -36,5 +35,3 @@ class GridWidgets : public QWidget, public GridAccessor
|
||||||
private:
|
private:
|
||||||
QGridLayout* m_layout;
|
QGridLayout* m_layout;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef TEST_BOX_H
|
#pragma once
|
||||||
#define TEST_BOX_H
|
|
||||||
|
|
||||||
#include "GridAccessor.h"
|
#include "GridAccessor.h"
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
@ -62,5 +61,3 @@ class TestBox : public QWidget, public GridAccessor
|
||||||
|
|
||||||
int m_columnCount = 2;
|
int m_columnCount = 2;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef IMAGE_H
|
#pragma once
|
||||||
#define IMAGE_H
|
|
||||||
|
|
||||||
#include "QskGlobal.h"
|
#include "QskGlobal.h"
|
||||||
|
|
||||||
|
|
@ -78,5 +77,3 @@ class Image : public QQuickImage
|
||||||
class PrivateData;
|
class PrivateData;
|
||||||
std::unique_ptr< PrivateData > m_data;
|
std::unique_ptr< PrivateData > m_data;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef CALLBACK_H
|
#pragma once
|
||||||
#define CALLBACK_H 1
|
|
||||||
|
|
||||||
#include <QskMetaInvokable.h>
|
#include <QskMetaInvokable.h>
|
||||||
|
|
||||||
|
|
@ -40,5 +39,3 @@ inline const QskMetaInvokable& Callback::invokable() const
|
||||||
{
|
{
|
||||||
return m_invokable;
|
return m_invokable;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,7 @@
|
||||||
* This file may be used under the terms of the 3-clause BSD License
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
#ifndef INVOKER_H
|
#pragma once
|
||||||
#define INVOKER_H 1
|
|
||||||
|
|
||||||
#include "Callback.h"
|
#include "Callback.h"
|
||||||
#include <QskMetaFunction.h>
|
#include <QskMetaFunction.h>
|
||||||
|
|
@ -33,5 +32,3 @@ inline void Invoker::addFunctionCall( const QskMetaFunction& function )
|
||||||
{
|
{
|
||||||
addFunctionCall( this, function );
|
addFunctionCall( this, function );
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
||||||
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
#include "BoxShadowNode.h"
|
#include "BoxShadowNode.h"
|
||||||
#include "QskBoxShapeMetrics.h"
|
#include "QskBoxShapeMetrics.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
#ifndef BOX_SHADOW_NODE_H
|
/******************************************************************************
|
||||||
#define BOX_SHADOW_NODE_H
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
||||||
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include <QSGGeometryNode>
|
#include <QSGGeometryNode>
|
||||||
|
|
||||||
|
|
@ -24,5 +28,3 @@ class BoxShadowNode : public QSGGeometryNode
|
||||||
private:
|
private:
|
||||||
Q_DECLARE_PRIVATE( BoxShadowNode )
|
Q_DECLARE_PRIVATE( BoxShadowNode )
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
||||||
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
#include "ShadowedBox.h"
|
#include "ShadowedBox.h"
|
||||||
#include "BoxShadowNode.h"
|
#include "BoxShadowNode.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
#ifndef SHADOWED_BOX_H
|
/******************************************************************************
|
||||||
#define SHADOWED_BOX_H
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
||||||
|
* This file may be used under the terms of the 3-clause BSD License
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include <QskControl.h>
|
#include <QskControl.h>
|
||||||
#include <QskBoxShapeMetrics.h>
|
#include <QskBoxShapeMetrics.h>
|
||||||
|
|
@ -42,5 +46,3 @@ class ShadowedBox : public QskControl
|
||||||
QskGradient m_gradient;
|
QskGradient m_gradient;
|
||||||
QskBoxShapeMetrics m_shape;
|
QskBoxShapeMetrics m_shape;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue