IEWindow can instantiate windows from the application executable file, or from
a BResource if you provide one.
It can handle a window list of child windows, which it closes in the Quit method.
IEWindow(char *windowname, BResources *from_resources=NULL);Calls the BWindow constructor with the window archive. The constructor calls FindWindowResource to find the window by name in the resources.
NULL
the resources of the application executable will be used.
virtual ~IEWindow(void);Deletes the window dependancy list.
void AddDependantWindow(BWindow *window);
You can add a window to the dependancy list. The window will be closed when this window is closed in the Quit method.
BMessage *FindWindowResource(char *windowname, BResources *from_resources=NULL);
FindWindowResource tries to locate a resource called windowname of type B_ARCHIVED_OBJECT
in from_resources or in the application executable if
from_resources is NULL
.
If the window is not found, FindWindowResource will return a default window archive
with the error in the window title. (This method cannot return NULL
because the BWindow constructor is called with the return value.)
Such an error can happen only during application development.
virtual void Quit(void);
Closes the windows in the dependancy list. The list items are BMessengers, whose validity is checked before locking and quitting the child windows.