1////////////////////////////////////////////////////////////////////////////////
2//
3//	File: GIFWindow.cpp
4//
5//	Date: December 1999
6//
7//	Author: Daniel Switkin
8//
9//	Copyright 2003 (c) by Daniel Switkin. This file is made publically available
10//	under the BSD license, with the stipulations that this complete header must
11//	remain at the top of the file indefinitely, and credit must be given to the
12//	original author in any about box using this software.
13//
14////////////////////////////////////////////////////////////////////////////////
15
16#include "GIFWindow.h"
17#include "GIFView.h"
18#include <Application.h>
19#include <LayoutBuilder.h>
20
21GIFWindow::GIFWindow(BRect rect, const char *name) :
22	BWindow(rect, name, B_TITLED_WINDOW, B_NOT_RESIZABLE | B_NOT_ZOOMABLE
23	| B_AUTO_UPDATE_SIZE_LIMITS, B_CURRENT_WORKSPACE) {
24
25	gifview = new GIFView("GIFView");
26	BLayoutBuilder::Group<>(this, B_HORIZONTAL)
27		.Add(gifview);
28}
29
30bool GIFWindow::QuitRequested() {
31	be_app->PostMessage(B_QUIT_REQUESTED);
32	return true;
33}
34
35