cxWidgets
1.0
home
erico
projects
cxWidgets
examples
spreadsheet
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
11
class
SpreadsheetApp
12
{
13
public
:
14
SpreadsheetApp
();
15
16
void
run
();
17
18
private
:
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
SpreadsheetApp
Definition
SpreadsheetApp.h:12
SpreadsheetApp::run
void run()
Definition
SpreadsheetApp.cpp:47
SpreadsheetApp::SpreadsheetApp
SpreadsheetApp()
Definition
SpreadsheetApp.cpp:39
cx::cxGrid
This is a class representing a grid of data, similar to a spreadsheet, with rows & columns of cells w...
Definition
cxGrid.h:31
cxGrid.h
Generated by
1.9.8