2008-08-02 18:31:32 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2008 Chris Young <chris@unsatisfactorysoftware.co.uk>
|
|
|
|
*
|
|
|
|
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
|
|
|
*
|
|
|
|
* NetSurf 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; version 2 of the License.
|
|
|
|
*
|
|
|
|
* NetSurf 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 <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef AMIGA_GUI_H
|
|
|
|
#define AMIGA_GUI_H
|
2008-08-09 02:38:13 +04:00
|
|
|
#include <graphics/rastport.h>
|
2008-08-09 19:19:04 +04:00
|
|
|
#include "amiga/object.h"
|
|
|
|
#include <intuition/classusr.h>
|
2008-08-18 23:07:12 +04:00
|
|
|
#include "desktop/browser.h"
|
2008-08-23 20:17:51 +04:00
|
|
|
#include <dos/dos.h>
|
2008-08-09 02:38:13 +04:00
|
|
|
|
2008-08-02 18:31:32 +04:00
|
|
|
void ami_get_msg(void);
|
|
|
|
|
2008-08-09 19:19:04 +04:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
GID_MAIN=0,
|
|
|
|
GID_BROWSER,
|
|
|
|
GID_STATUS,
|
|
|
|
GID_URL,
|
|
|
|
GID_STOP,
|
|
|
|
GID_RELOAD,
|
|
|
|
GID_HOME,
|
|
|
|
GID_BACK,
|
|
|
|
GID_FORWARD,
|
|
|
|
GID_THROBBER,
|
|
|
|
GID_LAST
|
|
|
|
};
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
OID_MAIN=0,
|
2008-08-10 13:57:41 +04:00
|
|
|
OID_VSCROLL,
|
|
|
|
OID_HSCROLL,
|
2008-08-18 23:07:12 +04:00
|
|
|
OID_MENU,
|
2008-08-09 19:19:04 +04:00
|
|
|
OID_LAST
|
|
|
|
};
|
|
|
|
|
2008-08-23 20:17:51 +04:00
|
|
|
struct gui_download_window {
|
|
|
|
struct Window *win;
|
|
|
|
Object *objects[OID_LAST];
|
|
|
|
struct Gadget *gadgets[GID_LAST];
|
|
|
|
struct nsObject *node;
|
|
|
|
bool pad;
|
|
|
|
BPTR fh;
|
|
|
|
uint32 size;
|
|
|
|
uint32 downloaded;
|
|
|
|
};
|
|
|
|
|
2008-08-02 18:31:32 +04:00
|
|
|
struct gui_window {
|
|
|
|
struct Window *win;
|
2008-08-09 19:19:04 +04:00
|
|
|
Object *objects[OID_LAST];
|
|
|
|
struct Gadget *gadgets[GID_LAST];
|
|
|
|
struct nsObject *node;
|
2008-08-23 20:17:51 +04:00
|
|
|
bool redraw_required;
|
|
|
|
struct browser_window *bw;
|
|
|
|
struct BitMap *bm;
|
|
|
|
struct RastPort rp;
|
2008-08-11 21:53:45 +04:00
|
|
|
struct Hook scrollerhook;
|
2008-08-18 23:07:12 +04:00
|
|
|
struct Hook popuphook;
|
|
|
|
struct form_control *control;
|
2008-08-15 21:19:57 +04:00
|
|
|
union content_msg_data *redraw_data;
|
2008-08-18 23:07:12 +04:00
|
|
|
browser_mouse_state mouse_state;
|
2008-08-23 20:17:51 +04:00
|
|
|
int c_x;
|
|
|
|
int c_y;
|
|
|
|
int c_h;
|
2008-08-02 18:31:32 +04:00
|
|
|
};
|
|
|
|
|
2008-08-17 20:22:40 +04:00
|
|
|
//struct gui_window *curwin;
|
2008-08-07 22:44:28 +04:00
|
|
|
struct RastPort *currp;
|
2008-08-17 20:22:40 +04:00
|
|
|
struct TextFont *origrpfont;
|
2008-08-23 20:17:51 +04:00
|
|
|
struct Layer *layer;
|
|
|
|
struct Layer_Info *layerinfo;
|
2008-08-02 18:31:32 +04:00
|
|
|
#endif
|