| home
| contents
| previous
| next page
| send comment
| send link
| add bookmark |
Textview.h
/*---------------------------------------------------------------------------------*
* "textview.h"
*
* Declarations for the textview class. These provide for user input and
* the display of spreadsheet data.
*
* Stephen R. Schmitt
*
* January 1999
*/
#ifndef TEXTVIEW_H
#define TEXTVIEW_H
#include <curses.h>
#include <string.h>
#include <ctype.h>
#include "scalc.h"
#include "calculator.h"
class textview
{
public:
textview();
~textview();
void run();
void spreadsheet( calculator *c ) { ss = c; };
private:
void update_cells();
void move_up();
void move_left();
void move_down();
void move_right();
void enter_cell();
void leave_cell();
void show_cell( int, int );
void show_cell_contents( int, int );
void cell_message( int, int );
void edit_cell_contents();
bool function_menu( int );
bool set_filename();
bool fn_quit();
void fn_save();
void fn_load();
void fn_clear();
void fn_recalc();
void put_string( int, int, char * );
void clear_to_eol( int, int );
void grid();
calculator *ss;
int Xpos( int x ) { return 4 + 15 * x; }
int Ypos( int y ) { return 5 + 2 * y; }
int CX, CY;
bool auto_calc; // automatic calculation flag
};
#endif
| home
| contents
| previous
| next page
| send comment
| send link
| add bookmark |
Copyright © 2004, Stephen R. Schmitt