Riformattati i ctrl-K
git-svn-id: svn://10.65.10.50/trunk@1728 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
16b36af496
commit
3efc5de8c8
1238
include/array.cpp
1238
include/array.cpp
File diff suppressed because it is too large
Load Diff
3344
include/msksheet.cpp
3344
include/msksheet.cpp
File diff suppressed because it is too large
Load Diff
@ -1,76 +1,76 @@
|
|||||||
#ifndef __MSKSHEET_H
|
#ifndef __MSKSHEET_H
|
||||||
#define __MSKSHEET_H
|
#define __MSKSHEET_H
|
||||||
|
|
||||||
#ifndef __MASK_H
|
#ifndef __MASK_H
|
||||||
#include <mask.h>
|
#include <mask.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class TSheet_field;
|
class TSheet_field;
|
||||||
class TSpreadsheet;
|
class TSpreadsheet;
|
||||||
|
|
||||||
typedef bool (*SPREADSHEET_NOTIFY)(TSheet_field& s, int r, KEY k);
|
typedef bool (*SPREADSHEET_NOTIFY)(TSheet_field& s, int r, KEY k);
|
||||||
typedef TMask* (*SPREADSHEET_GETMASK)( int numriga, TMask& fullmask, bool destroy );
|
typedef TMask* (*SPREADSHEET_GETMASK)( int numriga, TMask& fullmask, bool destroy );
|
||||||
|
|
||||||
|
|
||||||
class TSheet_field : public TMask_field
|
class TSheet_field : public TMask_field
|
||||||
{
|
{
|
||||||
TSpreadsheet* _sheet;
|
TSpreadsheet* _sheet;
|
||||||
TToken_string _head;
|
TToken_string _head;
|
||||||
bool _append;
|
bool _append;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual word class_id() const;
|
virtual word class_id() const;
|
||||||
virtual bool on_hit();
|
virtual bool on_hit();
|
||||||
virtual bool on_key(KEY k);
|
virtual bool on_key(KEY k);
|
||||||
virtual bool test_focus_change();
|
virtual bool test_focus_change();
|
||||||
|
|
||||||
virtual void parse_head(TScanner& scanner);
|
virtual void parse_head(TScanner& scanner);
|
||||||
virtual bool parse_item(TScanner& scanner);
|
virtual bool parse_item(TScanner& scanner);
|
||||||
virtual void create(WINDOW parent);
|
virtual void create(WINDOW parent);
|
||||||
|
|
||||||
virtual void highlight() const;
|
virtual void highlight() const;
|
||||||
virtual void exchange(bool show_value, const real& n);
|
virtual void exchange(bool show_value, const real& n);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TToken_string& row(int n); // Get/Create a new row
|
TToken_string& row(int n); // Get/Create a new row
|
||||||
TString_array& rows_array() const; // Get all rows
|
TString_array& rows_array() const; // Get all rows
|
||||||
const char* cell(int r, int c) { return row(r).get(c); } // Get item c of row r
|
const char* cell(int r, int c) { return row(r).get(c); } // Get item c of row r
|
||||||
|
|
||||||
int first_empty() const; // First empty row
|
int first_empty() const; // First empty row
|
||||||
int items() const; // Number of rows
|
int items() const; // Number of rows
|
||||||
int selected() const; // Number of current row
|
int selected() const; // Number of current row
|
||||||
void select(int r); // Select row r as current
|
void select(int r); // Select row r as current
|
||||||
|
|
||||||
virtual void reset();
|
virtual void reset();
|
||||||
virtual void enable(bool on);
|
virtual void enable(bool on);
|
||||||
|
|
||||||
void on_idle();
|
void on_idle();
|
||||||
|
|
||||||
void destroy(int r = -1); // Destroy row
|
void destroy(int r = -1); // Destroy row
|
||||||
void force_update(int r = -1);// Update data/screen
|
void force_update(int r = -1);// Update data/screen
|
||||||
|
|
||||||
TMask& sheet_mask() const;
|
TMask& sheet_mask() const;
|
||||||
void set_notify(SPREADSHEET_NOTIFY n);
|
void set_notify(SPREADSHEET_NOTIFY n);
|
||||||
void set_getmask(SPREADSHEET_GETMASK n);
|
void set_getmask(SPREADSHEET_GETMASK n);
|
||||||
|
|
||||||
void enable_column(int col, bool on = TRUE);
|
void enable_column(int col, bool on = TRUE);
|
||||||
|
|
||||||
void enable_cell(int row, int column, bool on = TRUE);
|
void enable_cell(int row, int column, bool on = TRUE);
|
||||||
void disable_cell(int row, int column) { enable_cell(row, column, FALSE); }
|
void disable_cell(int row, int column) { enable_cell(row, column, FALSE); }
|
||||||
bool cell_disabled(int row, int column) const;
|
bool cell_disabled(int row, int column) const;
|
||||||
|
|
||||||
void delete_column( const int col ) const;
|
void delete_column( const int col ) const;
|
||||||
void move_column( const int fromindex, const int toindex ) const;
|
void move_column( const int fromindex, const int toindex ) const;
|
||||||
void swap_columns(const int fromid, const int toid) const;
|
void swap_columns(const int fromid, const int toid) const;
|
||||||
void swap_rows( const int fromindex, const int toindex );
|
void swap_rows( const int fromindex, const int toindex );
|
||||||
|
|
||||||
void set_column_width( const int col, const int width ) const;
|
void set_column_width( const int col, const int width ) const;
|
||||||
void set_column_header( const int col, const TString& header ) const;
|
void set_column_header( const int col, const TString& header ) const;
|
||||||
void set_append(bool on = TRUE) { _append = on;}
|
void set_append(bool on = TRUE) { _append = on;}
|
||||||
bool append() const { return _append;}
|
bool append() const { return _append;}
|
||||||
|
|
||||||
TSheet_field(TMask* m);
|
TSheet_field(TMask* m);
|
||||||
virtual ~TSheet_field();
|
virtual ~TSheet_field();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
4256
include/relation.cpp
4256
include/relation.cpp
File diff suppressed because it is too large
Load Diff
2120
include/window.cpp
2120
include/window.cpp
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user