CPViewer

## class CPViewer : public DiagramViewer

> component diagram viewer class.

## Inheritance:

### Public Methods

  | CPViewer (Config *c, CPWindow *w)

### Inherited from DiagramViewer:

### Public Methods

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)
void ConvertNodeShapes()
virtual void DeleteSubjects()
void SetIndexes(bool b)
void Reindex(List<Node *> *nodes)
virtual void ZoomIn()
void ZoomOut()
void TopLevel()
LineEndDialog* GetLineEndDialog()
void UpdateLineEnd()
void ShowDefaultLineEnd()
void UpdateLineEndSelection(LineEnd::Type e1, LineEnd::Type e2)
NodeAlignmentDialog* GetNodeAlignmentDialog()
void ShowDefaultNodeAlignment()
NodeShapeDialog* GetNodeShapeDialog()
void ShowDefaultNodeShape()

### Protected Methods

List <ShapeView *> * GetViews() const
void EmptySelectionMessage()
void EmptyShapesMessage()

### Inherited from Viewer:

### Public Fields

static const int MIN_LINE_WIDTH
static const int MAX_LINE_WIDTH

### Public Methods

Scaler* GetScaler() const
Command* GetLastCmd()
DrawWindow* GetMainWindow() const
Grafport* GetGrafport() const
Printer* GetPrinter() const
void SetPrinter(Printer *p)
NToggleListDialog* GetLineWidthDialog()
NToggleListDialog* GetLineStyleDialog()
NToggleListDialog* GetTextAlignmentDialog()
FontChooserDialog* GetFontChooserDialog()
FileSelectionDialog* GetPrintFileSelectionDialog()
ColorChooserDialog* GetColorChooserDialog()
int Scale(int x) const
Point Scale(const Point *p) const
int ScaleCorrect(int x) const
Point ScaleCorrect(const Point *p) const
void Undo()
void Redo()
void Refresh()
virtual void Activate()
virtual void Deactivate()
void SetDefaultLineWidth(unsigned d)
int GetDefaultLineWidth()
void UpdateLineWidth()
void DefaultLineWidth()
void ShowDefaultLineWidth()
void ShowConfigLineWidth()
void SetDefaultLineStyle(LineStyle::Type l)
LineStyle::Type GetDefaultLineStyle()
void UpdateLineStyle()
void DefaultLineStyle()
void ShowDefaultLineStyle()
void ShowConfigLineStyle()
void SetDefaultLineColor(const string *s)
const string* GetDefaultLineColor()
void SetDefaultTextColor(const string *s)
const string* GetDefaultTextColor()
void SetDefaultFillColor(const string *s)
const string* GetDefaultFillColor()
FillStyle::Type GetDefaultFillStyle() const
void SetDefaultFillStyle(FillStyle::Type l)
void UpdateLineColor()
void DefaultLineColor()
void ShowDefaultLineColor()
void ShowConfigLineColor()
void UpdateTextColor()
void DefaultTextColor()
void ShowDefaultTextColor()
void ShowConfigTextColor()
void UpdateFillColor()
void DefaultFillColor()
void ShowDefaultFillColor()
void ShowConfigFillColor()
XFont* GetDefaultFont() const
void SetDefaultFontAttributes(int f, int s, int p)
virtual void SetDefaultFont(XFont *ft)
void UpdateFont()
void DefaultFont()
void ShowDefaultFont()
void ShowConfigFont()
XFont* GetFont(int family, int style, int size)
XFont* GetFont(const char *description)
void UpdateTextAlignment()
void DefaultTextAlignment()
void ShowDefaultTextAlignment()
void ShowConfigTextAlignment()
TextAlign::Type GetDefaultTextAlignment() const
void SetDefaultTextAlignment(TextAlign::Type a)
void EditText(int key)
bool IsAutoResize() const
void SetAutoResize(bool s)
bool IsInlineEdit() const
void SetInlineEdit(bool s)
bool IsPasting() const
void SetPasting(bool b)
bool IsZigZag() const
void SetZigZag(bool b)
bool IsEditing() const
void DoubleClick()
void DoFunctionKey(int)
void NewCommand(Command *newCmd)
void AbortCommand()
void ExecuteCommand()
void UndoCommand()
void RedoCommand()
void DeleteCommands()
void GetPageSize(double &width, double &height)
void Save(OutputFile *f)
bool Load(InputFile *f, double format)
bool Check(InputFile *f, double format)

### Protected Methods

void ClearGrafport()
InlineEditor* GetInlineEditor() const
void SetInlineEditor(InlineEditor *i)
void SetEditing(bool b)

## Documentation

> component diagram viewer class.

`CPViewer(Config *c, CPWindow *w)`

This class has no child classes.

alphabetic index hierarchy of classes

this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de