summaryrefslogtreecommitdiffstats
path: root/quanta/dialogs/tagdialogs/pictureview.h
blob: 2ee4cfd0081d9c0e665cb468af8f62c484df85a4 (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
59
60
/***************************************************************************
                          pictureview.h  -  description
                             -------------------
    begin                : Mon Nov 29 1999
    copyright            : (C) 1999 by Dmitry Poplavsky & Yacovlev Alexander
    email                : pdima@mail.univ.kiev.ua
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef PICTUREVIEW_H
#define PICTUREVIEW_H

#include <tqwidget.h>
#include <tqframe.h>
class TQImage;

/**Class for images preview
used by TagImgDlg
  *@author Dmitry Poplavsky & Yacovlev Alexander
  */

class PictureView : public TQFrame  {
   Q_OBJECT
  
public:
  PictureView(TQWidget *parent=0, char *file=0, const char *name=0);
  /** try scale  image */
  void scale();
public slots: // Public slots
  /** set image */
  void slotSetImage(const TQString& file);
protected: // Protected methods
  /**  */
  virtual void resizeEvent ( TQResizeEvent *  e);
  ~PictureView();

protected:
  virtual void paintEvent( TQPaintEvent * );

private: // Private attributes
  /** height of image */
  int picheight;
  int x_of;
private: // Private attributes
  /** width of image */
  int picwidth;
  int y_of;

  TQImage *pix;
};

#endif