Files
haiku-beta6/src/apps/icon-o-matic/MainWindow.h
T
Stephan Aßmus ce181bb0cd * fixed memory leaks and display bugs
* VectorPath objects were released one two many times
  by the Shape PathContainers (they don't acquire when
  a path is added, the Shape does that for them) the
  PathContainer of the Icon needs to release though, as
  it "owns" the paths
* put the Selection class used by PathManipulator into
  the PathManipulator namespace, since the compiler seemed
  to use the wrong destructor (the one from the generic
  Selection class)
* uses a better mechanism to track and render
  changed parts of icon


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17903 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-22 00:22:23 +00:00

42 lines
770 B
C++

/*
* Copyright 2006, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* Stephan Aßmus <[email protected]>
*/
#ifndef MAIN_WINDOW_H
#define MAIN_WINDOW_H
#include <Window.h>
class CanvasView;
class Document;
class IconEditorApp;
class ViewState;
class MainWindow : public BWindow {
public:
MainWindow(IconEditorApp* app,
Document* document);
virtual ~MainWindow();
// BWindow interface
virtual void MessageReceived(BMessage* message);
virtual bool QuitRequested();
private:
void _Init();
BView* _CreateGUI(BRect frame);
IconEditorApp* fApp;
Document* fDocument;
CanvasView* fCanvasView;
// TODO: for testing only...
ViewState* fState;
};
#endif // MAIN_WINDOW_H