You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qtmindmap/mainwindow.h

43 lines
844 B

14 years ago
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QSystemTrayIcon>
#include "graphwidget.h"
14 years ago
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
14 years ago
~MainWindow();
QStatusBar * getStatusBar();
14 years ago
QString getFileName() { return m_fileName; }
14 years ago
void openFile(QString fileName);
void enableSave(const bool &enable = true);
void enableSaveAs(const bool &enable = true);
void enableCloseFile(const bool &enable = true);
void setTitle(const QString &title);
// void setModifiedTitle(const bool &modified = true);
14 years ago
public slots:
14 years ago
void exportScene();
void about();
14 years ago
private:
Ui::MainWindow *m_ui;
GraphWidget *m_graphicsView;
14 years ago
QString m_fileName;
14 years ago
};
#endif // MAINWINDOW_H