objectwidgetcontroller.h
00001 /*************************************************************************** 00002 * * 00003 * This program is free software; you can redistribute it and/or modify * 00004 * it under the terms of the GNU General Public License as published by * 00005 * the Free Software Foundation; either version 2 of the License, or * 00006 * (at your option) any later version. * 00007 * * 00008 * copyright (C) 2006 * 00009 * Umbrello UML Modeller Authors <uml-devel@uml.sf.net> * 00010 ***************************************************************************/ 00011 00012 #ifndef OBJECTWIDGETCONTROLLER_H 00013 #define OBJECTWIDGETCONTROLLER_H 00014 00015 #include "umlwidgetcontroller.h" 00016 00017 class ObjectWidget; 00018 00033 class ObjectWidgetController : public UMLWidgetController { 00034 public: 00035 00041 ObjectWidgetController(ObjectWidget *objectWidget); 00042 00046 virtual ~ObjectWidgetController(); 00047 00048 protected: 00049 00057 virtual QCursor getResizeCursor(); 00058 00067 virtual void resizeWidget(int newW, int newH); 00068 00079 virtual void moveWidgetBy(int diffX, int diffY); 00080 00089 virtual void constrainMovementForAllWidgets(int &diffX, int &diffY); 00090 }; 00091 00092 #endif
