blob: c2ccb87704d6584760fcc6f7ba78dcdf2e160309 [file] [log] [blame]
//===-- PictureFrame.h - Window containing PictureCanvas ---------*- C++ -*-==//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// Window container for PictureCanvas objects.
//
//===----------------------------------------------------------------------===//
#ifndef PICTUREFRAME_H
#define PICTUREFRAME_H
#include "PictureCanvas.h"
#include "wx/wx.h"
class TVApplication;
/// PictureFrame - just a window that contains a PictureCanvas.
///
class PictureFrame : public wxFrame {
TVApplication *myApp;
void setupAppearance() {
SetSize(wxRect(200, 200, 300, 300));
Show(TRUE);
}
public:
PictureFrame(TVApplication *app, const char *windowTitle = "")
: wxFrame (NULL, -1, wxString(windowTitle, wxConvUTF8)), myApp (app) {
setupAppearance ();
}
void OnClose(wxCloseEvent &event);
DECLARE_EVENT_TABLE()
};
#endif // PICTUREFRAME_H