Added BSD license information and disclaimers.
[ImageView.git] / include / ImageViewWindow.hh
blobf64686d6abc8995d9a547fedede6352e3ea2750a
1 /* Copyright (c) 2007, Pekka Kaitaniemi
3 * All rights reserved.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in
14 * the documentation and/or other materials provided with the
15 * distribution.
17 * 3. The name of the author may not be used to endorse or promote
18 * products derived from this software without specific prior written
19 * permission.
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
27 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 * SERVICES; LOSS OF USE, DATA, OR ROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
30 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
32 * OF THE POSSIBILITY OF SUCH DAMAGE.
36 #ifndef ImageViewWindow_hh
37 #define ImageViewWindow_hh 1
39 #include <QMainWindow>
40 #include <QWidget>
42 #include "ui_ImageViewWindow.h"
44 #include "ImageObject.hh"
46 class ImageViewWindow : public QMainWindow, private Ui_ImageViewWindow
48 Q_OBJECT
50 public:
51 ImageViewWindow(QWidget *parent = 0);
53 public slots:
54 void openImageFile();
55 void loadImage(QString fileName);
56 void zoomIn();
57 void zoomOut();
59 private:
60 QImage image;
61 ImageObject imgObj;
65 #endif