Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[df7dc9]: mainwindow.h Maximize Restore History

Download this file

mainwindow.h    129 lines (103 with data), 4.0 kB

  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
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/***************************************************************************
* Copyright (C) 2011 by Cyril Jacquet *
* terreville@google.com *
* *
* This file is part of Plume Creator. *
* *
* Plume Creator 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 3 of the License, or *
* (at your option) any later version. *
* *
* Plume Creator is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with Plume Creator. If not, see <http://www.gnu.org/licenses/>. *
***************************************************************************/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QtGui/QMainWindow>
#include "menubox.h"
#include "editmenubox.h"
#include "maintree.h"
#include "statsbox.h"
#include "itembox.h"
#include "notezone.h"
#include "texttab.h"
#include "fullscreeneditor.h"
#include "outline.h"
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
protected:
void closeEvent(QCloseEvent* event);
void resizeEvent(QResizeEvent* event);
signals:
void closeSignal();
void openTabTextSignal(QFile *textFile);
void properSaveTabTextSignal(QFile *textFile);
void closeTabTextSignal(QFile *textFile);
void tabWidgetWidth(int value);
void applyConfigSignal();
public slots:
void openProjectSlot(QFile *projectFile);
void closeProjectSlot();
void textSlot(QTextDocument *textDoc = 0, QTextDocument *noteDoc = 0, QTextDocument *synDoc = 0, int cursorPosition = 0, int synCursorPosition = 0, int noteCursorPosition = 0, QString name = "nothing", int number = 0, QString action = "save");
void secondTextSlot(int number = 0, QString action = "nothing");
private slots:
void tabChangeSlot(int tabNum);
void tabCloseRequest(int tabNum);
void closeAllDocsSlot();
void saveAllDocsSlot();
void tabRenamingSlot(QString newName, int tabNum);
void setProjectNumberSlot(int prjNumber);
void editFullscreen();
void launchOutliner();
//config :
void applyConfig();
void configTimer();
void reconnectAFterTabClose();
private:
void createMenuDock();
void createTreeDock();
void createNoteDock();
void createToolDock();
MenuBox *menu;
EditMenuBox *editMenu;
MainTree *mainTree;
QStackedLayout *synLayout;
QStackedLayout *noteLayout;
StatsBox *stats;
ItemBox *items;
QFile *file;
bool m_firstStart;
QTabWidget *tabWidget;
void setTextTabConnections();
QList<QTextDocument *> *textDocList;
QList<QTextDocument *> *noteDocList;
QList<QTextDocument *> *synDocList;
QStringList *nameList;
QList<TextTab *> *textWidgetList;
QList<NoteZone *> *noteWidgetList;
QList<NoteZone *> *synWidgetList;
int objectNum;
QList<int> *tabNumList;
QList<int> *numList;
//settings
void readSettings();
void writeSettings();
int settingNumber;
void autosaveTimer();
bool NoProjectOpened;
int autosaveTime;
QTimer *timer;
void setEditMenuConnections();
FullscreenEditor *fullEditor;
};
#endif // MAINWINDOW_H