00001 /* -*- c++ -*- (for Emacs) 00002 * 00003 * attributedoccontroller.h 00004 * 00005 * Created by Aidan Lane on Mon Dec 19 2005. 00006 * Copyright (c) 2005 Optimisation and Constraint Solving Group, 00007 * Monash University. All rights reserved. 00008 * 00009 * This program is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00022 */ 00023 00024 #ifndef ATTRIBUTEDOCCONTROLLER_H 00025 #define ATTRIBUTEDOCCONTROLLER_H 00026 00027 00028 #include "doccontroller.h" 00029 00030 #include <QPointer> 00031 00032 #include "attributedoccontrollerevents.h" 00033 00034 class AttributeDoc; 00035 00036 00045 class AttributeDocController : public DocController { 00046 00047 Q_OBJECT 00048 00049 public: 00050 AttributeDocController( QObject* parent = 0 ); 00051 AttributeDocController( AbstractModel* doc, QObject* parent = 0 ); 00052 00053 AttributeDoc* attributeDoc() const; 00054 00055 00056 protected: 00057 virtual void dispatchEvent( CEvent* ); 00058 virtual void changeModelEvent( CChangeModelEvent* ); 00059 virtual void attributesSetValuesEvent( CAttributesSetValuesEvent* ); 00060 virtual void attributesRemoveEvent( CAttributesRemoveEvent* ); 00061 00062 00063 private: 00064 // Temporary caches: 00065 QPointer<AttributeDoc> c_attributeDoc; 00066 }; 00067 00068 00069 #endif // ! ATTRIBUTEDOCCONTROLLER_H
1.5.2