tools/drawMapTest/mainwindow.h
author unc0rr
Tue, 07 Dec 2010 22:02:09 +0300
changeset 4477 63a21fac8bf7
parent 4442 f8424e1bc936
permissions -rw-r--r--
Add QAspectRatioLayout borrowed from http://wiki.forum.nokia.com/index.php/CS001309_-_Maintaining_square_form_for_a_widget_in_Qt to maintain width == height * 2 aspect ratio for map drawing widget

#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

namespace Ui {
    class MainWindow;
}

class DrawMapScene;

class MainWindow : public QMainWindow {
    Q_OBJECT
public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();

protected:
    void changeEvent(QEvent *e);

private:
    Ui::MainWindow *ui;
    DrawMapScene * scene;

private slots:
    void on_pbLoad_clicked();
    void on_pbSave_clicked();
    void scene_pathChanged();
};

#endif // MAINWINDOW_H