parent
cd21f4035f
commit
39e5c04da7
|
@ -21,15 +21,16 @@
|
||||||
#include "desktop/selection.h"
|
#include "desktop/selection.h"
|
||||||
#include "desktop/textinput.h"
|
#include "desktop/textinput.h"
|
||||||
|
|
||||||
#include "amiga/clipboard.h"
|
|
||||||
#include "amiga/iff_cset.h"
|
|
||||||
#include "amiga/options.h"
|
|
||||||
#include "amiga/gui.h"
|
|
||||||
#include "amiga/utf8.h"
|
|
||||||
#include "amiga/bitmap.h"
|
#include "amiga/bitmap.h"
|
||||||
|
#include "amiga/clipboard.h"
|
||||||
|
#include "amiga/drag.h"
|
||||||
|
#include "amiga/filetype.h"
|
||||||
|
#include "amiga/gui.h"
|
||||||
|
#include "amiga/iff_cset.h"
|
||||||
#include "amiga/iff_dr2d.h"
|
#include "amiga/iff_dr2d.h"
|
||||||
#include "amiga/menu.h"
|
#include "amiga/menu.h"
|
||||||
#include "amiga/drag.h"
|
#include "amiga/options.h"
|
||||||
|
#include "amiga/utf8.h"
|
||||||
|
|
||||||
#include <proto/iffparse.h>
|
#include <proto/iffparse.h>
|
||||||
#include <proto/intuition.h>
|
#include <proto/intuition.h>
|
||||||
|
@ -146,7 +147,8 @@ void gui_paste_from_clipboard(struct gui_window *g, int x, int y)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
utf8_from_enc(readbuf,
|
utf8_from_enc(readbuf,
|
||||||
ObtainCharsetInfo(DFCS_NUMBER, cset.CodeSet, DFCS_MIMENAME),
|
(const char *)ObtainCharsetInfo(DFCS_NUMBER,
|
||||||
|
cset.CodeSet, DFCS_MIMENAME),
|
||||||
rlen, &clip);
|
rlen, &clip);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -346,7 +348,7 @@ void ami_drag_selection(struct selection *s)
|
||||||
x = gwin->win->MouseX;
|
x = gwin->win->MouseX;
|
||||||
y = gwin->win->MouseY;
|
y = gwin->win->MouseY;
|
||||||
|
|
||||||
if(text_box = ami_text_box_at_point(gwin, &x, &y))
|
if(text_box = ami_text_box_at_point(gwin, (ULONG *)&x, (ULONG *)&y))
|
||||||
{
|
{
|
||||||
ami_utf8_clipboard = true;
|
ami_utf8_clipboard = true;
|
||||||
|
|
||||||
|
@ -419,7 +421,7 @@ bool ami_easy_clipboard_bitmap(struct bitmap *bitmap)
|
||||||
#ifdef WITH_NS_SVG
|
#ifdef WITH_NS_SVG
|
||||||
bool ami_easy_clipboard_svg(struct hlcache_handle *c)
|
bool ami_easy_clipboard_svg(struct hlcache_handle *c)
|
||||||
{
|
{
|
||||||
char *source_data;
|
const char *source_data;
|
||||||
ULONG source_size;
|
ULONG source_size;
|
||||||
|
|
||||||
if(ami_mime_compare(c, "svg") == false) return false;
|
if(ami_mime_compare(c, "svg") == false) return false;
|
||||||
|
|
|
@ -418,7 +418,7 @@ static uint32 ami_context_menu_hook(struct Hook *hook,Object *item,APTR reserved
|
||||||
APTR userdata = NULL;
|
APTR userdata = NULL;
|
||||||
struct browser_window *bw;
|
struct browser_window *bw;
|
||||||
struct hlcache_handle *object;
|
struct hlcache_handle *object;
|
||||||
char *source_data;
|
const char *source_data;
|
||||||
ULONG source_size;
|
ULONG source_size;
|
||||||
struct bitmap *bm;
|
struct bitmap *bm;
|
||||||
|
|
||||||
|
@ -440,7 +440,7 @@ static uint32 ami_context_menu_hook(struct Hook *hook,Object *item,APTR reserved
|
||||||
char fname[1024];
|
char fname[1024];
|
||||||
int x,y;
|
int x,y;
|
||||||
|
|
||||||
strlcpy(&fname,filereq->fr_Drawer,1024);
|
strlcpy(fname,filereq->fr_Drawer,1024);
|
||||||
AddPart(fname,filereq->fr_File,1024);
|
AddPart(fname,filereq->fr_File,1024);
|
||||||
|
|
||||||
if(utf8_from_local_encoding(fname,0,&utf8_fn) != UTF8_CONVERT_OK)
|
if(utf8_from_local_encoding(fname,0,&utf8_fn) != UTF8_CONVERT_OK)
|
||||||
|
@ -490,8 +490,8 @@ static uint32 ami_context_menu_hook(struct Hook *hook,Object *item,APTR reserved
|
||||||
object = (struct hlcache_handle *)userdata;
|
object = (struct hlcache_handle *)userdata;
|
||||||
if((bm = content_get_bitmap(object)))
|
if((bm = content_get_bitmap(object)))
|
||||||
{
|
{
|
||||||
bm->url = content_get_url(object);
|
bm->url = (char *)content_get_url(object);
|
||||||
bm->title = content_get_title(object);
|
bm->title = (char *)content_get_title(object);
|
||||||
ami_easy_clipboard_bitmap(bm);
|
ami_easy_clipboard_bitmap(bm);
|
||||||
}
|
}
|
||||||
#ifdef WITH_NS_SVG
|
#ifdef WITH_NS_SVG
|
||||||
|
@ -513,7 +513,7 @@ static uint32 ami_context_menu_hook(struct Hook *hook,Object *item,APTR reserved
|
||||||
{
|
{
|
||||||
BPTR fh = 0;
|
BPTR fh = 0;
|
||||||
char fname[1024];
|
char fname[1024];
|
||||||
strlcpy(&fname,savereq->fr_Drawer,1024);
|
strlcpy(fname,savereq->fr_Drawer,1024);
|
||||||
AddPart(fname,savereq->fr_File,1024);
|
AddPart(fname,savereq->fr_File,1024);
|
||||||
ami_update_pointer(gwin->win,GUI_POINTER_WAIT);
|
ami_update_pointer(gwin->win,GUI_POINTER_WAIT);
|
||||||
|
|
||||||
|
@ -545,12 +545,12 @@ static uint32 ami_context_menu_hook(struct Hook *hook,Object *item,APTR reserved
|
||||||
BPTR fh = 0;
|
BPTR fh = 0;
|
||||||
char fname[1024];
|
char fname[1024];
|
||||||
|
|
||||||
strlcpy(&fname,savereq->fr_Drawer,1024);
|
strlcpy(fname,savereq->fr_Drawer,1024);
|
||||||
AddPart(fname,savereq->fr_File,1024);
|
AddPart(fname,savereq->fr_File,1024);
|
||||||
if((bm = content_get_bitmap(object)))
|
if((bm = content_get_bitmap(object)))
|
||||||
{
|
{
|
||||||
bm->url = content_get_url(object);
|
bm->url = (char *)content_get_url(object);
|
||||||
bm->title = content_get_title(object);
|
bm->title = (char *)content_get_title(object);
|
||||||
if(bitmap_save(bm, fname, 0))
|
if(bitmap_save(bm, fname, 0))
|
||||||
SetComment(fname, content_get_url(object));
|
SetComment(fname, content_get_url(object));
|
||||||
}
|
}
|
||||||
|
|
10
amiga/drag.c
10
amiga/drag.c
|
@ -58,7 +58,7 @@ BOOL drag_in_progress = FALSE;
|
||||||
void gui_drag_save_object(gui_save_type type, hlcache_handle *c,
|
void gui_drag_save_object(gui_save_type type, hlcache_handle *c,
|
||||||
struct gui_window *g)
|
struct gui_window *g)
|
||||||
{
|
{
|
||||||
char *filetype;
|
const char *filetype;
|
||||||
|
|
||||||
if(strcmp(option_use_pubscreen,"Workbench")) return;
|
if(strcmp(option_use_pubscreen,"Workbench")) return;
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ void ami_drag_save(struct Window *win)
|
||||||
{
|
{
|
||||||
ULONG which = WBO_NONE,type;
|
ULONG which = WBO_NONE,type;
|
||||||
char path[1025],dpath[1025];
|
char path[1025],dpath[1025];
|
||||||
char *source_data;
|
const char *source_data;
|
||||||
ULONG source_size;
|
ULONG source_size;
|
||||||
|
|
||||||
ami_drag_icon_close(NULL);
|
ami_drag_icon_close(NULL);
|
||||||
|
@ -205,8 +205,8 @@ void ami_drag_save(struct Window *win)
|
||||||
AddPart(path, content_get_title(c), 1024);
|
AddPart(path, content_get_title(c), 1024);
|
||||||
if(bm = content_get_bitmap(c))
|
if(bm = content_get_bitmap(c))
|
||||||
{
|
{
|
||||||
bm->url = content_get_url(c);
|
bm->url = (char *)content_get_url(c);
|
||||||
bm->title = content_get_title(c);
|
bm->title = (char *)content_get_title(c);
|
||||||
if(bitmap_save(bm, path, 0))
|
if(bitmap_save(bm, path, 0))
|
||||||
SetComment(path, content_get_url(c));
|
SetComment(path, content_get_url(c));
|
||||||
}
|
}
|
||||||
|
@ -230,7 +230,7 @@ void ami_drag_save(struct Window *win)
|
||||||
ami_update_pointer(win,GUI_POINTER_DEFAULT);
|
ami_update_pointer(win,GUI_POINTER_DEFAULT);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ami_drag_icon_show(struct Window *win, char *type)
|
void ami_drag_icon_show(struct Window *win, const char *type)
|
||||||
{
|
{
|
||||||
struct DiskObject *dobj = NULL;
|
struct DiskObject *dobj = NULL;
|
||||||
ULONG *icondata1;
|
ULONG *icondata1;
|
||||||
|
|
|
@ -27,7 +27,7 @@ void *drag_save_data;
|
||||||
struct gui_window *drag_save_gui;
|
struct gui_window *drag_save_gui;
|
||||||
|
|
||||||
void ami_drag_save(struct Window *win);
|
void ami_drag_save(struct Window *win);
|
||||||
void ami_drag_icon_show(struct Window *win, char *type);
|
void ami_drag_icon_show(struct Window *win, const char *type);
|
||||||
void ami_drag_icon_close(struct Window *win);
|
void ami_drag_icon_close(struct Window *win);
|
||||||
void ami_drag_icon_move(void);
|
void ami_drag_icon_move(void);
|
||||||
BOOL ami_drag_in_progress(void);
|
BOOL ami_drag_in_progress(void);
|
||||||
|
|
30
amiga/gui.c
30
amiga/gui.c
|
@ -165,8 +165,6 @@ void ami_get_vscroll_pos(struct gui_window_2 *gwin, ULONG *ys);
|
||||||
ULONG ami_set_border_gadget_balance(struct gui_window_2 *gwin);
|
ULONG ami_set_border_gadget_balance(struct gui_window_2 *gwin);
|
||||||
ULONG ami_get_border_gadget_balance(struct gui_window_2 *gwin, ULONG *size1, ULONG *size2);
|
ULONG ami_get_border_gadget_balance(struct gui_window_2 *gwin, ULONG *size1, ULONG *size2);
|
||||||
void ami_try_quit(void);
|
void ami_try_quit(void);
|
||||||
void ami_do_redraw_limits(struct gui_window *g, struct browser_window *bw,
|
|
||||||
int x0, int y0, int x1, int y1);
|
|
||||||
Object *ami_gui_splash_open(void);
|
Object *ami_gui_splash_open(void);
|
||||||
void ami_gui_splash_close(Object *win_obj);
|
void ami_gui_splash_close(Object *win_obj);
|
||||||
|
|
||||||
|
@ -207,7 +205,7 @@ STRPTR ami_locale_langs(void)
|
||||||
return acceptlangs;
|
return acceptlangs;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ami_locate_resource(char *lang, char *file)
|
bool ami_locate_resource(char *lang, const char *file)
|
||||||
{
|
{
|
||||||
struct Locale *locale;
|
struct Locale *locale;
|
||||||
int i;
|
int i;
|
||||||
|
@ -622,7 +620,7 @@ static void gui_init2(int argc, char** argv)
|
||||||
|
|
||||||
if(rarray[A_URL])
|
if(rarray[A_URL])
|
||||||
{
|
{
|
||||||
temp_homepage_url = (char *)strdup(rarray[A_URL]);
|
temp_homepage_url = (char *)strdup((char *)rarray[A_URL]);
|
||||||
|
|
||||||
if(notalreadyrunning)
|
if(notalreadyrunning)
|
||||||
{
|
{
|
||||||
|
@ -1331,7 +1329,7 @@ void ami_handle_msg(void)
|
||||||
(ULONG *)&storage);
|
(ULONG *)&storage);
|
||||||
if(search_is_url((char *)storage) == false)
|
if(search_is_url((char *)storage) == false)
|
||||||
{
|
{
|
||||||
storage = (ULONG *)search_web_from_term((char *)storage);
|
storage = (ULONG)search_web_from_term((char *)storage);
|
||||||
}
|
}
|
||||||
|
|
||||||
browser_window_go(gwin->bw,(char *)storage, NULL, true);
|
browser_window_go(gwin->bw,(char *)storage, NULL, true);
|
||||||
|
@ -1346,7 +1344,7 @@ void ami_handle_msg(void)
|
||||||
GetAttr(STRINGA_TextVal,
|
GetAttr(STRINGA_TextVal,
|
||||||
(Object *)gwin->objects[GID_SEARCHSTRING],
|
(Object *)gwin->objects[GID_SEARCHSTRING],
|
||||||
(ULONG *)&storage);
|
(ULONG *)&storage);
|
||||||
storage = (ULONG *)search_web_from_term((char *)storage);
|
storage = (ULONG)search_web_from_term((char *)storage);
|
||||||
|
|
||||||
browser_window_go(gwin->bw,(char *)storage, NULL, true);
|
browser_window_go(gwin->bw,(char *)storage, NULL, true);
|
||||||
break;
|
break;
|
||||||
|
@ -1630,8 +1628,8 @@ void ami_handle_msg(void)
|
||||||
if(!bm) bm = content_get_bitmap(gwin->bw->current_content);
|
if(!bm) bm = content_get_bitmap(gwin->bw->current_content);
|
||||||
gwin->dobj = amiga_icon_from_bitmap(bm);
|
gwin->dobj = amiga_icon_from_bitmap(bm);
|
||||||
HideWindow(gwin->win);
|
HideWindow(gwin->win);
|
||||||
gwin->appicon = AddAppIcon(gwin->objects[OID_MAIN], NULL,
|
gwin->appicon = AddAppIcon((ULONG)gwin->objects[OID_MAIN], 0,
|
||||||
gwin->win->Title, appport, NULL,
|
gwin->win->Title, appport, 0,
|
||||||
gwin->dobj, NULL);
|
gwin->dobj, NULL);
|
||||||
|
|
||||||
curbw = NULL;
|
curbw = NULL;
|
||||||
|
@ -1889,7 +1887,8 @@ void ami_handle_applib(void)
|
||||||
|
|
||||||
case APPLIBMT_OpenDoc:
|
case APPLIBMT_OpenDoc:
|
||||||
{
|
{
|
||||||
struct ApplicationOpenPrintDocMsg *applibopdmsg = applibmsg;
|
struct ApplicationOpenPrintDocMsg *applibopdmsg =
|
||||||
|
(struct ApplicationOpenPrintDocMsg *)applibmsg;
|
||||||
char *tempurl;
|
char *tempurl;
|
||||||
|
|
||||||
tempurl = path_to_url(applibopdmsg->fileName);
|
tempurl = path_to_url(applibopdmsg->fileName);
|
||||||
|
@ -1923,7 +1922,8 @@ void ami_handle_applib(void)
|
||||||
|
|
||||||
case APPLIBMT_CustomMsg:
|
case APPLIBMT_CustomMsg:
|
||||||
{
|
{
|
||||||
struct ApplicationCustomMsg *applibcustmsg = applibmsg;
|
struct ApplicationCustomMsg *applibcustmsg =
|
||||||
|
(struct ApplicationCustomMsg *)applibmsg;
|
||||||
// STRPTR tempmsg;
|
// STRPTR tempmsg;
|
||||||
// if(tempmsg = ASPrintf("\"%s\"",applibcustmsg->customMsg))
|
// if(tempmsg = ASPrintf("\"%s\"",applibcustmsg->customMsg))
|
||||||
// {
|
// {
|
||||||
|
@ -1970,9 +1970,9 @@ void ami_get_msg(void)
|
||||||
|
|
||||||
if(signal & schedulesig)
|
if(signal & schedulesig)
|
||||||
{
|
{
|
||||||
if(timermsg = GetMsg(msgport))
|
if(timermsg = (struct TimerRequest *)GetMsg(msgport))
|
||||||
{
|
{
|
||||||
ReplyMsg(timermsg);
|
ReplyMsg((struct Message *)timermsg);
|
||||||
schedule_run(FALSE);
|
schedule_run(FALSE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2868,7 +2868,7 @@ struct gui_window *gui_create_browser_window(struct browser_window *bw,
|
||||||
sz = ami_get_border_gadget_balance(gwin->shared,
|
sz = ami_get_border_gadget_balance(gwin->shared,
|
||||||
(ULONG *)&size1, (ULONG *)&size2);
|
(ULONG *)&size1, (ULONG *)&size2);
|
||||||
|
|
||||||
gwin->shared->objects[GID_HSCROLL] = (struct Gadget *)NewObject(
|
gwin->shared->objects[GID_HSCROLL] = NewObject(
|
||||||
NULL,
|
NULL,
|
||||||
"scrollergclass",
|
"scrollergclass",
|
||||||
GA_ID, GID_HSCROLL,
|
GA_ID, GID_HSCROLL,
|
||||||
|
@ -2885,7 +2885,7 @@ struct gui_window *gui_create_browser_window(struct browser_window *bw,
|
||||||
GetAttr(GA_Height, (Object *)gwin->shared->objects[GID_HSCROLL],
|
GetAttr(GA_Height, (Object *)gwin->shared->objects[GID_HSCROLL],
|
||||||
(ULONG *)&sz);
|
(ULONG *)&sz);
|
||||||
|
|
||||||
gwin->shared->objects[GID_STATUS] = (struct Gadget *)NewObject(
|
gwin->shared->objects[GID_STATUS] = NewObject(
|
||||||
NULL,
|
NULL,
|
||||||
"frbuttonclass",
|
"frbuttonclass",
|
||||||
GA_ID, GID_STATUS,
|
GA_ID, GID_STATUS,
|
||||||
|
@ -3761,7 +3761,7 @@ void gui_window_set_search_ico(hlcache_handle *ico)
|
||||||
/* generic search image */
|
/* generic search image */
|
||||||
if(bm == NULL)
|
if(bm == NULL)
|
||||||
{
|
{
|
||||||
ami_get_theme_filename(&fname, "theme_search", false);
|
ami_get_theme_filename(fname, "theme_search", false);
|
||||||
if(nsbm = ami_bitmap_from_datatype(fname))
|
if(nsbm = ami_bitmap_from_datatype(fname))
|
||||||
{
|
{
|
||||||
bm = ami_getcachenativebm(nsbm, 16, 16, NULL);
|
bm = ami_getcachenativebm(nsbm, 16, 16, NULL);
|
||||||
|
|
|
@ -238,7 +238,7 @@ BOOL ami_history_event(struct history_window *hw)
|
||||||
ULONG class,result,relevent = 0;
|
ULONG class,result,relevent = 0;
|
||||||
uint16 code;
|
uint16 code;
|
||||||
struct MenuItem *item;
|
struct MenuItem *item;
|
||||||
char *url;
|
const char *url;
|
||||||
struct IBox *bbox;
|
struct IBox *bbox;
|
||||||
ULONG xs, ys;
|
ULONG xs, ys;
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,8 @@ void addcolour(ULONG newcol)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ami_svg_to_dr2d(struct IFFHandle *iffh,char *buffer, uint32 size, char *url)
|
bool ami_svg_to_dr2d(struct IFFHandle *iffh, const char *buffer,
|
||||||
|
uint32 size, const char *url)
|
||||||
{
|
{
|
||||||
struct svgtiny_diagram *diagram;
|
struct svgtiny_diagram *diagram;
|
||||||
svgtiny_code code;
|
svgtiny_code code;
|
||||||
|
@ -304,7 +305,7 @@ bool ami_svg_to_dr2d(struct IFFHandle *iffh,char *buffer, uint32 size, char *url
|
||||||
bool ami_save_svg(struct hlcache_handle *c,char *filename)
|
bool ami_save_svg(struct hlcache_handle *c,char *filename)
|
||||||
{
|
{
|
||||||
struct IFFHandle *iffh;
|
struct IFFHandle *iffh;
|
||||||
char *source_data;
|
const char *source_data;
|
||||||
ULONG source_size;
|
ULONG source_size;
|
||||||
|
|
||||||
if(!ami_download_check_overwrite(filename, NULL)) return false;
|
if(!ami_download_check_overwrite(filename, NULL)) return false;
|
||||||
|
|
|
@ -98,7 +98,8 @@ struct dash_struct {
|
||||||
// IEEE Dashes[NumDashes]; /* On-off pattern */
|
// IEEE Dashes[NumDashes]; /* On-off pattern */
|
||||||
};
|
};
|
||||||
|
|
||||||
bool ami_svg_to_dr2d(struct IFFHandle *iffh, char *buffer, uint32 size, char *url);
|
bool ami_svg_to_dr2d(struct IFFHandle *iffh, const char *buffer,
|
||||||
|
uint32 size, const char *url);
|
||||||
#ifndef AMIGA_DR2D_STANDALONE
|
#ifndef AMIGA_DR2D_STANDALONE
|
||||||
bool ami_save_svg(struct hlcache_handle *c, char *filename);
|
bool ami_save_svg(struct hlcache_handle *c, char *filename);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -143,8 +143,8 @@ void ami_search_open(struct gui_window *gwin)
|
||||||
WINDOW_IconifyGadget, FALSE,
|
WINDOW_IconifyGadget, FALSE,
|
||||||
WINDOW_LockHeight,TRUE,
|
WINDOW_LockHeight,TRUE,
|
||||||
WINDOW_Position, WPOS_CENTERSCREEN,
|
WINDOW_Position, WPOS_CENTERSCREEN,
|
||||||
WINDOW_ParentGroup, fwin->gadgets[GID_MAIN] = VGroupObject,
|
WINDOW_ParentGroup, fwin->objects[GID_MAIN] = VGroupObject,
|
||||||
LAYOUT_AddChild, fwin->gadgets[GID_SEARCHSTRING] = StringObject,
|
LAYOUT_AddChild, fwin->objects[GID_SEARCHSTRING] = StringObject,
|
||||||
GA_ID,GID_SEARCHSTRING,
|
GA_ID,GID_SEARCHSTRING,
|
||||||
GA_TabCycle,TRUE,
|
GA_TabCycle,TRUE,
|
||||||
GA_RelVerify,TRUE,
|
GA_RelVerify,TRUE,
|
||||||
|
@ -155,14 +155,14 @@ void ami_search_open(struct gui_window *gwin)
|
||||||
LabelEnd,
|
LabelEnd,
|
||||||
*/
|
*/
|
||||||
CHILD_WeightedHeight,0,
|
CHILD_WeightedHeight,0,
|
||||||
LAYOUT_AddChild, fwin->gadgets[GID_CASE] = CheckBoxObject,
|
LAYOUT_AddChild, fwin->objects[GID_CASE] = CheckBoxObject,
|
||||||
GA_ID,GID_CASE,
|
GA_ID,GID_CASE,
|
||||||
GA_Text,messages_get("CaseSens"),
|
GA_Text,messages_get("CaseSens"),
|
||||||
GA_Selected,FALSE,
|
GA_Selected,FALSE,
|
||||||
GA_TabCycle,TRUE,
|
GA_TabCycle,TRUE,
|
||||||
GA_RelVerify,TRUE,
|
GA_RelVerify,TRUE,
|
||||||
CheckBoxEnd,
|
CheckBoxEnd,
|
||||||
LAYOUT_AddChild, fwin->gadgets[GID_SHOWALL] = CheckBoxObject,
|
LAYOUT_AddChild, fwin->objects[GID_SHOWALL] = CheckBoxObject,
|
||||||
GA_ID,GID_SHOWALL,
|
GA_ID,GID_SHOWALL,
|
||||||
GA_Text,messages_get("ShowAll"),
|
GA_Text,messages_get("ShowAll"),
|
||||||
GA_Selected,FALSE,
|
GA_Selected,FALSE,
|
||||||
|
@ -171,7 +171,7 @@ void ami_search_open(struct gui_window *gwin)
|
||||||
CheckBoxEnd,
|
CheckBoxEnd,
|
||||||
|
|
||||||
LAYOUT_AddChild, HGroupObject,
|
LAYOUT_AddChild, HGroupObject,
|
||||||
LAYOUT_AddChild, fwin->gadgets[GID_PREV] = ButtonObject,
|
LAYOUT_AddChild, fwin->objects[GID_PREV] = ButtonObject,
|
||||||
GA_ID,GID_PREV,
|
GA_ID,GID_PREV,
|
||||||
GA_RelVerify,TRUE,
|
GA_RelVerify,TRUE,
|
||||||
GA_Text,messages_get("Prev"),
|
GA_Text,messages_get("Prev"),
|
||||||
|
@ -179,7 +179,7 @@ void ami_search_open(struct gui_window *gwin)
|
||||||
GA_Disabled,TRUE,
|
GA_Disabled,TRUE,
|
||||||
ButtonEnd,
|
ButtonEnd,
|
||||||
CHILD_WeightedHeight,0,
|
CHILD_WeightedHeight,0,
|
||||||
LAYOUT_AddChild, fwin->gadgets[GID_NEXT] = ButtonObject,
|
LAYOUT_AddChild, fwin->objects[GID_NEXT] = ButtonObject,
|
||||||
GA_ID,GID_NEXT,
|
GA_ID,GID_NEXT,
|
||||||
GA_RelVerify,TRUE,
|
GA_RelVerify,TRUE,
|
||||||
GA_Text,messages_get("Next"),
|
GA_Text,messages_get("Next"),
|
||||||
|
@ -264,12 +264,14 @@ BOOL ami_search_event(void)
|
||||||
ami_search_set_back_state(
|
ami_search_set_back_state(
|
||||||
true, NULL);
|
true, NULL);
|
||||||
|
|
||||||
RefreshSetGadgetAttrs(fwin->gadgets[GID_PREV],fwin->win,NULL,
|
RefreshSetGadgetAttrs((struct Gadget *)fwin->objects[GID_PREV],
|
||||||
GA_Disabled,FALSE,
|
fwin->win, NULL,
|
||||||
|
GA_Disabled, FALSE,
|
||||||
TAG_DONE);
|
TAG_DONE);
|
||||||
|
|
||||||
RefreshSetGadgetAttrs(fwin->gadgets[GID_NEXT],fwin->win,NULL,
|
RefreshSetGadgetAttrs((struct Gadget *)fwin->objects[GID_NEXT],
|
||||||
GA_Disabled,FALSE,
|
fwin->win, NULL,
|
||||||
|
GA_Disabled, FALSE,
|
||||||
TAG_DONE);
|
TAG_DONE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -315,7 +317,7 @@ void ami_search_set_hourglass(bool active, void *p)
|
||||||
char *ami_search_string(void)
|
char *ami_search_string(void)
|
||||||
{
|
{
|
||||||
char *text;
|
char *text;
|
||||||
GetAttr(STRINGA_TextVal,fwin->gadgets[GID_SEARCHSTRING],(ULONG *)&text);
|
GetAttr(STRINGA_TextVal,fwin->objects[GID_SEARCHSTRING],(ULONG *)&text);
|
||||||
return text;
|
return text;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -341,7 +343,8 @@ void ami_search_add_recent(const char *string, void *p)
|
||||||
|
|
||||||
void ami_search_set_forward_state(bool active, void *p)
|
void ami_search_set_forward_state(bool active, void *p)
|
||||||
{
|
{
|
||||||
RefreshSetGadgetAttrs(fwin->gadgets[GID_NEXT],fwin->win,NULL,
|
RefreshSetGadgetAttrs((struct Gadget *)fwin->objects[GID_NEXT],
|
||||||
|
fwin->win, NULL,
|
||||||
GA_Disabled, active ? FALSE : TRUE, TAG_DONE);
|
GA_Disabled, active ? FALSE : TRUE, TAG_DONE);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -354,7 +357,8 @@ void ami_search_set_forward_state(bool active, void *p)
|
||||||
|
|
||||||
void ami_search_set_back_state(bool active, void *p)
|
void ami_search_set_back_state(bool active, void *p)
|
||||||
{
|
{
|
||||||
RefreshSetGadgetAttrs(fwin->gadgets[GID_PREV],fwin->win,NULL,
|
RefreshSetGadgetAttrs((struct Gadget *)fwin->objects[GID_PREV],
|
||||||
|
fwin->win, NULL,
|
||||||
GA_Disabled, active ? FALSE : TRUE, TAG_DONE);
|
GA_Disabled, active ? FALSE : TRUE, TAG_DONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -366,8 +370,8 @@ search_flags_t ami_search_flags(void)
|
||||||
{
|
{
|
||||||
ULONG case_sensitive, showall;
|
ULONG case_sensitive, showall;
|
||||||
search_flags_t flags;
|
search_flags_t flags;
|
||||||
GetAttr(GA_Selected,fwin->gadgets[GID_CASE],(ULONG *)&case_sensitive);
|
GetAttr(GA_Selected,fwin->objects[GID_CASE],(ULONG *)&case_sensitive);
|
||||||
GetAttr(GA_Selected,fwin->gadgets[GID_SHOWALL],(ULONG *)&showall);
|
GetAttr(GA_Selected,fwin->objects[GID_SHOWALL],(ULONG *)&showall);
|
||||||
flags = 0 | (case_sensitive ? SEARCH_FLAG_CASE_SENSITIVE : 0) |
|
flags = 0 | (case_sensitive ? SEARCH_FLAG_CASE_SENSITIVE : 0) |
|
||||||
(showall ? SEARCH_FLAG_SHOWALL : 0);
|
(showall ? SEARCH_FLAG_SHOWALL : 0);
|
||||||
return flags;
|
return flags;
|
||||||
|
|
|
@ -24,8 +24,7 @@
|
||||||
struct find_window {
|
struct find_window {
|
||||||
struct nsObject *node;
|
struct nsObject *node;
|
||||||
struct Window *win;
|
struct Window *win;
|
||||||
Object *objects[OID_LAST];
|
Object *objects[GID_LAST];
|
||||||
struct Gadget *gadgets[GID_LAST];
|
|
||||||
struct gui_window *gwin;
|
struct gui_window *gwin;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -284,7 +284,7 @@ void ami_init_mouse_pointers(void)
|
||||||
|
|
||||||
if(option_truecolour_mouse_pointers)
|
if(option_truecolour_mouse_pointers)
|
||||||
{
|
{
|
||||||
ami_get_theme_filename(&ptrfname,ptrs32[i], false);
|
ami_get_theme_filename((char *)&ptrfname,ptrs32[i], false);
|
||||||
if(dobj = GetIconTags(ptrfname,ICONGETA_UseFriendBitMap,TRUE,TAG_DONE))
|
if(dobj = GetIconTags(ptrfname,ICONGETA_UseFriendBitMap,TRUE,TAG_DONE))
|
||||||
{
|
{
|
||||||
if(IconControl(dobj, ICONCTRLA_GetImageDataFormat, &format, TAG_DONE))
|
if(IconControl(dobj, ICONCTRLA_GetImageDataFormat, &format, TAG_DONE))
|
||||||
|
|
46
amiga/tree.c
46
amiga/tree.c
|
@ -65,8 +65,8 @@
|
||||||
|
|
||||||
struct treeview_window {
|
struct treeview_window {
|
||||||
struct Window *win;
|
struct Window *win;
|
||||||
Object *objects[OID_LAST];
|
Object *objects[GID_LAST];
|
||||||
struct Gadget *gadgets[GID_LAST];
|
// struct Gadget *gadgets[GID_LAST];
|
||||||
struct nsObject *node;
|
struct nsObject *node;
|
||||||
int type;
|
int type;
|
||||||
struct NewMenu *menu;
|
struct NewMenu *menu;
|
||||||
|
@ -140,7 +140,7 @@ void ami_tree_resized(struct tree *tree, int width, int height, void *data)
|
||||||
|
|
||||||
if(twin->win)
|
if(twin->win)
|
||||||
{
|
{
|
||||||
GetAttr(SPACE_AreaBox,twin->gadgets[GID_BROWSER],(ULONG *)&bbox);
|
GetAttr(SPACE_AreaBox,twin->objects[GID_BROWSER],(ULONG *)&bbox);
|
||||||
|
|
||||||
RefreshSetGadgetAttrs((APTR)twin->objects[OID_VSCROLL], twin->win, NULL,
|
RefreshSetGadgetAttrs((APTR)twin->objects[OID_VSCROLL], twin->win, NULL,
|
||||||
SCROLLER_Total, height,
|
SCROLLER_Total, height,
|
||||||
|
@ -166,7 +166,7 @@ void ami_tree_get_window_dimensions(int *width, int *height, void *data)
|
||||||
struct treeview_window *twin = data;
|
struct treeview_window *twin = data;
|
||||||
struct IBox *bbox;
|
struct IBox *bbox;
|
||||||
|
|
||||||
GetAttr(SPACE_AreaBox,twin->gadgets[GID_BROWSER],(ULONG *)&bbox);
|
GetAttr(SPACE_AreaBox,twin->objects[GID_BROWSER],(ULONG *)&bbox);
|
||||||
|
|
||||||
if(width) *width = bbox->Width;
|
if(width) *width = bbox->Width;
|
||||||
if(height) *height = bbox->Height;
|
if(height) *height = bbox->Height;
|
||||||
|
@ -198,7 +198,7 @@ void ami_tree_scroll_visible(int y, int height, void *data)
|
||||||
struct treeview_window *twin = data;
|
struct treeview_window *twin = data;
|
||||||
|
|
||||||
GetAttr(SCROLLER_Top, twin->objects[OID_VSCROLL], (ULONG *)&sy);
|
GetAttr(SCROLLER_Top, twin->objects[OID_VSCROLL], (ULONG *)&sy);
|
||||||
GetAttr(SPACE_AreaBox,twin->gadgets[GID_BROWSER],(ULONG *)&bbox);
|
GetAttr(SPACE_AreaBox,twin->objects[GID_BROWSER],(ULONG *)&bbox);
|
||||||
|
|
||||||
if((y > sy) && ((y + height) < (sy + bbox->Height))) return;
|
if((y > sy) && ((y + height) < (sy + bbox->Height))) return;
|
||||||
|
|
||||||
|
@ -242,7 +242,7 @@ void ami_tree_drag_icon_show(struct treeview_window *twin)
|
||||||
{
|
{
|
||||||
const char *type = "project";
|
const char *type = "project";
|
||||||
const char *url;
|
const char *url;
|
||||||
struct url_data *data;
|
const struct url_data *data;
|
||||||
struct node *node = NULL;
|
struct node *node = NULL;
|
||||||
|
|
||||||
if((tree_drag_status(twin->tree) == TREE_NO_DRAG) ||
|
if((tree_drag_status(twin->tree) == TREE_NO_DRAG) ||
|
||||||
|
@ -453,7 +453,7 @@ void ami_tree_update_buttons(struct treeview_window *twin)
|
||||||
OnMenu(twin->win, AMI_TREE_MENU_DELETE);
|
OnMenu(twin->win, AMI_TREE_MENU_DELETE);
|
||||||
OnMenu(twin->win, AMI_TREE_MENU_CLEAR);
|
OnMenu(twin->win, AMI_TREE_MENU_CLEAR);
|
||||||
|
|
||||||
RefreshSetGadgetAttrs((struct Gadget *)twin->gadgets[GID_DEL],
|
RefreshSetGadgetAttrs((struct Gadget *)twin->objects[GID_DEL],
|
||||||
twin->win, NULL,
|
twin->win, NULL,
|
||||||
GA_Disabled, FALSE,
|
GA_Disabled, FALSE,
|
||||||
TAG_DONE);
|
TAG_DONE);
|
||||||
|
@ -466,7 +466,7 @@ void ami_tree_update_buttons(struct treeview_window *twin)
|
||||||
OffMenu(twin->win, AMI_TREE_MENU_DELETE);
|
OffMenu(twin->win, AMI_TREE_MENU_DELETE);
|
||||||
OffMenu(twin->win, AMI_TREE_MENU_CLEAR);
|
OffMenu(twin->win, AMI_TREE_MENU_CLEAR);
|
||||||
|
|
||||||
RefreshSetGadgetAttrs((struct Gadget *)twin->gadgets[GID_DEL],
|
RefreshSetGadgetAttrs((struct Gadget *)twin->objects[GID_DEL],
|
||||||
twin->win, NULL,
|
twin->win, NULL,
|
||||||
GA_Disabled, TRUE,
|
GA_Disabled, TRUE,
|
||||||
TAG_DONE);
|
TAG_DONE);
|
||||||
|
@ -476,7 +476,7 @@ void ami_tree_update_buttons(struct treeview_window *twin)
|
||||||
|
|
||||||
if(twin->type != AMI_TREE_COOKIES)
|
if(twin->type != AMI_TREE_COOKIES)
|
||||||
{
|
{
|
||||||
RefreshSetGadgetAttrs((struct Gadget *)twin->gadgets[GID_OPEN],
|
RefreshSetGadgetAttrs((struct Gadget *)twin->objects[GID_OPEN],
|
||||||
twin->win, NULL,
|
twin->win, NULL,
|
||||||
GA_Disabled, launch_disable,
|
GA_Disabled, launch_disable,
|
||||||
TAG_DONE);
|
TAG_DONE);
|
||||||
|
@ -551,22 +551,22 @@ void ami_tree_open(struct treeview_window *twin,int type)
|
||||||
/* WINDOW_NewMenu, twin->menu, -> No menu for SSL Cert */
|
/* WINDOW_NewMenu, twin->menu, -> No menu for SSL Cert */
|
||||||
WINDOW_IconifyGadget, FALSE,
|
WINDOW_IconifyGadget, FALSE,
|
||||||
WINDOW_Position, WPOS_CENTERSCREEN,
|
WINDOW_Position, WPOS_CENTERSCREEN,
|
||||||
WINDOW_ParentGroup, twin->gadgets[GID_MAIN] = VGroupObject,
|
WINDOW_ParentGroup, twin->objects[GID_MAIN] = VGroupObject,
|
||||||
LAYOUT_AddImage, LabelObject,
|
LAYOUT_AddImage, LabelObject,
|
||||||
LABEL_Text, messages_get("SSLError"),
|
LABEL_Text, messages_get("SSLError"),
|
||||||
LabelEnd,
|
LabelEnd,
|
||||||
LAYOUT_AddChild, twin->gadgets[GID_BROWSER] = SpaceObject,
|
LAYOUT_AddChild, twin->objects[GID_BROWSER] = SpaceObject,
|
||||||
GA_ID, GID_BROWSER,
|
GA_ID, GID_BROWSER,
|
||||||
SPACE_Transparent,TRUE,
|
SPACE_Transparent,TRUE,
|
||||||
SPACE_BevelStyle, BVS_DISPLAY,
|
SPACE_BevelStyle, BVS_DISPLAY,
|
||||||
SpaceEnd,
|
SpaceEnd,
|
||||||
LAYOUT_AddChild, HGroupObject,
|
LAYOUT_AddChild, HGroupObject,
|
||||||
LAYOUT_AddChild, twin->gadgets[GID_OPEN] = ButtonObject,
|
LAYOUT_AddChild, twin->objects[GID_OPEN] = ButtonObject,
|
||||||
GA_ID,GID_OPEN,
|
GA_ID,GID_OPEN,
|
||||||
GA_Text,messages_get("Accept"),
|
GA_Text,messages_get("Accept"),
|
||||||
GA_RelVerify,TRUE,
|
GA_RelVerify,TRUE,
|
||||||
ButtonEnd,
|
ButtonEnd,
|
||||||
LAYOUT_AddChild, twin->gadgets[GID_CANCEL] = ButtonObject,
|
LAYOUT_AddChild, twin->objects[GID_CANCEL] = ButtonObject,
|
||||||
GA_ID,GID_CANCEL,
|
GA_ID,GID_CANCEL,
|
||||||
GA_Text,messages_get("Reject"),
|
GA_Text,messages_get("Reject"),
|
||||||
GA_RelVerify,TRUE,
|
GA_RelVerify,TRUE,
|
||||||
|
@ -631,32 +631,32 @@ void ami_tree_open(struct treeview_window *twin,int type)
|
||||||
WINDOW_NewMenu, twin->menu,
|
WINDOW_NewMenu, twin->menu,
|
||||||
WINDOW_IconifyGadget, FALSE,
|
WINDOW_IconifyGadget, FALSE,
|
||||||
// WINDOW_Position, WPOS_CENTERSCREEN,
|
// WINDOW_Position, WPOS_CENTERSCREEN,
|
||||||
WINDOW_ParentGroup, twin->gadgets[GID_MAIN] = VGroupObject,
|
WINDOW_ParentGroup, twin->objects[GID_MAIN] = VGroupObject,
|
||||||
LAYOUT_AddChild, twin->gadgets[GID_BROWSER] = SpaceObject,
|
LAYOUT_AddChild, twin->objects[GID_BROWSER] = SpaceObject,
|
||||||
GA_ID, GID_BROWSER,
|
GA_ID, GID_BROWSER,
|
||||||
SPACE_Transparent,TRUE,
|
SPACE_Transparent,TRUE,
|
||||||
SPACE_BevelStyle, BVS_DISPLAY,
|
SPACE_BevelStyle, BVS_DISPLAY,
|
||||||
SpaceEnd,
|
SpaceEnd,
|
||||||
LAYOUT_AddChild, HGroupObject,
|
LAYOUT_AddChild, HGroupObject,
|
||||||
LAYOUT_AddChild, twin->gadgets[GID_OPEN] = ButtonObject,
|
LAYOUT_AddChild, twin->objects[GID_OPEN] = ButtonObject,
|
||||||
GA_ID,GID_OPEN,
|
GA_ID,GID_OPEN,
|
||||||
GA_Text,messages_get("TreeLaunch"),
|
GA_Text,messages_get("TreeLaunch"),
|
||||||
GA_RelVerify,TRUE,
|
GA_RelVerify,TRUE,
|
||||||
GA_Disabled,launchdisable,
|
GA_Disabled,launchdisable,
|
||||||
ButtonEnd,
|
ButtonEnd,
|
||||||
LAYOUT_AddChild, twin->gadgets[GID_NEWF] = ButtonObject,
|
LAYOUT_AddChild, twin->objects[GID_NEWF] = ButtonObject,
|
||||||
GA_ID,GID_NEWF,
|
GA_ID,GID_NEWF,
|
||||||
BUTTON_AutoButton,BAG_POPDRAWER,
|
BUTTON_AutoButton,BAG_POPDRAWER,
|
||||||
GA_RelVerify,TRUE,
|
GA_RelVerify,TRUE,
|
||||||
GA_Disabled,nothl,
|
GA_Disabled,nothl,
|
||||||
ButtonEnd,
|
ButtonEnd,
|
||||||
LAYOUT_AddChild, twin->gadgets[GID_NEWB] = ButtonObject,
|
LAYOUT_AddChild, twin->objects[GID_NEWB] = ButtonObject,
|
||||||
GA_ID,GID_NEWB,
|
GA_ID,GID_NEWB,
|
||||||
BUTTON_AutoButton,BAG_POPFILE,
|
BUTTON_AutoButton,BAG_POPFILE,
|
||||||
GA_RelVerify,TRUE,
|
GA_RelVerify,TRUE,
|
||||||
GA_Disabled,nothl,
|
GA_Disabled,nothl,
|
||||||
ButtonEnd,
|
ButtonEnd,
|
||||||
LAYOUT_AddChild, twin->gadgets[GID_DEL] = ButtonObject,
|
LAYOUT_AddChild, twin->objects[GID_DEL] = ButtonObject,
|
||||||
GA_ID,GID_DEL,
|
GA_ID,GID_DEL,
|
||||||
GA_Text,messages_get("TreeDelete"),
|
GA_Text,messages_get("TreeDelete"),
|
||||||
GA_RelVerify,TRUE,
|
GA_RelVerify,TRUE,
|
||||||
|
@ -803,7 +803,7 @@ BOOL ami_tree_event(struct treeview_window *twin)
|
||||||
drag_x_move = 0;
|
drag_x_move = 0;
|
||||||
drag_y_move = 0;
|
drag_y_move = 0;
|
||||||
|
|
||||||
GetAttr(SPACE_AreaBox, twin->gadgets[GID_BROWSER], (ULONG *)&bbox);
|
GetAttr(SPACE_AreaBox, twin->objects[GID_BROWSER], (ULONG *)&bbox);
|
||||||
|
|
||||||
GetAttr(SCROLLER_Top, twin->objects[OID_HSCROLL], (ULONG *)&xs);
|
GetAttr(SCROLLER_Top, twin->objects[OID_HSCROLL], (ULONG *)&xs);
|
||||||
x = twin->win->MouseX - bbox->Left + xs;
|
x = twin->win->MouseX - bbox->Left + xs;
|
||||||
|
@ -860,7 +860,7 @@ BOOL ami_tree_event(struct treeview_window *twin)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WMHI_MOUSEBUTTONS:
|
case WMHI_MOUSEBUTTONS:
|
||||||
GetAttr(SPACE_AreaBox, twin->gadgets[GID_BROWSER], (ULONG *)&bbox);
|
GetAttr(SPACE_AreaBox, twin->objects[GID_BROWSER], (ULONG *)&bbox);
|
||||||
GetAttr(SCROLLER_Top, twin->objects[OID_HSCROLL], (ULONG *)&xs);
|
GetAttr(SCROLLER_Top, twin->objects[OID_HSCROLL], (ULONG *)&xs);
|
||||||
x = twin->win->MouseX - bbox->Left + xs;
|
x = twin->win->MouseX - bbox->Left + xs;
|
||||||
GetAttr(SCROLLER_Top, twin->objects[OID_VSCROLL], (ULONG *)&ys);
|
GetAttr(SCROLLER_Top, twin->objects[OID_VSCROLL], (ULONG *)&ys);
|
||||||
|
@ -1225,7 +1225,7 @@ void ami_tree_draw(struct treeview_window *twin)
|
||||||
|
|
||||||
GetAttr(SCROLLER_Top, twin->objects[OID_HSCROLL], (ULONG *)&x);
|
GetAttr(SCROLLER_Top, twin->objects[OID_HSCROLL], (ULONG *)&x);
|
||||||
GetAttr(SCROLLER_Top, twin->objects[OID_VSCROLL], (ULONG *)&y);
|
GetAttr(SCROLLER_Top, twin->objects[OID_VSCROLL], (ULONG *)&y);
|
||||||
GetAttr(SPACE_AreaBox,twin->gadgets[GID_BROWSER],(ULONG *)&bbox);
|
GetAttr(SPACE_AreaBox,twin->objects[GID_BROWSER],(ULONG *)&bbox);
|
||||||
|
|
||||||
ami_tree_redraw_request(x, y, bbox->Width, bbox->Height, twin);
|
ami_tree_redraw_request(x, y, bbox->Width, bbox->Height, twin);
|
||||||
}
|
}
|
||||||
|
@ -1246,7 +1246,7 @@ void ami_tree_redraw_request(int x, int y, int width, int height, void *data)
|
||||||
ami_update_pointer(twin->win, GUI_POINTER_WAIT);
|
ami_update_pointer(twin->win, GUI_POINTER_WAIT);
|
||||||
glob = &twin->globals;
|
glob = &twin->globals;
|
||||||
|
|
||||||
GetAttr(SPACE_AreaBox,twin->gadgets[GID_BROWSER],(ULONG *)&bbox);
|
GetAttr(SPACE_AreaBox,twin->objects[GID_BROWSER],(ULONG *)&bbox);
|
||||||
GetAttr(SCROLLER_Top, twin->objects[OID_HSCROLL], (ULONG *)&pos_x);
|
GetAttr(SCROLLER_Top, twin->objects[OID_HSCROLL], (ULONG *)&pos_x);
|
||||||
GetAttr(SCROLLER_Top, twin->objects[OID_VSCROLL], (ULONG *)&pos_y);
|
GetAttr(SCROLLER_Top, twin->objects[OID_VSCROLL], (ULONG *)&pos_y);
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
#ifndef AMIGA_UTF8_H
|
#ifndef AMIGA_UTF8_H
|
||||||
#define AMIGA_UTF8_H
|
#define AMIGA_UTF8_H
|
||||||
char *ami_utf8_easy(char *string);
|
char *ami_utf8_easy(const char *string);
|
||||||
void ami_utf8_free(char *ptr);
|
void ami_utf8_free(char *ptr);
|
||||||
char *ami_to_utf8_easy(char *string);
|
char *ami_to_utf8_easy(const char *string);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue