PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
PWindow.h
Go to the documentation of this file.
1//* -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*- */
3// Name: src/objects/PWindow.h
4// Purpose: Contains generic specs for a Main Window class
5// Author: Shane T. Mueller, Ph.D.
6// Copyright: (c) 2003-2026 Shane T. Mueller <smueller@obereed.net>
7// License: GPL 2
8//
9//
10//
11// This file is part of the PEBL project.
12//
13// PEBL is free software; you can redistribute it and/or modify
14// it under the terms of the GNU General Public License as published by
15// the Free Software Foundation; either version 2 of the License, or
16// (at your option) any later version.
17//
18// PEBL is distributed in the hope that it will be useful,
19// but WITHOUT ANY WARRANTY; without even the implied warranty of
20// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21// GNU General Public License for more details.
22//
23// You should have received a copy of the GNU General Public License
24// along with PEBL; if not, write to the Free Software
25// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27#ifndef __PWINDOW_H__
28#define __PWINDOW_H__
29
30
31#include "PWidget.h"
32#include "PColor.h"
33#include <iostream>
34#include "PEnvironment.h"
40
41
42class PWindow: virtual public PWidget
43{
44public:
45
46 PWindow(PEnvironment * penv);
47 virtual ~PWindow();
48 virtual bool Draw(){return true;}
49// virtual long int DrawFor(unsigned int cycles){return true;}
50 virtual std::string ObjectName() const{return "PWindow";};
51
52
53 virtual bool SetProperty(std::string, Variant v);
54 virtual Variant GetProperty(std::string)const;
55 virtual ObjectValidationError ValidateProperty(std::string, Variant v)const;
56 virtual ObjectValidationError ValidateProperty(std::string)const;
57
58protected:
59
60 virtual std::ostream & SendToStream(std::ostream& out) const{return out;};
61 PEnvironment * mEnv; //reference to the encapsulating environment.
62
63};
64
65
66#endif
ObjectValidationError
Definition PEBLObject.h:37
virtual std::ostream & SendToStream(std::ostream &out) const
An inheritable printing class used by PEBLObjectBase::operator<<.
Definition PWindow.h:60
virtual std::string ObjectName() const
Definition PWindow.h:50
virtual bool Draw()
Definition PWindow.h:48
virtual bool SetProperty(std::string, Variant v)
Definition PWindow.cpp:56
virtual Variant GetProperty(std::string) const
Definition PWindow.cpp:71
virtual ~PWindow()
Definition PWindow.cpp:44
virtual ObjectValidationError ValidateProperty(std::string, Variant v) const
Definition PWindow.cpp:77
PEnvironment * mEnv
Definition PWindow.h:61