1 Star 0 Fork 4

latte79 / spreadsheet

forked from EarlDoss / spreadsheet 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mainwindow.h 1.41 KB
一键复制 编辑 原始数据 按行查看 历史
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
class QLabel;
class Spreadsheet;
class FindDialog;
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void about();
void open();
bool save();
bool saveAs();
void openRecentFile();
void newFile();
void gotoCell();
void updateStatusBar();
void spreadsheetModified();
void find();
void sort();
protected:
void closeEvent(QCloseEvent *event);
private:
void connectActions();
void createStatusBar();
bool okToContinue();
bool loadFile(const QString &fileName);
bool saveFile(const QString &fileName);
void setCurrentFile(const QString &fullFileName);
QString strippedName(const QString &fullFileName);
void readSettings();
void writeSettings();
void createRecentFileActions();
void createRecentFileMenus();
void updateRecentFileActions();
void createContextMenu();
private:
Ui::MainWindow *ui;
QLabel * locationLabel;
QLabel * formulaLabel;
Spreadsheet *spreadsheet;
FindDialog *findDialog;
QString curFile;
enum{MaxRecentFiles=5};
QAction* recentFileActions[MaxRecentFiles];
QAction* separatorAction;
QStringList recentFiles;
};
#endif // MAINWINDOW_H
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/latte79/spreadsheet.git
git@gitee.com:latte79/spreadsheet.git
latte79
spreadsheet
spreadsheet
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891