Kexi API Documentation (2.0 alpha)

KFormDesigner::CreateLayoutCommand Class Reference

#include <commands.h>

Inheritance diagram for KFormDesigner::CreateLayoutCommand:

KFormDesigner::Command KCommand KFormDesigner::BreakLayoutCommand List of all members.

Detailed Description

This command is used when creating a layout from some widgets using "Lay out in..." menu item. It remembers the old pos of every widget, and takes care of updating ObjectTree too. You need to supply a WidgetList of the selected widgets.

Definition at line 209 of file commands.h.

Public Member Functions

 CreateLayoutCommand (int layoutType, WidgetList &list, Form *form)
 CreateLayoutCommand ///////////////.
 CreateLayoutCommand ()
virtual void execute ()
virtual void unexecute ()
virtual QString name () const
virtual void debug ()

Protected Attributes

Formm_form
QString m_containername
QString m_name
QMap< QCString, QRect > m_pos
int m_type


Constructor & Destructor Documentation

CreateLayoutCommand::CreateLayoutCommand int  layoutType,
WidgetList list,
Form form
 

CreateLayoutCommand ///////////////.

Definition at line 849 of file commands.cpp.

References KFormDesigner::Container::Grid, KFormDesigner::Container::HBox, KFormDesigner::Container::HFlow, KFormDesigner::Container::HSplitter, m_containername, m_pos, KFormDesigner::Form::objectTree(), KFormDesigner::ObjectTreeItem::parent(), KFormDesigner::Container::VBox, KFormDesigner::Container::VFlow, and KFormDesigner::Container::VSplitter.

KFormDesigner::CreateLayoutCommand::CreateLayoutCommand  )  [inline]
 

Definition at line 213 of file commands.h.


Member Function Documentation

void CreateLayoutCommand::debug  )  [virtual]
 

Implements KFormDesigner::Command.

Reimplemented in KFormDesigner::BreakLayoutCommand.

Definition at line 1005 of file commands.cpp.

References m_containername, m_form, m_name, m_pos, name(), and KFormDesigner::Form::widget().

void CreateLayoutCommand::execute  )  [virtual]
 

Todo:
allow setting this for data view mode as well

Reimplemented in KFormDesigner::BreakLayoutCommand.

Definition at line 878 of file commands.cpp.

References KFormDesigner::ObjectTreeItem::container(), KFormDesigner::WidgetLibrary::createWidget(), KFormDesigner::Form::designMode(), KFormDesigner::ObjectTreeItem::eventEater(), KFormDesigner::Container::HFlow, KFormDesigner::Container::HSplitter, KFormDesigner::Container::layoutTypeToString(), KFormDesigner::Form::library(), m_containername, m_form, m_name, m_pos, m_type, KFormDesigner::ObjectTreeItem::name(), KFormDesigner::Form::objectTree(), KFormDesigner::FormManager::self(), KFormDesigner::Container::setSelectedWidget(), KFormDesigner::Form::toplevelContainer(), KFormDesigner::Container::VFlow, KFormDesigner::Container::VSplitter, KFormDesigner::Form::widget(), KFormDesigner::ObjectTreeItem::widget(), and KFormDesigner::Container::widget().

Referenced by KFormDesigner::BreakLayoutCommand::unexecute().

QString CreateLayoutCommand::name  )  const [virtual]
 

Reimplemented in KFormDesigner::BreakLayoutCommand.

Definition at line 981 of file commands.cpp.

References KFormDesigner::Container::Grid, KFormDesigner::Container::HBox, KFormDesigner::Container::HFlow, KFormDesigner::Container::HSplitter, m_type, KFormDesigner::Container::VBox, KFormDesigner::Container::VFlow, and KFormDesigner::Container::VSplitter.

Referenced by debug().

void CreateLayoutCommand::unexecute  )  [virtual]
 

Reimplemented in KFormDesigner::BreakLayoutCommand.

Definition at line 949 of file commands.cpp.

References KFormDesigner::ObjectTreeItem::container(), KFormDesigner::ObjectTreeItem::eventEater(), m_containername, m_form, m_name, m_pos, KFormDesigner::ObjectTreeItem::name(), KFormDesigner::Form::objectTree(), KFormDesigner::FormManager::self(), KFormDesigner::Form::widget(), and KFormDesigner::ObjectTreeItem::widget().

Referenced by KFormDesigner::BreakLayoutCommand::execute().


Member Data Documentation

QString KFormDesigner::CreateLayoutCommand::m_containername [protected]
 

Definition at line 222 of file commands.h.

Referenced by KFormDesigner::BreakLayoutCommand::BreakLayoutCommand(), CreateLayoutCommand(), KFormDesigner::BreakLayoutCommand::debug(), debug(), execute(), and unexecute().

Form* KFormDesigner::CreateLayoutCommand::m_form [protected]
 

Definition at line 221 of file commands.h.

Referenced by KFormDesigner::BreakLayoutCommand::BreakLayoutCommand(), KFormDesigner::BreakLayoutCommand::debug(), debug(), execute(), and unexecute().

QString KFormDesigner::CreateLayoutCommand::m_name [protected]
 

Definition at line 223 of file commands.h.

Referenced by KFormDesigner::BreakLayoutCommand::BreakLayoutCommand(), debug(), execute(), KFormDesigner::BreakLayoutCommand::name(), and unexecute().

QMap<QCString,QRect> KFormDesigner::CreateLayoutCommand::m_pos [protected]
 

Definition at line 224 of file commands.h.

Referenced by KFormDesigner::BreakLayoutCommand::BreakLayoutCommand(), CreateLayoutCommand(), KFormDesigner::BreakLayoutCommand::debug(), debug(), execute(), and unexecute().

int KFormDesigner::CreateLayoutCommand::m_type [protected]
 

Definition at line 225 of file commands.h.

Referenced by KFormDesigner::BreakLayoutCommand::BreakLayoutCommand(), execute(), and name().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:50:57 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003