Files
haiku-beta6/src/prefs/backgrounds/BGWindow.cpp
T

43 lines
774 B
C++
Raw Normal View History

/*
"Backgrounds" by Jerome Duval ([email protected])
(C)2002 OpenBeOS under MIT license
*/
#include "BGWindow.h"
BGWindow::BGWindow(BRect frame, bool standalone)
: BWindow(frame, WINDOW_TITLE, B_TITLED_WINDOW,
B_NOT_RESIZABLE | B_NOT_ZOOMABLE, B_ALL_WORKSPACES),
fIsStandalone(standalone)
{
fBGView = new BGView(Bounds(),"BackgroundsView",B_FOLLOW_ALL, B_WILL_DRAW);
AddChild(fBGView);
}
bool
BGWindow::QuitRequested()
{
fBGView->SaveSettings();
if(fIsStandalone)
be_app->PostMessage(B_QUIT_REQUESTED);
return(true);
}
void
BGWindow::WorkspaceActivated(int32 oldWorkspaces, bool active)
{
fBGView->WorkspaceActivated(oldWorkspaces, active);
}
void
BGWindow::ProcessRefs(entry_ref dir_ref, BMessage* msg)
{
fBGView->ProcessRefs(dir_ref, msg);
}