2008-01-31 14:19:39 +00:00
|
|
|
#ifndef __BA0103_H
|
|
|
|
#define __BA0103_H
|
|
|
|
|
|
|
|
#ifndef TMenu_tree
|
|
|
|
#include "ba0102.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
// TOutlook_mask
|
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
|
2010-02-09 10:08:20 +00:00
|
|
|
class TBook_field;
|
|
|
|
|
2008-01-31 14:19:39 +00:00
|
|
|
class TOutlook_mask : public TSpidey_mask
|
|
|
|
{
|
|
|
|
TMenu_tree _tree;
|
2010-02-09 10:08:20 +00:00
|
|
|
TPointer_array _icon;
|
|
|
|
TString_array _picture;
|
2008-01-31 14:19:39 +00:00
|
|
|
|
2008-09-19 15:40:05 +00:00
|
|
|
TString _per_def, _per_tmp;
|
|
|
|
bool _locked;
|
2008-09-29 14:34:21 +00:00
|
|
|
TString _last_search;
|
2008-09-19 15:40:05 +00:00
|
|
|
|
2008-01-31 14:19:39 +00:00
|
|
|
protected:
|
|
|
|
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
|
2008-10-02 16:03:09 +00:00
|
|
|
virtual bool can_be_closed() const;
|
|
|
|
|
2010-02-09 10:08:20 +00:00
|
|
|
TBook_field& book_field() const;
|
2010-02-15 12:13:00 +00:00
|
|
|
|
2009-01-07 16:44:01 +00:00
|
|
|
short add_page(const TMenuitem& mi);
|
2008-06-13 08:41:37 +00:00
|
|
|
void set_page_caption(short page, const TString& caption, int icon);
|
2008-01-31 14:19:39 +00:00
|
|
|
|
2008-09-19 15:40:05 +00:00
|
|
|
void save_perspective(int per);
|
|
|
|
void load_perspective(int per);
|
|
|
|
|
2008-01-31 14:19:39 +00:00
|
|
|
public:
|
2010-02-09 10:08:20 +00:00
|
|
|
virtual long handler(WINDOW w, EVENT* ep); // Used by E_PROCESS
|
|
|
|
|
2008-01-31 14:19:39 +00:00
|
|
|
TOutlook_mask(TMenu& menu);
|
|
|
|
~TOutlook_mask();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|