campo-sirio/src/ba/ba0103.h

54 lines
1.2 KiB
C
Raw Normal View History

#ifndef __BA0103_H
#define __BA0103_H
#ifndef TMenu_tree
#include "ba0102.h"
#endif
///////////////////////////////////////////////////////////
// TOutlook_mask
///////////////////////////////////////////////////////////
class TBook_field;
class TOutlook_mask : public TSpidey_mask
{
TMenu_tree _tree;
TPointer_array _icon;
TString_array _picture;
TString _per_def, _per_tmp;
bool _locked;
TString _last_search;
protected:
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
virtual bool can_be_closed() const;
virtual void on_firm_change();
TBook_field& book_field() const;
short add_page(const TMenuitem& mi);
void set_page_caption(short page, const TString& caption, int icon);
void save_perspective(int per);
void load_perspective(int per);
const TMenu& get_menu() const { return _tree.get_menu(); }
public:
virtual long handler(WINDOW w, EVENT* ep); // Used by E_PROCESS
bool run_child(const TMenuitem& mi); // Used by metro mask
TOutlook_mask(TMenu& menu, bool metro = false);
~TOutlook_mask();
};
class TMetro_mask : public TOutlook_mask
{
public:
TMetro_mask(TMenu& menu);
~TMetro_mask();
};
#endif