/* * Qt demo for CS2141 - Software Development Using C/C++ - Spring 2010 * Developed by Paul Bonamy * Based in part on sample code provided by Nokia and Trolltech * * Header file for the the MainWindow class * * Works by extending the QMainWindow class to provide extra functionality */ #ifndef MAINWINDOW_H #define MAINWINDOW_H #include // ui_mainwindow.h will be created during compilation from the mainwindow.ui #include "ui_mainwindow.h" class MainWindow : public QMainWindow { // we need to implement some slots, so we need the Q_OBJECT directive Q_OBJECT public: MainWindow(); // default constructor private slots: // the Designer can't provide custom slots, so we have to build them void newFile(); void open(); void save(); private: // the Designer gives us a class that does all of the building work // so we need an object of type Ui::MainWindow Ui::MainWindow ui; }; #endif