QAD_EXPORT
git-svn-id: svn://db.shs.com.ru/libs@719 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -4,12 +4,15 @@
|
||||
#include <QDialog>
|
||||
#include <QMetaEnum>
|
||||
#include <QDebug>
|
||||
#include "qad_export.h"
|
||||
|
||||
|
||||
namespace Ui {
|
||||
class CharDialog;
|
||||
};
|
||||
}
|
||||
|
||||
class CharDialog: public QDialog
|
||||
|
||||
class QAD_EXPORT CharDialog: public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
#include <QLineEdit>
|
||||
#include <QMouseEvent>
|
||||
#include <QPainter>
|
||||
#include "qad_export.h"
|
||||
|
||||
|
||||
class CLineEdit: public QLineEdit
|
||||
class QAD_EXPORT CLineEdit: public QLineEdit
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QString defaultText READ defaultText WRITE setDefaultText)
|
||||
|
||||
@@ -9,9 +9,10 @@
|
||||
#include <QMenu>
|
||||
#include <QClipboard>
|
||||
#include <QApplication>
|
||||
#include "qad_export.h"
|
||||
|
||||
|
||||
class ColorButton: public QPushButton
|
||||
class QAD_EXPORT ColorButton: public QPushButton
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QColor color READ color WRITE setColor)
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "clineedit.h"
|
||||
|
||||
|
||||
class EComboBox: public QComboBox
|
||||
class QAD_EXPORT EComboBox: public QComboBox
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
#include <QMouseEvent>
|
||||
#include "qpievaluator.h"
|
||||
|
||||
|
||||
class QLabel;
|
||||
|
||||
class EvalSpinBox: public QAbstractSpinBox
|
||||
class QAD_EXPORT EvalSpinBox: public QAbstractSpinBox
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(double value READ value WRITE setValue NOTIFY valueChanged USER true)
|
||||
|
||||
@@ -5,11 +5,8 @@
|
||||
#include <QIcon>
|
||||
#include "qad_types.h"
|
||||
|
||||
QT_BEGIN_HEADER
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class IconedLabel: public QFrame
|
||||
class QAD_EXPORT IconedLabel: public QFrame
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_ENUMS(Direction)
|
||||
@@ -46,8 +43,4 @@ signals:
|
||||
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
QT_END_HEADER
|
||||
|
||||
#endif // ICONEDLABEL_H
|
||||
|
||||
@@ -87,12 +87,12 @@ void ImageView::mouseMoveEvent(QMouseEvent * e) {
|
||||
}
|
||||
|
||||
|
||||
void ImageView::wheelEvent(QWheelEvent * e) {
|
||||
if (!e->modifiers().testFlag(Qt::ControlModifier) || !isInteractive()) return;
|
||||
double scl = 1. + e->delta() / 500.;
|
||||
//autofit_ = false;
|
||||
//scale(scl, scl);
|
||||
}
|
||||
//void ImageView::wheelEvent(QWheelEvent * e) {
|
||||
// if (!e->modifiers().testFlag(Qt::ControlModifier) || !isInteractive()) return;
|
||||
// double scl = 1. + e->delta() / 500.;
|
||||
// //autofit_ = false;
|
||||
// //scale(scl, scl);
|
||||
//}
|
||||
|
||||
|
||||
bool ImageView::eventFilter(QObject * o, QEvent * e) {
|
||||
@@ -107,8 +107,8 @@ bool ImageView::eventFilter(QObject * o, QEvent * e) {
|
||||
case QEvent::MouseMove:
|
||||
if (!me->buttons().testFlag(Qt::RightButton) || autofit_ || !isInteractive()) break;
|
||||
{
|
||||
double scl = 1. / qSqrt(transform().determinant());
|
||||
QPointF dp = QPointF(me->pos() - prev_pos) * scl;
|
||||
//double scl = 1. / qSqrt(transform().determinant());
|
||||
//QPointF dp = QPointF(me->pos() - prev_pos) * scl;
|
||||
//qDebug() << dp;
|
||||
//translate(0.00001, 0);
|
||||
prev_pos = me->pos();
|
||||
|
||||
@@ -3,9 +3,10 @@
|
||||
|
||||
#include <QGraphicsView>
|
||||
#include <QGraphicsPixmapItem>
|
||||
#include "qad_export.h"
|
||||
|
||||
|
||||
class ImageView: public QGraphicsView
|
||||
class QAD_EXPORT ImageView: public QGraphicsView
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QPixmap pixmap READ pixmap WRITE setPixmap)
|
||||
@@ -24,7 +25,7 @@ private:
|
||||
void mouseDoubleClickEvent(QMouseEvent * e);
|
||||
void mousePressEvent(QMouseEvent * e);
|
||||
void mouseMoveEvent(QMouseEvent * e);
|
||||
void wheelEvent(QWheelEvent * e);
|
||||
// void wheelEvent(QWheelEvent * e);
|
||||
bool eventFilter(QObject * o, QEvent * e);
|
||||
void adjustView();
|
||||
|
||||
|
||||
@@ -4,9 +4,11 @@
|
||||
#include <QWidget>
|
||||
#include "qad_types.h"
|
||||
|
||||
|
||||
class MatrixEdit;
|
||||
|
||||
class MathMatrixEdit: public QWidget {
|
||||
|
||||
class QAD_EXPORT MathMatrixEdit: public QWidget {
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QVariant value READ value WRITE setValue NOTIFY valueChanged)
|
||||
Q_PROPERTY(bool readOnly READ isReadOnly WRITE setReadOnly)
|
||||
|
||||
@@ -4,9 +4,11 @@
|
||||
#include <QWidget>
|
||||
#include "qad_types.h"
|
||||
|
||||
|
||||
class MatrixEdit;
|
||||
|
||||
class MathVectorEdit: public QWidget {
|
||||
|
||||
class QAD_EXPORT MathVectorEdit: public QWidget {
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QVariant value READ value WRITE setValue NOTIFY valueChanged)
|
||||
Q_PROPERTY(bool readOnly READ isReadOnly WRITE setReadOnly)
|
||||
|
||||
@@ -2,12 +2,15 @@
|
||||
#define MATRIXEDIT_H
|
||||
|
||||
#include <QWidget>
|
||||
#include "qad_export.h"
|
||||
|
||||
|
||||
namespace Ui {
|
||||
class MatrixEdit;
|
||||
}
|
||||
|
||||
class MatrixEdit: public QWidget {
|
||||
|
||||
class QAD_EXPORT MatrixEdit: public QWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit MatrixEdit(QWidget * parent = 0);
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "propertystorage.h"
|
||||
|
||||
|
||||
class PropertyStorageEditor: public QWidget {
|
||||
class QAD_EXPORT PropertyStorageEditor: public QWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit PropertyStorageEditor(QWidget * parent = 0);
|
||||
|
||||
@@ -7,17 +7,13 @@
|
||||
#include <QScrollBar>
|
||||
#include "iconedlabel.h"
|
||||
|
||||
QT_BEGIN_HEADER
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
||||
namespace Ui {
|
||||
class QCodeEdit;
|
||||
}
|
||||
|
||||
|
||||
class QCodeEdit: public QWidget
|
||||
class QAD_EXPORT QCodeEdit: public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QString text READ text WRITE setText)
|
||||
@@ -154,10 +150,5 @@ signals:
|
||||
|
||||
};
|
||||
|
||||
//Q_DECLARE_OPERATORS_FOR_FLAGS(QPIConsole::Formats)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
QT_END_HEADER
|
||||
|
||||
#endif // QCODEEDIT_H
|
||||
|
||||
@@ -7,8 +7,10 @@
|
||||
#include <QFocusEvent>
|
||||
#include <QLineEdit>
|
||||
#include <QLabel>
|
||||
#include "qad_export.h"
|
||||
|
||||
class QIPEdit: public QWidget
|
||||
|
||||
class QAD_EXPORT QIPEdit: public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QString IP READ IP WRITE setIP)
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <QDialog>
|
||||
#include <QRadioButton>
|
||||
#include "qad_export.h"
|
||||
|
||||
|
||||
namespace Ui {
|
||||
@@ -10,7 +11,7 @@ namespace Ui {
|
||||
}
|
||||
|
||||
|
||||
class QPIConfigNewDialog: public QDialog
|
||||
class QAD_EXPORT QPIConfigNewDialog: public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <QDoubleSpinBox>
|
||||
|
||||
|
||||
class ConfigValueWidget: public QWidget
|
||||
class QAD_EXPORT ConfigValueWidget: public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
friend class QPIConfigWidget;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <QMenu>
|
||||
|
||||
|
||||
class UComboBox: public QComboBox
|
||||
class QAD_EXPORT UComboBox: public QComboBox
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
@@ -24,7 +24,7 @@ signals:
|
||||
};
|
||||
|
||||
|
||||
class QPIConfigWidget: public QTreeWidget
|
||||
class QAD_EXPORT QPIConfigWidget: public QTreeWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(bool readOnlyName READ readOnlyName WRITE setReadOnlyName)
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
#include <QFormLayout>
|
||||
#include <QSpacerItem>
|
||||
#include <QDebug>
|
||||
#include "qad_export.h"
|
||||
|
||||
|
||||
typedef long long llong;
|
||||
typedef unsigned char uchar;
|
||||
@@ -16,11 +18,8 @@ typedef unsigned long ulong;
|
||||
typedef unsigned long long ullong;
|
||||
typedef long double ldouble;
|
||||
|
||||
QT_BEGIN_HEADER
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QPIConsole: public QTabWidget {
|
||||
class QAD_EXPORT QPIConsole: public QTabWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
QPIConsole(QWidget * parent = 0);
|
||||
@@ -180,8 +179,4 @@ public slots:
|
||||
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(QPIConsole::Formats)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
QT_END_HEADER
|
||||
|
||||
#endif // QPICONSOLE_H
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
#include <QBoxLayout>
|
||||
#include <QLabel>
|
||||
#include <QEvent>
|
||||
#include "qad_export.h"
|
||||
|
||||
|
||||
class QPointEdit: public QWidget
|
||||
class QAD_EXPORT QPointEdit: public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QPointF value READ value WRITE setValue)
|
||||
|
||||
@@ -5,9 +5,10 @@
|
||||
#include <QBoxLayout>
|
||||
#include <QLabel>
|
||||
#include <QEvent>
|
||||
#include "qad_export.h"
|
||||
|
||||
|
||||
class QRectEdit: public QWidget
|
||||
class QAD_EXPORT QRectEdit: public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QRectF value READ value WRITE setValue)
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <QDoubleSpinBox>
|
||||
|
||||
|
||||
class StringListEdit: public QWidget
|
||||
class QAD_EXPORT StringListEdit: public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
@@ -47,7 +47,7 @@ signals:
|
||||
|
||||
|
||||
|
||||
class PathEdit: public QWidget
|
||||
class QAD_EXPORT PathEdit: public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
@@ -81,7 +81,7 @@ signals:
|
||||
|
||||
|
||||
|
||||
class QVariantEdit: public QWidget
|
||||
class QAD_EXPORT QVariantEdit: public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QVariant value READ value WRITE setValue)
|
||||
|
||||
@@ -4,11 +4,13 @@
|
||||
#include <QDebug>
|
||||
#include <QWidget>
|
||||
#include <QMap>
|
||||
#include "qad_export.h"
|
||||
|
||||
|
||||
class QVariantEdit;
|
||||
|
||||
|
||||
class QVariantEditorFactoryBase {
|
||||
class QAD_EXPORT QVariantEditorFactoryBase {
|
||||
friend class QVariantEdit;
|
||||
public:
|
||||
QVariantEditorFactoryBase() {}
|
||||
@@ -18,7 +20,7 @@ private:
|
||||
};
|
||||
|
||||
|
||||
class QVariantEditorFactories {
|
||||
class QAD_EXPORT QVariantEditorFactories {
|
||||
public:
|
||||
static void registerEditorFactory(int meta_id, QVariantEditorFactoryBase * f);
|
||||
static void unregisterEditorFactory(int meta_id);
|
||||
|
||||
@@ -1,32 +1,19 @@
|
||||
/*
|
||||
QGLView
|
||||
Copyright (C) 2019 Ivan Pelipenko peri4ko@yandex.ru
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef SCROLL_SPIN_BOX_H
|
||||
#define SCROLL_SPIN_BOX_H
|
||||
|
||||
#include <QWidget>
|
||||
#include "qad_export.h"
|
||||
|
||||
|
||||
namespace Ui {
|
||||
class ScrollSpinBox;
|
||||
}
|
||||
|
||||
|
||||
class EvalSpinBox;
|
||||
|
||||
class ScrollSpinBox: public QWidget
|
||||
|
||||
class QAD_EXPORT ScrollSpinBox: public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(double sensivity READ sensivity WRITE setSensivity)
|
||||
|
||||
@@ -17,13 +17,14 @@
|
||||
#include "evalspinbox.h"
|
||||
#include "qpiconfig.h"
|
||||
|
||||
|
||||
/// for all children widgets of "QMainWindow"s and MainWidgets
|
||||
/// check for slots
|
||||
/// * void sessionSave(QByteArray * data);
|
||||
/// * void sessionLoad(QByteArray * data);
|
||||
|
||||
|
||||
class SessionManager: public QObject
|
||||
class QAD_EXPORT SessionManager: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
@@ -15,11 +15,8 @@
|
||||
#include <QWidgetAction>
|
||||
#include "clineedit.h"
|
||||
|
||||
QT_BEGIN_HEADER
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class ShortcutEdit: public CLineEdit
|
||||
class QAD_EXPORT ShortcutEdit: public CLineEdit
|
||||
{
|
||||
Q_OBJECT
|
||||
friend class Shortcuts;
|
||||
@@ -44,7 +41,7 @@ private:
|
||||
};
|
||||
|
||||
|
||||
class Shortcuts: public QTreeWidget
|
||||
class QAD_EXPORT Shortcuts: public QTreeWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@@ -83,8 +80,4 @@ signals:
|
||||
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
QT_END_HEADER
|
||||
|
||||
#endif // SPINSLIDER_H
|
||||
|
||||
@@ -4,12 +4,10 @@
|
||||
#include <QSlider>
|
||||
#include <QDoubleSpinBox>
|
||||
#include <QBoxLayout>
|
||||
#include "qad_export.h"
|
||||
|
||||
QT_BEGIN_HEADER
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class SpinSlider: public QWidget
|
||||
class QAD_EXPORT SpinSlider: public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_ENUMS(Direction)
|
||||
@@ -98,8 +96,5 @@ signals:
|
||||
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
QT_END_HEADER
|
||||
|
||||
#endif // SPINSLIDER_H
|
||||
|
||||
Reference in New Issue
Block a user