/*
* Seven Kingdoms: Ancient Adversaries
*
* Copyright 1997,1998 Enlight Software Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
*/
//Filename : OBOX.H
//Description : Header file of button object
#ifndef __OBOX_H
#define __OBOX_H
#ifndef __ALL_H
#include
#endif
#ifndef __OBUTTON_H
#include
#endif
//------- constant for arrow box ----------//
enum { ARROW_BOX_WIDTH = 390,
ARROW_BOX_X_MARGIN = 15,
ARROW_BOX_Y_MARGIN = 15,
ARROW_BOX_TITLE_HEIGHT = 20,
ARROW_BOX_LINE_SPACE = 4 };
//--------- Define class Box ------------//
class Box
{
public:
int box_x1, box_y1, box_x2, box_y2;
int arrow_x, arrow_y;
int save_scr_flag;
static char opened_flag;
public:
// ready to use one-step call functions
int ask(char*, char* =NULL, char* =NULL, int= -1, int= -1);
void msg(char* msgStr, int enableTimeOut=1, int x1= -1, int y1= -1);
void print(char*, ... );
void tell(char*,int= -1, int= -1);
// lower level box control functions
void open(int,int,int,int,int=1);
void open(int,int,int=1);
void paint(int);
void close();
void calc_size(char*,int,int= -1, int= -1);
int ask_button(char* =NULL,char* =NULL,int=1);
void ask_button(Button&,Button&,char* =NULL,char* =NULL);
void ok_button(int=1);
// arrow box
void arrow_box(char*, char* =NULL, int=1);
void close_arrow_box();
void calc_arrow_box(char*, int, int, int=0);
void calc_arrow_box(int, int, int, int);
void draw_arrow();
};
extern Box box;
//----------------------------------------------//
#endif