1/* 2 * Copyright 2004, Waldemar Kornewald <wkornew@gmx.net> 3 * Distributed under the terms of the MIT License. 4 */ 5 6#ifndef _INTERFACE_UTILS__H 7#define _INTERFACE_UTILS__H 8 9#include <SupportDefs.h> 10 11class DialUpAddon; 12class BListView; 13class BMenu; 14class BString; 15class BWindow; 16 17 18extern BPoint center_on_screen(BRect rect, BWindow *window = NULL); 19extern int32 FindNextMenuInsertionIndex(BMenu *menu, const char *name, 20 int32 index = 0); 21extern int32 FindNextListInsertionIndex(BListView *list, const char *name); 22extern void AddAddonsToMenu(const BMessage *source, BMenu *menu, const char *type, 23 uint32 what); 24 25 26#endif 27