Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

mcText Class Reference

#include <Text.h>

Inheritance diagram for mcText:

Inheritance graph
[legend]
Collaboration diagram for mcText:

Collaboration graph
[legend]
List of all members.

Detailed Description

A simple class using MathCore mcElement functions to create a simple editable text box.

Used for subscripts.

Definition at line 340 of file Text.h.

Public Member Functions

mcWRAPPER bool data_isArrayEmpty () const
mcWRAPPER bool data_isToReject (wxChar c) const
mcWRAPPER void data_SetText (const wxString &str)
mcWRAPPER void data_SetAsMultiline ()
mcWRAPPER void data_SetAsSingleline ()
mcWRAPPER void data_SetFilter (const wxString &str)
mcWRAPPER wxString data_GetText () const
mcWRAPPER wxString data_GetLongestStr () const
mcWRAPPER wxString data_GetFilter () const
mcWRAPPER int data_GetRowCount () const
mcWRAPPER bool data_isValidContainerFor (mcElementType t) const
 Returns TRUE if this element can safely contain the given element type.
mcWRAPPER int gui_GetRowHeight (wxDC *dc, int i) const
mcWRAPPER int gui_GetRowWidth (wxDC *dc, int i) const
mcWRAPPER int gui_Draw (wxDC &dc, int x, int y, long flags, int w, wxColour *color) const

Private Member Functions

 mcDEFINE_MAIN_CLASS (Text, mcDecoration)


Member Function Documentation

mcWRAPPER wxString mcText::data_GetFilter  )  const [inline]
 

Definition at line 372 of file Text.h.

References mcWRAPPER.

mcWRAPPER wxString mcText::data_GetLongestStr  )  const [inline]
 

Definition at line 369 of file Text.h.

References mcWRAPPER.

mcWRAPPER int mcText::data_GetRowCount  )  const [inline]
 

Definition at line 375 of file Text.h.

References mcWRAPPER.

mcWRAPPER wxString mcText::data_GetText  )  const [inline]
 

Definition at line 366 of file Text.h.

References mcWRAPPER.

Referenced by mcFunctionHelpers::data_GetName().

mcWRAPPER bool mcText::data_isArrayEmpty  )  const [inline]
 

Definition at line 348 of file Text.h.

References mcWRAPPER.

mcWRAPPER bool mcText::data_isToReject wxChar  c  )  const [inline]
 

Definition at line 351 of file Text.h.

References mcWRAPPER.

Referenced by mcFunctionHelpers::gui_isBaseEndKey().

mcWRAPPER bool mcText::data_isValidContainerFor mcElementType  t  )  const [inline, virtual]
 

Returns TRUE if this element can safely contain the given element type.

Without this function a lot of errors could be undetectable:

        mcPolynomial pol; // creates a new polynomial
        mcElement e(pol); // references it
        [...]    // the programmers forgots what "e" references
        mcFraction f(e);  // mcFraction wraps a mcPolynomialHelpers class !
        f.data_GetNum();  // CRASH

This function must be overridden by mcElement-derived classes in order to provide a list of the mcElementType it can safely contain.

Reimplemented from mcDecoration.

Definition at line 378 of file Text.h.

References mcET_TEXT, and mcWRAPPER.

mcWRAPPER void mcText::data_SetAsMultiline  )  [inline]
 

Definition at line 357 of file Text.h.

References mcWRAPPER.

mcWRAPPER void mcText::data_SetAsSingleline  )  [inline]
 

Definition at line 360 of file Text.h.

References mcWRAPPER.

mcWRAPPER void mcText::data_SetFilter const wxString &  str  )  [inline]
 

Definition at line 363 of file Text.h.

References mcWRAPPER.

Referenced by mcFunctionHelpers::mcFunctionHelpers().

mcWRAPPER void mcText::data_SetText const wxString &  str  )  [inline]
 

Definition at line 354 of file Text.h.

References mcWRAPPER.

Referenced by mcFunctionHelpers::data_SetName(), and mcSymbolHelpers::data_SetSubscript().

mcWRAPPER int mcText::gui_Draw wxDC &  dc,
int  x,
int  y,
long  flags,
int  w,
wxColour *  color
const [inline]
 

Definition at line 393 of file Text.h.

References mcElement::gui_Draw(), and mcWRAPPER.

Referenced by mcFunctionHelpers::gui_DrawBase().

mcWRAPPER int mcText::gui_GetRowHeight wxDC *  dc,
int  i
const [inline]
 

Definition at line 387 of file Text.h.

References mcWRAPPER.

mcWRAPPER int mcText::gui_GetRowWidth wxDC *  dc,
int  i
const [inline]
 

Definition at line 390 of file Text.h.

References mcWRAPPER.

mcText::mcDEFINE_MAIN_CLASS Text  ,
mcDecoration 
[private]
 


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

Documentation generated with Doxygen on Sun Feb 6 17:13:16 2005
Visit MathStudio home page for more info

[ Top ]