first commit
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
#ifndef IMAGELOADER_H
|
||||
#define IMAGELOADER_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QString>
|
||||
|
||||
namespace Ui {
|
||||
class ImageLoader;
|
||||
}
|
||||
|
||||
class ImageLoader : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ImageLoader(QWidget *parent = 0);
|
||||
~ImageLoader();
|
||||
|
||||
QString imgPath();
|
||||
|
||||
bool horizontalMirror();
|
||||
|
||||
bool verticalMirror();
|
||||
|
||||
void initAndShow(bool fullScreen = false);
|
||||
|
||||
signals:
|
||||
void accepted();
|
||||
|
||||
private slots:
|
||||
void onFilenameCBoxIndexChanged(int i);
|
||||
|
||||
void onRootPathCBoxIndexChanged(int i);
|
||||
|
||||
void onOkBtnClicked();
|
||||
|
||||
private:
|
||||
|
||||
enum FromWhere{
|
||||
SYSTEM,
|
||||
UDISK
|
||||
};
|
||||
|
||||
void updateFileList(FromWhere where);
|
||||
|
||||
Ui::ImageLoader *ui;
|
||||
QImage m_img;
|
||||
QString m_imgPath;
|
||||
bool m_isHorMirror = false;
|
||||
bool m_isVerMirror = false;
|
||||
};
|
||||
|
||||
#endif // IMAGELOADER_H
|
||||
Reference in New Issue
Block a user