Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Public Attributes | Private Attributes
Comments::CommentDiagramToolbar Class Reference

The CommentDiagramToolbar class provides a toolbar for the diagram editor. More...

Inheritance diagram for Comments::CommentDiagramToolbar:

Public Member Functions

 CommentDiagramToolbar (QWidget *parent=0)
 
void applyBackgroundColor (QString color)
 
void applyBorderColor (QString color)
 
void applyEndArrow ()
 
void applyOutlineSize (int i)
 
void applyOutlineType (int i)
 
void applyStartArrow ()
 
void applyTextColor (QString color)
 
void clearCurrentItem ()
 The clearCurrentItem method resets the toolbar. More...
 
bool connectionMode ()
 
void createDiamond ()
 
void createEllipse ()
 
void createRectangle ()
 
void handleTimerEvent ()
 
bool selectionMode ()
 
void setCurrentConnector (Visualization::Item *currentConnector)
 
void setCurrentShape (Visualization::Item *currentShape)
 
void setDiagram (VCommentDiagram *diagram)
 
void setSelection (bool sel)
 
void setSelectionMode (bool sel)
 
void show ()
 
void showConnectionPoints (bool show)
 

Public Attributes

CommentDiagramShape::ShapeType nextShapeToAdd_ {}
 

Private Attributes

QTimer * aTimer_ {}
 
QToolButton * bConnections_ {}
 
QCheckBox * boxEndArrow_ {}
 
QCheckBox * boxStartArrow_ {}
 
QToolButton * bSelection_ {}
 
QToolButton * bSelectShape_ {}
 
QComboBox * cbOutlineSize_ {}
 
ColorPickercolorPickerBackground_ {}
 
ColorPickercolorPickerBorder_ {}
 
ColorPickercolorPickerText_ {}
 
int colorsPerRow_ {}
 
bool connection_ {}
 
Visualization::ItemcurrentItem_ {}
 
VCommentDiagramdiagram_ {}
 
QButtonGroup * group_ {}
 
OutlineTypePickerOutlineTypePicker_ {}
 
bool selection_ {}
 

Detailed Description

The CommentDiagramToolbar class provides a toolbar for the diagram editor.

It shows multiple menu items which can be used to modify diagrams.

It offers the following functionality:

Constructor & Destructor Documentation

◆ CommentDiagramToolbar()

Comments::CommentDiagramToolbar::CommentDiagramToolbar ( QWidget *  parent = 0)

Member Function Documentation

◆ applyBackgroundColor()

void Comments::CommentDiagramToolbar::applyBackgroundColor ( QString  color)

◆ applyBorderColor()

void Comments::CommentDiagramToolbar::applyBorderColor ( QString  color)

◆ applyEndArrow()

void Comments::CommentDiagramToolbar::applyEndArrow ( )

◆ applyOutlineSize()

void Comments::CommentDiagramToolbar::applyOutlineSize ( int  i)

◆ applyOutlineType()

void Comments::CommentDiagramToolbar::applyOutlineType ( int  i)

◆ applyStartArrow()

void Comments::CommentDiagramToolbar::applyStartArrow ( )

◆ applyTextColor()

void Comments::CommentDiagramToolbar::applyTextColor ( QString  color)

◆ clearCurrentItem()

void Comments::CommentDiagramToolbar::clearCurrentItem ( )

The clearCurrentItem method resets the toolbar.

After executing this method no shape or connector is selected and most toolbar items are not available.

◆ connectionMode()

bool Comments::CommentDiagramToolbar::connectionMode ( )

◆ createDiamond()

void Comments::CommentDiagramToolbar::createDiamond ( )

◆ createEllipse()

void Comments::CommentDiagramToolbar::createEllipse ( )

◆ createRectangle()

void Comments::CommentDiagramToolbar::createRectangle ( )

◆ handleTimerEvent()

void Comments::CommentDiagramToolbar::handleTimerEvent ( )

◆ selectionMode()

bool Comments::CommentDiagramToolbar::selectionMode ( )

◆ setCurrentConnector()

void Comments::CommentDiagramToolbar::setCurrentConnector ( Visualization::Item currentConnector)

◆ setCurrentShape()

void Comments::CommentDiagramToolbar::setCurrentShape ( Visualization::Item currentShape)

◆ setDiagram()

void Comments::CommentDiagramToolbar::setDiagram ( VCommentDiagram diagram)

◆ setSelection()

void Comments::CommentDiagramToolbar::setSelection ( bool  sel)

◆ setSelectionMode()

void Comments::CommentDiagramToolbar::setSelectionMode ( bool  sel)

◆ show()

void Comments::CommentDiagramToolbar::show ( )

◆ showConnectionPoints()

void Comments::CommentDiagramToolbar::showConnectionPoints ( bool  show)

Member Data Documentation

◆ aTimer_

QTimer* Comments::CommentDiagramToolbar::aTimer_ {}
private

◆ bConnections_

QToolButton* Comments::CommentDiagramToolbar::bConnections_ {}
private

◆ boxEndArrow_

QCheckBox* Comments::CommentDiagramToolbar::boxEndArrow_ {}
private

◆ boxStartArrow_

QCheckBox* Comments::CommentDiagramToolbar::boxStartArrow_ {}
private

◆ bSelection_

QToolButton* Comments::CommentDiagramToolbar::bSelection_ {}
private

◆ bSelectShape_

QToolButton* Comments::CommentDiagramToolbar::bSelectShape_ {}
private

◆ cbOutlineSize_

QComboBox* Comments::CommentDiagramToolbar::cbOutlineSize_ {}
private

◆ colorPickerBackground_

ColorPicker* Comments::CommentDiagramToolbar::colorPickerBackground_ {}
private

◆ colorPickerBorder_

ColorPicker* Comments::CommentDiagramToolbar::colorPickerBorder_ {}
private

◆ colorPickerText_

ColorPicker* Comments::CommentDiagramToolbar::colorPickerText_ {}
private

◆ colorsPerRow_

int Comments::CommentDiagramToolbar::colorsPerRow_ {}
private

◆ connection_

bool Comments::CommentDiagramToolbar::connection_ {}
private

◆ currentItem_

Visualization::Item* Comments::CommentDiagramToolbar::currentItem_ {}
private

◆ diagram_

VCommentDiagram* Comments::CommentDiagramToolbar::diagram_ {}
private

◆ group_

QButtonGroup* Comments::CommentDiagramToolbar::group_ {}
private

◆ nextShapeToAdd_

CommentDiagramShape::ShapeType Comments::CommentDiagramToolbar::nextShapeToAdd_ {}

◆ OutlineTypePicker_

OutlineTypePicker* Comments::CommentDiagramToolbar::OutlineTypePicker_ {}
private

◆ selection_

bool Comments::CommentDiagramToolbar::selection_ {}
private