QVISH 0.1
Public Types | Public Slots | Signals | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
Wizt::VObjectFrame Class Referenceabstract

The QT gui for an VObject as part of qvish/net. More...

#include <VObjectFrame.hpp>

Inheritance diagram for Wizt::VObjectFrame:
Wizt::VPoolObjectFrame Wizt::VViewerObjectFrame

Public Types

enum  ColorStateValues { OBJECT_IS_UPDATED , OBJECT_HAS_YOUNGER_INPUTS_AND_NEEDS_UPDATE , OBJECT_IS_CURRENTLY_UPDATING , OBJECT_IS_CURRENTLY_COMPUTING }
 

Public Slots

void DecreaseExpertLevel (bool)
 
void DeIconize ()
 
void doDisplayInPool (bool)
 
virtual void HideObject (bool)=0
 
void Iconize ()
 
void IncreaseExpertLevel (bool)
 
void RemoveObject (bool)
 
void setSlotUpdateStatusInfo ()
 
void showNewSlot (QString SlotName)
 
void ShowUserText ()
 
void updateSlotVisibility ()
 
void UserTextChanged ()
 

Signals

void checkNewSlot (QString SlotName)
 
void newExpertLevel (int dY, int newY)
 
void setExpertLevel (int)
 
void setPoolVisibility (bool)
 

Public Member Functions

bool addNewSlot (const RefPtr< VSlot > &what)
 If a new slot is added to the object, display the GUI for it in the object form.
 
int currentExpertLevel () const
 
void DisplayInPool (bool isVisible)
 
RefPtr< VIcongetIcon () const
 
WeakPtr< VObject > getObject () const
 
RefPtr< qVParametergetqVParameter (const WeakPtr< VSlot > &theSlot) const
 
QRect getqVParameterGeometry (const WeakPtr< VSlot > &theSlot) const
 
QRect getVisibleGeometry () const
 Give the geometry of the current visual representation of the object's frame, which can be the geometry of the VObjectFrame or its VIcon, if iconized.
 
int NumberOfInvisibleSlots () const
 
void setTitleColor ()
 
void setViewerOpacity (double V, const ValuePoolPtr &Context)
 
void shiftFrame (const QPoint &difference)
 
void showAtCurrentViewer ()
 
void showAtViewer (const ValuePoolPtr &Context)
 
void updateColors ()
 
 VObjectFrame (const WeakPtr< VObject > &myObject, QWidget *parent, qVInputContext &theInputContext, const WeakPtr< qVShowObjectAction::Actor > &, bool &AutoFold, bool inViewer)
 

Public Attributes

bool & AutoFold
 
enum Wizt::VObjectFrame::ColorStateValues ColorState
 
QPoint NewLocation
 new location as computed by qVDataFlowGraph::computeLocation()
 
bool showAllInputs = false
 

Protected Member Functions

void closeEvent (QCloseEvent *event) override
 
void ExpertLevelChanged (const int &ExpertLevel, const ValuePoolPtr &Context)
 
void focusInEvent (QFocusEvent *) override
 
void focusOutEvent (QFocusEvent *) override
 
void leaveEvent (QEvent *event) override
 
void mouseDoubleClickEvent (QMouseEvent *e) override
 
void mouseMoveEvent (QMouseEvent *) override
 
void mousePressEvent (QMouseEvent *) override
 
void mouseReleaseEvent (QMouseEvent *) override
 
void moveEvent (QMoveEvent *event) override
 
void paintEvent (QPaintEvent *) override
 
void PoolStatusChanged (const Enum &Iconized, const ValuePoolPtr &Context)
 
void PositionXPropertyChanged (const int &PositionX, const ValuePoolPtr &Context)
 
void PositionYPropertyChanged (const int &PositionY, const ValuePoolPtr &Context)
 
void ViewerExpertLevelChanged (const int &ExpertLevel, const ValuePoolPtr &Context)
 
void ViewerFrameVisibilityChanged (const double &, const ValuePoolPtr &Context)
 
void ViewerPositionXPropertyChanged (const int &PositionX, const ValuePoolPtr &Context)
 
void ViewerPositionYPropertyChanged (const int &PositionY, const ValuePoolPtr &Context)
 

Protected Attributes

GUISlot< int > ExpertLevel
 
GUISlot< Enum > FrameVisibility
 
bool haveViewerUnderCreation = false
 
bool isInViewer
 
QPointer< QMenu > menu
 
RefPtr< VIconmyIcon
 
qVInputContextmyInputContext
 
RefPtr< qVParameter::qVParameterEnvironmentConstructormyParameterEnvironmentConstructor
 
GUISlot< int > PositionXProperty
 
GUISlot< int > PositionYProperty
 
WeakPtr< qVShowObjectAction::ActortheActor
 
GUISlot< int > ViewerExpertLevel
 
GUISlot< double > ViewerFrameVisibility
 
GUISlot< int > ViewerPositionXProperty
 
GUISlot< int > ViewerPositionYProperty
 

Friends

class QStatusLabel
 
class qVObjectFrameTitle
 

Detailed Description

The QT gui for an VObject as part of qvish/net.

Constructor & Destructor Documentation

◆ VObjectFrame()

Wizt::VObjectFrame::VObjectFrame ( const WeakPtr< VObject > &  myObject,
QWidget *  parent,
qVInputContext theInputContext,
const WeakPtr< qVShowObjectAction::Actor > &  theActor,
bool &  AutoFold,
bool  inViewer 
)

Show/hide input object

Member Function Documentation

◆ addNewSlot()

bool Wizt::VObjectFrame::addNewSlot ( const RefPtr< VSlot > &  what)

If a new slot is added to the object, display the GUI for it in the object form.

Returns
Diagnostics whether a GUI element for this slot has been created.

◆ getVisibleGeometry()

QRect Wizt::VObjectFrame::getVisibleGeometry ( ) const

Give the geometry of the current visual representation of the object's frame, which can be the geometry of the VObjectFrame or its VIcon, if iconized.

If the object is hidden, then NULL QRect is returned (QRect::isNull() ).


The documentation for this class was generated from the following files: