2004-03-25 16:36:29 +00:00
|
|
|
#ifndef __MASKFLD_H
|
|
|
|
#include <maskfld.h>
|
|
|
|
#endif
|
2004-03-15 15:41:18 +00:00
|
|
|
|
2004-03-25 16:36:29 +00:00
|
|
|
#ifndef __TREE_H
|
|
|
|
#include <tree.h>
|
2004-03-15 15:41:18 +00:00
|
|
|
#endif
|
|
|
|
|
2004-03-25 16:36:29 +00:00
|
|
|
#ifndef __REPORT_H
|
|
|
|
#include "ba8302.h"
|
2004-03-15 15:41:18 +00:00
|
|
|
#endif
|
|
|
|
|
2004-03-23 16:39:40 +00:00
|
|
|
///////////////////////////////////////////////////////////
|
2004-03-25 16:36:29 +00:00
|
|
|
// TReport_tree
|
2004-03-23 16:39:40 +00:00
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
|
2004-03-25 16:36:29 +00:00
|
|
|
class TReport_tree : public TBidirectional_tree
|
2004-03-15 15:41:18 +00:00
|
|
|
{
|
2004-03-23 16:39:40 +00:00
|
|
|
TReport& _report;
|
2004-03-25 16:36:29 +00:00
|
|
|
TString4 _curr;
|
2004-03-15 15:41:18 +00:00
|
|
|
|
2004-03-18 14:35:38 +00:00
|
|
|
protected:
|
2004-03-25 16:36:29 +00:00
|
|
|
virtual bool get_description(TString& str) const;
|
|
|
|
virtual TImage* image(bool selected) const;
|
|
|
|
virtual void node2id(const TObject* node, TString& id) const;
|
2004-03-18 14:35:38 +00:00
|
|
|
|
2004-03-15 15:41:18 +00:00
|
|
|
public:
|
2004-03-25 16:36:29 +00:00
|
|
|
virtual bool goto_root();
|
|
|
|
virtual bool goto_firstson();
|
|
|
|
virtual bool goto_rbrother();
|
|
|
|
virtual bool goto_node(const TString &id);
|
|
|
|
virtual bool has_son() const;
|
|
|
|
virtual bool has_rbrother() const;
|
|
|
|
virtual TObject* curr_node() const { return (TObject*)&_curr; }
|
|
|
|
|
|
|
|
virtual bool has_root() const;
|
|
|
|
virtual bool has_father() const;
|
|
|
|
virtual bool has_lbrother() const;
|
|
|
|
virtual bool goto_father();
|
|
|
|
virtual bool goto_lbrother();
|
|
|
|
|
|
|
|
TReport_section& curr_section() const;
|
|
|
|
bool goto_node(char type, int level);
|
|
|
|
|
|
|
|
int image_height() const;
|
|
|
|
TReport_tree(TReport& r) : _report(r) { goto_root(); }
|
2004-03-15 15:41:18 +00:00
|
|
|
};
|
|
|
|
|
2004-03-25 16:36:29 +00:00
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// TReport_drawer
|
|
|
|
///////////////////////////////////////////////////////////
|
2004-03-15 15:41:18 +00:00
|
|
|
|
2004-03-25 16:36:29 +00:00
|
|
|
class TReport_drawer : public TWindowed_field
|
2004-03-15 15:41:18 +00:00
|
|
|
{
|
|
|
|
protected:
|
2004-03-25 16:36:29 +00:00
|
|
|
virtual TField_window* create_window(int x, int y, int dx, int dy, WINDOW parent);
|
2004-03-15 15:41:18 +00:00
|
|
|
|
|
|
|
public:
|
2004-03-25 16:36:29 +00:00
|
|
|
void set_report(TReport* rep);
|
|
|
|
TReport_drawer(TMask* m) : TWindowed_field(m) { }
|
2004-03-15 15:41:18 +00:00
|
|
|
};
|