cxWidgets 1.0
SpreadsheetApp.h
Go to the documentation of this file.
1#ifndef __SPREADSHEET_APP_H__
2#define __SPREADSHEET_APP_H__
3
4#include "cxGrid.h"
5#include <string>
6
7// -------------------------------------------------------------------
8// Spreadsheet application class
9// -------------------------------------------------------------------
10
12{
13public:
15
16 void run();
17
18private:
19 std::string mCurrentFilePath;
20 int mTermHeight;
21 int mTermWidth;
22 bool mRunning;
23
24 void drawStatusLine();
25
26 void handleMenuAction(long pCode, cx::cxGrid& pGrid);
27
28 void doInsertDate(cx::cxGrid& pGrid);
29
30 void doOpen(cx::cxGrid& pGrid);
31
32 void doSave(cx::cxGrid& pGrid);
33
34 void doSaveAs(cx::cxGrid& pGrid);
35
36 void doClose(cx::cxGrid& pGrid);
37
38 void doHelp();
39
40 void doAbout();
41
42 // Process formulas in the grid after the user finishes editing
43 void processFormulas(cx::cxGrid& pGrid);
44};
45
46
47#endif
Definition SpreadsheetApp.h:12
void run()
Definition SpreadsheetApp.cpp:47
SpreadsheetApp()
Definition SpreadsheetApp.cpp:39
This is a class representing a grid of data, similar to a spreadsheet, with rows & columns of cells w...
Definition cxGrid.h:31