blob: 300c92ae53b3cde4144beaeec865716a20dbc85c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#ifndef IMAGEINFO_H
#define IMAGEINFO_H
#include <qvariant.h>
#include <qwidget.h>
#include <qdialog.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QFrame;
class QLabel;
class QTextView;
class imageinfo : public QWidget
{
Q_OBJECT
public:
imageinfo( QWidget* parent = 0, const char* name = 0, WFlags fl =0);
imageinfo(const QString&_path, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~imageinfo();
void setDestructiveClose();
public slots:
void setPath( const QString& path );
private:
void init(const char* name);
protected:
QLabel* PixmapLabel1;
QLabel* fnameLabel;
QFrame* Line1;
QTextView* TextView1;
protected:
QVBoxLayout* imageinfoLayout;
QString currentFile;
protected slots:
virtual void slot_fullInfo(const QString&, const QString&);
virtual void slotThumbNail(const QString&, const QPixmap&);
virtual void slotChangeName(const QString&);
};
/* for testing purpose */
class infoDlg:public QDialog
{
Q_OBJECT
public:
infoDlg(const QString&,QWidget * parent=0, const char * name=0);
virtual ~infoDlg();
};
#endif // IMAGEINFO_H
|