diagram viewer class, responsible for the contents of the drawing area.
![]() | DiagramViewer (Config *c, DiagramWindow *w) |
![]() | ~DiagramViewer () |
![]() | Initialize () |
![]() | SetDiagram (Diagram *d) |
![]() | GetDiagram () const |
![]() | SetGrafport (Grafport *g) |
![]() | GetBuffer () const |
![]() | GetGrid () const |
![]() | GetDefaultNodeType () const |
![]() | GetDefaultEdgeType () const |
![]() | GetDefaultNodeShapeType () const |
![]() | GetDefaultLineType () const |
![]() | IsDefaultCurve () const |
![]() | SetDefaultNodeType (int n) |
![]() | SetDefaultEdgeType (int n) |
![]() | SetDefaultNodeShapeType (int n) |
![]() | SetDefaultLineType (int n) |
![]() | SetDefaultCurve (bool s) |
![]() | SetShowIndexes (bool b) |
![]() | IsShowIndexes () |
![]() | GetDefaultNodeLineStyle () const |
![]() | GetDefaultEdgeLineStyle () const |
![]() | SetDefaultNodeLineStyle (LineStyle::Type l) |
![]() | SetDefaultEdgeLineStyle (LineStyle::Type l) |
![]() | GetDefaultLineEnd1 () |
![]() | GetDefaultLineEnd2 () |
![]() | SetDefaultLineEnd1 (LineEnd::Type t) |
![]() | SetDefaultLineEnd2 (LineEnd::Type t) |
![]() | Snap (int i) const forwarding to grid object. |
![]() | Snap (Point *p) |
![]() | SetStatus (const char *msg) |
![]() | SetStatus (const string *msg) |
![]() | SetCursor (int cursor) |
![]() | SetSizeCursor (int cursor) |
![]() | Draw () Draw all shapes of current view to grafport. |
![]() | Undraw () Erase all shapes of current view from grafport. |
![]() | Redraw () Redraw everything including grid. |
![]() | GetCurView () const return current view. |
![]() | DeleteAllViews () |
![]() | NumberOfViews () const |
![]() | AddView (ShapeView *v) |
![]() | SetView (ShapeView *v) |
![]() | UpdateView (ShapeView *v) |
![]() | HasView (const string *index) |
![]() | HasView (ShapeView *v) |
![]() | GetView (const string *index) |
![]() | CheckShapes () Check all shapes in all views. |
![]() | WriteShapes (OutputFile *f) write all shapes from all views to ofile. |
![]() | WriteSelection (OutputFile *f) write all selected shapes from current view to ofile. |
![]() | Select (int x, int y) perform the button1 functions (includes creating and moving shapes). |
![]() | Adjust (int x, int y) Perform the 2nd button function: (de)selection. |
![]() | Drag (int x, int y) drag shapes and handles of line-segments. |
![]() | Connect (int x, int y) create an edge between nodes. |
![]() | MovingPointer (int x, int y) change cursor to show the possible command (resize, move or edit). |
![]() | KeyTyped (int x, int y, int key) start textmode, or (if in textmode) handle key. (x,y) is position. |
![]() | TextModeOff () stop being in editing mode. |
![]() | DeselectAll () deselect all shapes in all views in the viewer. |
![]() | GetShape (Subject *subject) return first shape from shapes having given subject (in any view). |
![]() | GetShapes (Subject *subject, List<GShape *> *shapes) put in shapes all shapes from all views having given subject. |
![]() | Cut () Cut subjects/shapes cmd from current view to buffer. |
![]() | Copy () Copy subjects/shapes cmd from current view to buffer. |
![]() | Paste () Paste from buffer to current view and graph. |
![]() | Duplicate () Node shapes in selection are duplicated, pasted in current view. |
![]() | AlignNodeShapes () Align selection in current view according to given align type. |
![]() | AlignNodes (NodeAlign::Type alignment) Align selection in current view according to given align type. |
![]() | UpdateCurve () Convert selected curves from/to selected segmented lines. |
![]() | UpdateTextUnderline () Set/Unset the text underlining of the names of the selected shapes. |
![]() | FindAll (const string *s, bool sens, bool substr, bool nameOnly) select all shapes having string s (sens case sensitive). |
![]() | FindNext (const string *s, bool sens, bool substr, bool nameOnly) select next shape having string s, and set cursor before it. |
![]() | ReplaceNext (const string *s1, const string *s2, bool sens, bool substr, bool nameOnly) replace string in next shape in current view. |
![]() | ReplaceAll (const string *s1, const string *s2, bool sens, bool substr, bool nameOnly) replace all strings in current view. |
![]() | Annotate () edit annotation of first selected subject in current view. |
![]() | DeleteShapes () Delete shapes (and event. subjects) from selection. |
![]() | DeleteAll () All shapes (and subjects) are deleted from current view. |
![]() | SameSize () makes the size of selection shapes equal to size of the first. |
![]() | MoveAllShapes (Document::MoveType t) move all shapes in current view according to move type. |
![]() | SelectAll () select all shapes in the current view. |
![]() | UpdateTextAlignmentSelection (TextAlign::Type a) update text alignment of selection in current view. |
![]() | UpdateText (TextShape *t, const string *newtext, const string *oldtext) update text of textshape. |
![]() | UpdateLineWidthSelection (unsigned i) update line width of selected shapes. |
![]() | UpdateLineStyleSelection (LineStyle::Type s) update line style of selected shapes. |
![]() | UpdateFontSelection (int family, int style, int size) update the fonts of selected shapes. |
![]() | UpdateLineColorSelection (const string *color) update the colors of the lines of the selected shapes. |
![]() | UpdateTextColorSelection (const string *color) update the colors of the texts of the selected shapes. |
![]() | UpdateFillColorSelection (const string *color, FillStyle::Type f) update the fill colors of the selected shapes. |
![]() | CalcSizeElements (Point &topLeft, Point &bottomRight) calculate size of shapes in current view. |
![]() | CalcSizeSelection (Point &topLeft, Point &bottomRight) calc size of selection in current view. |
![]() | CalcSizeShapes (List<GShape *> *shapes, Point &topLeft, Point &bottomRight) calculate covered area of shapes in grafport. |
![]() | ShapePositionUpdate (GShape *shape) for each line connecting shape, position is propagated. |
![]() | UpdateDuplicationMarks (List<Subject *> *s) Update the duplication marks of shapes of given subjects. |
![]() | UpdateDuplicationMarks (Subject *s) Update the duplication marks of shapes of given subject. |
![]() | UpdateMoveShapes (List<GShape *> *shapes, const Point *delta) shapes are moved delta and result is propagated to drawing area. |
![]() | MoveShapes (List<GShape *> *shapes, const Point *delta) all shapes are moved delta (result not propagated). |
![]() | UpdateNodeShapeType (int) convert selected node shapes to given code |
![]() | ConvertNodeShapes () convert selected node shapes. |
![]() | DeleteSubjects () |
![]() | SetIndexes (bool b) |
![]() | Reindex (List<Node *> *nodes) |
![]() | ZoomIn () |
![]() | ZoomOut () |
![]() | TopLevel () |
![]() | GetLineEndDialog () |
![]() | UpdateLineEnd () |
![]() | ShowDefaultLineEnd () |
![]() | UpdateLineEndSelection (LineEnd::Type e1, LineEnd::Type e2) |
![]() | GetNodeAlignmentDialog () |
![]() | ShowDefaultNodeAlignment () |
![]() | GetNodeShapeDialog () |
![]() | ShowDefaultNodeShape () |
![]() | GetViews () const |
![]() | EmptySelectionMessage () error message because of empty selection. |
![]() | EmptyShapesMessage () error message because there are no shapes. |
diagram viewer class, responsible for the contents of the drawing area.
virtual ~DiagramViewer()
void Initialize()
void SetDiagram(Diagram *d)
Diagram* GetDiagram() const
void SetGrafport(Grafport *g)
Buffer* GetBuffer() const
Grid* GetGrid() const
int GetDefaultNodeType() const
int GetDefaultEdgeType() const
int GetDefaultNodeShapeType() const
int GetDefaultLineType() const
bool IsDefaultCurve() const
void SetDefaultNodeType(int n)
void SetDefaultEdgeType(int n)
void SetDefaultNodeShapeType(int n)
void SetDefaultLineType(int n)
void SetDefaultCurve(bool s)
void SetShowIndexes(bool b)
bool IsShowIndexes()
LineStyle::Type GetDefaultNodeLineStyle() const
LineStyle::Type GetDefaultEdgeLineStyle() const
void SetDefaultNodeLineStyle(LineStyle::Type l)
void SetDefaultEdgeLineStyle(LineStyle::Type l)
LineEnd::Type GetDefaultLineEnd1()
LineEnd::Type GetDefaultLineEnd2()
void SetDefaultLineEnd1(LineEnd::Type t)
void SetDefaultLineEnd2(LineEnd::Type t)
int Snap(int i) const
void Snap(Point *p)
void SetStatus(const char *msg)
void SetStatus(const string *msg)
void SetCursor(int cursor)
void SetSizeCursor(int cursor)
virtual void Draw()
virtual void Undraw()
void Redraw()
ShapeView* GetCurView() const
void DeleteAllViews()
unsigned int NumberOfViews() const
bool AddView(ShapeView *v)
void SetView(ShapeView *v)
void UpdateView(ShapeView *v)
bool HasView(const string *index)
bool HasView(ShapeView *v)
ShapeView* GetView(const string *index)
void CheckShapes()
void WriteShapes(OutputFile *f)
void WriteSelection(OutputFile *f)
void Select(int x, int y)
void Adjust(int x, int y)
Command* Drag(int x, int y)
Command* Connect(int x, int y)
void MovingPointer(int x, int y)
void KeyTyped(int x, int y, int key)
void TextModeOff()
void DeselectAll()
GShape* GetShape(Subject *subject)
void GetShapes(Subject *subject, List<GShape *> *shapes)
virtual void Cut()
virtual void Copy()
virtual void Paste()
virtual void Duplicate()
virtual void AlignNodeShapes()
virtual void AlignNodes(NodeAlign::Type alignment)
virtual void UpdateCurve()
virtual void UpdateTextUnderline()
virtual void FindAll(const string *s, bool sens, bool substr, bool nameOnly)
virtual void FindNext(const string *s, bool sens, bool substr, bool nameOnly)
virtual void ReplaceNext(const string *s1, const string *s2, bool sens, bool substr, bool nameOnly)
virtual void ReplaceAll(const string *s1, const string *s2, bool sens, bool substr, bool nameOnly)
virtual void Annotate()
virtual void DeleteShapes()
virtual void DeleteAll()
virtual void SameSize()
virtual void MoveAllShapes(Document::MoveType t)
virtual void SelectAll()
void UpdateTextAlignmentSelection(TextAlign::Type a)
void UpdateText(TextShape *t, const string *newtext, const string *oldtext)
void UpdateLineWidthSelection(unsigned i)
void UpdateLineStyleSelection(LineStyle::Type s)
void UpdateFontSelection(int family, int style, int size)
void UpdateLineColorSelection(const string *color)
void UpdateTextColorSelection(const string *color)
void UpdateFillColorSelection(const string *color, FillStyle::Type f)
void CalcSizeElements(Point &topLeft, Point &bottomRight)
void CalcSizeSelection(Point &topLeft, Point &bottomRight)
void CalcSizeShapes(List<GShape *> *shapes, Point &topLeft, Point &bottomRight)
void ShapePositionUpdate(GShape *shape)
void UpdateDuplicationMarks(List<Subject *> *s)
void UpdateDuplicationMarks(Subject *s)
void UpdateMoveShapes(List<GShape *> *shapes, const Point *delta)
void MoveShapes(List<GShape *> *shapes, const Point *delta)
virtual void UpdateNodeShapeType(int)