(abstract) viewer class, responsible for the contents of the drawing area.
![]() | MIN_LINE_WIDTH |
![]() | MAX_LINE_WIDTH |
![]() | Viewer (Config *c, DrawWindow *d) |
![]() | ~Viewer () |
![]() | Initialize () |
![]() | GetScaler () const |
![]() | GetLastCmd () |
![]() | GetMainWindow () const |
![]() | GetGrafport () const |
![]() | GetPrinter () const |
![]() | SetPrinter (Printer *p) |
![]() | SetGrafport (Grafport *g) |
![]() | GetLineWidthDialog () |
![]() | GetLineStyleDialog () |
![]() | GetTextAlignmentDialog () |
![]() | GetFontChooserDialog () |
![]() | GetPrintFileSelectionDialog () |
![]() | GetColorChooserDialog () |
![]() | Scale (int x) const forwarding to scaler object. |
![]() | Scale (const Point *p) const |
![]() | ScaleCorrect (int x) const |
![]() | ScaleCorrect (const Point *p) const |
![]() | Draw () Draw all elements of the viewer in grafport. |
![]() | Undraw () Erase all elements from grafport. |
![]() | Undo () Undo last command. |
![]() | Redo () Redo last command. |
![]() | Refresh () Clear grafport contents, and redraw all viewer elements. |
![]() | Redraw () redraw contents of grafport. |
![]() | DeselectAll () deselect all elements in viewer; |
![]() | Select (int x, int y) Perform the function of the 1st button function of the mouse |
![]() | Adjust (int x, int y) Perform the function of the 2nd button function of the mouse. |
![]() | Activate () show that viewer is active. |
![]() | Deactivate () show that viewer is not active. |
![]() | TextModeOff () stop being in editing mode. |
![]() | SetDefaultLineWidth (unsigned d) |
![]() | GetDefaultLineWidth () |
![]() | UpdateLineWidth () |
![]() | DefaultLineWidth () |
![]() | ShowDefaultLineWidth () |
![]() | ShowConfigLineWidth () |
![]() | UpdateLineWidthSelection (unsigned i) |
![]() | SetDefaultLineStyle (LineStyle::Type l) |
![]() | GetDefaultLineStyle () |
![]() | UpdateLineStyle () |
![]() | DefaultLineStyle () |
![]() | ShowDefaultLineStyle () |
![]() | ShowConfigLineStyle () |
![]() | UpdateLineStyleSelection (LineStyle::Type s) |
![]() | SetDefaultLineColor (const string *s) |
![]() | GetDefaultLineColor () |
![]() | SetDefaultTextColor (const string *s) |
![]() | GetDefaultTextColor () |
![]() | SetDefaultFillColor (const string *s) |
![]() | GetDefaultFillColor () |
![]() | GetDefaultFillStyle () const |
![]() | SetDefaultFillStyle (FillStyle::Type l) |
![]() | UpdateLineColorSelection (const string *s) |
![]() | UpdateTextColorSelection (const string *s) |
![]() | UpdateFillColorSelection ( const string *s, FillStyle::Type f) |
![]() | UpdateLineColor () |
![]() | DefaultLineColor () |
![]() | ShowDefaultLineColor () |
![]() | ShowConfigLineColor () |
![]() | UpdateTextColor () |
![]() | DefaultTextColor () |
![]() | ShowDefaultTextColor () |
![]() | ShowConfigTextColor () |
![]() | UpdateFillColor () |
![]() | DefaultFillColor () |
![]() | ShowDefaultFillColor () |
![]() | ShowConfigFillColor () |
![]() | GetDefaultFont () const |
![]() | SetDefaultFontAttributes (int f, int s, int p) |
![]() | SetDefaultFont (XFont *ft) |
![]() | UpdateFont () |
![]() | DefaultFont () |
![]() | ShowDefaultFont () |
![]() | ShowConfigFont () |
![]() | UpdateFontSelection (int family, int style, int size) |
![]() | GetFont (int family, int style, int size) |
![]() | GetFont (const char *description) |
![]() | UpdateTextAlignment () |
![]() | DefaultTextAlignment () |
![]() | ShowDefaultTextAlignment () |
![]() | ShowConfigTextAlignment () |
![]() | GetDefaultTextAlignment () const |
![]() | SetDefaultTextAlignment (TextAlign::Type a) |
![]() | UpdateTextAlignmentSelection (TextAlign::Type a) |
![]() | EditText (int key) |
![]() | IsAutoResize () const |
![]() | SetAutoResize (bool s) |
![]() | IsInlineEdit () const |
![]() | SetInlineEdit (bool s) |
![]() | IsPasting () const |
![]() | SetPasting (bool b) |
![]() | IsZigZag () const |
![]() | SetZigZag (bool b) |
![]() | IsEditing () const |
![]() | MovingPointer (int x, int y) change cursor to show which command can be performed. |
![]() | DoubleClick () not yet implemented (double clicked button). |
![]() | DoFunctionKey (int) not yet implemented (function keys). |
![]() | NewCommand (Command *newCmd) enable execution of last command as newCmd. |
![]() | AbortCommand () abort execution of last command. |
![]() | ExecuteCommand () execute last command. |
![]() | UndoCommand () undo execution of last command. |
![]() | RedoCommand () redo execution of last command. |
![]() | DeleteCommands () delete command history, make undo impossible. |
![]() | Drag (int x, int y) Perform the function of 1st button drag. |
![]() | Connect (int x, int y) Perform the function of 2nd button drag. |
![]() | KeyTyped (int x, int y, int c) Perform the function of keypress 'c'. |
![]() | CalcSizeElements (Point &topLeft, Point &bottomRight) calculate covered area of elements in grafport. |
![]() | CalcSizeSelection (Point &topLeft, Point &bottomRight) calculate covered area of selected elements in grafport. |
![]() | GetPageSize (double &width, double &height) return page size (pixels). |
![]() | Save (OutputFile *f) Save view attributes to file. |
![]() | Load (InputFile *f, double format) Load view attributes from file. |
![]() | Check (InputFile *f, double format) Check but not load view attributes from file. |
![]() | ClearGrafport () Clear contents of grafport. |
![]() | GetInlineEditor () const |
![]() | SetInlineEditor (InlineEditor *i) |
![]() | SetEditing (bool b) |
(abstract) viewer class, responsible for the contents of the drawing area.
virtual ~Viewer()
virtual void Initialize()
Scaler* GetScaler() const
Command* GetLastCmd()
DrawWindow* GetMainWindow() const
Grafport* GetGrafport() const
Printer* GetPrinter() const
void SetPrinter(Printer *p)
virtual void SetGrafport(Grafport *g)
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
virtual void Draw()
virtual void Undraw()
void Undo()
void Redo()
void Refresh()
virtual void Redraw()
virtual void DeselectAll()
virtual void Select(int x, int y)
virtual void Adjust(int x, int y)
virtual void Activate()
virtual void Deactivate()
virtual void TextModeOff()
void SetDefaultLineWidth(unsigned d)
int GetDefaultLineWidth()
void UpdateLineWidth()
void DefaultLineWidth()
void ShowDefaultLineWidth()
void ShowConfigLineWidth()
virtual void UpdateLineWidthSelection(unsigned i)
void SetDefaultLineStyle(LineStyle::Type l)
LineStyle::Type GetDefaultLineStyle()
void UpdateLineStyle()
void DefaultLineStyle()
void ShowDefaultLineStyle()
void ShowConfigLineStyle()
virtual void UpdateLineStyleSelection(LineStyle::Type s)
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)
virtual void UpdateLineColorSelection(const string *s)
virtual void UpdateTextColorSelection(const string *s)
virtual void UpdateFillColorSelection( const string *s, FillStyle::Type f)
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()
virtual void UpdateFontSelection(int family, int style, int size)
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)
virtual void UpdateTextAlignmentSelection(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
virtual void MovingPointer(int x, int y)
void DoubleClick()
void DoFunctionKey(int)
void NewCommand(Command *newCmd)
void AbortCommand()
void ExecuteCommand()
void UndoCommand()
void RedoCommand()
void DeleteCommands()
virtual Command* Drag(int x, int y)
virtual Command* Connect(int x, int y)
virtual void KeyTyped(int x, int y, int c)
virtual void CalcSizeElements(Point &topLeft, Point &bottomRight)
virtual void CalcSizeSelection(Point &topLeft, Point &bottomRight)
void GetPageSize(double &width, double &height)