mirror of
https://github.com/riuson/lcd-image-converter.git
synced 2026-03-04 07:14:12 +01:00
94 lines
2.2 KiB
C++
94 lines
2.2 KiB
C++
/*
|
|
* LCD Image Converter. Converts images and fonts for embedded applications.
|
|
* Copyright (C) 2013 riuson
|
|
* mailto: riuson@gmail.com
|
|
*
|
|
* 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 DIALOGCANVASRESIZE_H
|
|
#define DIALOGCANVASRESIZE_H
|
|
|
|
#include <QDialog>
|
|
|
|
template <class Key, class Value> class QMap;
|
|
|
|
namespace Ui
|
|
{
|
|
class DialogAlign;
|
|
}
|
|
|
|
#include <QItemSelection>
|
|
|
|
namespace Data
|
|
{
|
|
namespace Containers
|
|
{
|
|
class DataContainer;
|
|
}
|
|
namespace Models
|
|
{
|
|
class ImagesModel;
|
|
class ImagesScaledProxy;
|
|
class ImagesFilterProxy;
|
|
class ColumnsReorderProxy;
|
|
class TransposeProxy;
|
|
class AlignModProxy;
|
|
} // namespace Models
|
|
class AlignModInfo;
|
|
} // namespace Data
|
|
|
|
namespace AppUI
|
|
{
|
|
namespace CommonDialogs
|
|
{
|
|
|
|
class DialogAlign : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit DialogAlign(Data::Containers::DataContainer* container, const QStringList& keys, QWidget* parent = nullptr);
|
|
virtual ~DialogAlign() Q_DECL_OVERRIDE;
|
|
|
|
const Data::AlignModInfo* alignInfo() const;
|
|
|
|
protected:
|
|
void wheelEvent(QWheelEvent* event) Q_DECL_OVERRIDE;
|
|
|
|
private:
|
|
Ui::DialogAlign* ui;
|
|
|
|
Data::Containers::DataContainer* mContainer;
|
|
Data::Models::ImagesModel* mModel;
|
|
Data::Models::ImagesScaledProxy* mScaledProxy;
|
|
Data::Models::ImagesFilterProxy* mFilter;
|
|
Data::Models::ColumnsReorderProxy* mReorderProxy;
|
|
Data::Models::TransposeProxy* mTranspose;
|
|
Data::Models::AlignModProxy* mAlignMod;
|
|
|
|
const QStringList& mKeys;
|
|
Data::AlignModInfo* mAlignModInfo;
|
|
|
|
private slots:
|
|
void operationValuesChanged(int value);
|
|
void resizeToContents();
|
|
void on_scaleChanged(int value);
|
|
};
|
|
|
|
} // namespace CommonDialogs
|
|
} // namespace AppUI
|
|
|
|
#endif // DIALOGCANVASRESIZE_H
|