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

ExpElement.h File Reference


Detailed Description

Defines the mcExpElementData, mcExpElementGUI, mcExpElementMath, mcExpElementIO, mcExpElement classes.

See ExpElement.cpp for more info.

Definition in file ExpElement.h.

#include "mc/Element.h"
#include "mc/Polynomial.h"
#include "mc/Text.h"

Include dependency graph for ExpElement.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Exponent/subscript choosers

Some very useful routines used to choose between the exponent/subscript version of a mcExpElement function.

int mcEP_HAS (bool exp)
mcExpElemCursorLocation mcECL_BEGIN (bool exp)
mcExpElemCursorLocation mcECL_INSIDE (bool exp)
mcExpElemCursorLocation mcECL_END (bool exp)
mcKeymcGetEditKey (bool exp)
int mcNotInside (bool exp)

Defines

#define mcECL_NOTINSIDEEXPONENT   0x77777777
 If you try to use a EXPONENT function which manipulates the cursor when the cursor is not inside the exponent, this will be the return value of that function !
#define mcECL_NOTINSIDESUBSCRIPT   0x88888888
 Same as mcECL_NOTINSIDEEXP, just for the subscript.

Enumerations

enum  mcExpElemCursorLocation {
  mcECL_EXPONENTBEGIN, mcECL_INSIDEEXPONENT, mcECL_EXPONENTEND,
  mcECL_SUBSCRIPTBEGIN, mcECL_INSIDESUBSCRIPT, mcECL_SUBSCRIPTEND,
  mcECL_INSIDEBASE
}
 Cursor position values handled by mcExpElement Some of the possible values of mgui_nCursorPos variable (derived classes must use different values to indicate different positions). More...


Define Documentation

#define mcECL_NOTINSIDEEXPONENT   0x77777777
 

If you try to use a EXPONENT function which manipulates the cursor when the cursor is not inside the exponent, this will be the return value of that function !

Definition at line 118 of file ExpElement.h.

Referenced by mcNotInside().

#define mcECL_NOTINSIDESUBSCRIPT   0x88888888
 

Same as mcECL_NOTINSIDEEXP, just for the subscript.

Definition at line 121 of file ExpElement.h.

Referenced by mcNotInside().


Enumeration Type Documentation

enum mcExpElemCursorLocation
 

Cursor position values handled by mcExpElement Some of the possible values of mgui_nCursorPos variable (derived classes must use different values to indicate different positions).

Enumeration values:
mcECL_EXPONENTBEGIN  When the exponent is placed on the left of the element, there are two values allowed for the mgui_nCursorPos variable: mcECL_EXPONENTBEGIN and mcECL_INSIDEEXPONENT: |exp | base mgui_nCursorLoc = mcECL_EXPONENTBEGIN.
mcECL_INSIDEEXPONENT  This value is always valid (if data_mdata_bExpEnabled == TRUE): both when the exponent is on the right and when the exponent is placed on the left...

e|xp e|xp base or base mgui_nCursorLoc = mcECL_INSIDEEXPONENT

mcECL_EXPONENTEND  When the exponent is placed on the right of the element, there are two values allowed for the mgui_nCursorPos variable: mcECL_EXPONENTEND and mcECL_INSIDEEXPONENT: exp| base | mgui_nCursorLoc = mcECL_EXPONENTEND.
mcECL_SUBSCRIPTBEGIN  When the subscript is placed on the left of the element, there are two values allowed for the mgui_nCursorPos variable: mcECL_SUBSCRIPTBEGIN and mcECL_INSIDESUBSCRIPT: | base |sub mgui_nCursorLoc = mcECL_SUBSCRIPTBEGIN.
mcECL_INSIDESUBSCRIPT  This value is always valid (if data_mdata_bSubEnabled == TRUE): base s|ub mgui_nCursorLoc = mcECL_INSIDESUBSCRIPT.
mcECL_SUBSCRIPTEND  This value is always valid (if data_mdata_bSubEnabled == TRUE); it is handled exactly as mcECL_EXPONENTEND: that's why they have exactly the same value.

base | sub| mgui_nCursorLoc = mcECL_SUBSCRIPTEND

mcECL_INSIDEBASE  The cursor is inside the base and thus is handled by the base functions which have been implemented in the derived class.

exp ba|se mgui_nCursorLoc = mcECL_INSIDEBASE sub

Definition at line 55 of file ExpElement.h.


Function Documentation

mcExpElemCursorLocation mcECL_BEGIN bool  exp  )  [inline]
 

Definition at line 133 of file ExpElement.h.

References mcECL_EXPONENTBEGIN, and mcECL_SUBSCRIPTBEGIN.

Referenced by mcExpElementHelpers::gui_ExpSubInput(), mcExpElementHelpers::gui_ExpSubMoveCursor(), mcExpElementHelpers::gui_GetExpSubCursorPos(), mcExpElementHelpers::gui_GetExpSubRelCursorPos(), mcExpElementHelpers::gui_isExpSubEndKey(), and mcExpElementHelpers::gui_SetExpSubCursorPos().

mcExpElemCursorLocation mcECL_END bool  exp  )  [inline]
 

Definition at line 139 of file ExpElement.h.

References mcECL_EXPONENTEND, and mcECL_SUBSCRIPTEND.

Referenced by mcExpElementHelpers::gui_ExpSubInput(), mcExpElementHelpers::gui_ExpSubMoveCursor(), mcExpElementHelpers::gui_GetExpSubCursorPos(), mcExpElementHelpers::gui_GetExpSubRelCursorPos(), mcExpElementHelpers::gui_isCursorInExpSub(), mcExpElementHelpers::gui_isExpSubEndKey(), and mcExpElementHelpers::gui_SetExpSubCursorPos().

mcExpElemCursorLocation mcECL_INSIDE bool  exp  )  [inline]
 

Definition at line 136 of file ExpElement.h.

References mcECL_INSIDEEXPONENT, and mcECL_INSIDESUBSCRIPT.

Referenced by mcExpElementHelpers::gui_EditExpSub(), mcExpElementHelpers::gui_ExpSubInput(), mcExpElementHelpers::gui_ExpSubMoveCursor(), mcExpElementHelpers::gui_GetExpSubCursorPos(), mcExpElementHelpers::gui_GetExpSubRelCursorPos(), mcExpElementHelpers::gui_isCursorInExpSub(), and mcExpElementHelpers::gui_isExpSubEndKey().

int mcEP_HAS bool  exp  )  [inline]
 

Definition at line 130 of file ExpElement.h.

References mcEP_HASEXPONENT, and mcEP_HASSUBSCRIPT.

Referenced by mcExpElementHelpers::data_CreateExpSub(), mcExpElementHelpers::data_DestroyExpSub(), mcExpElementHelpers::gui_DeleteExpSub(), mcExpElementHelpers::gui_EditExpSub(), mcExpElementHelpers::gui_ExpSubDraw(), mcExpElementHelpers::gui_GetExpSubCursorPos(), mcExpElementHelpers::gui_GetExpSubSize(), mcExpElementHelpers::gui_isCursorInExpSub(), and mcExpElementHelpers::gui_SetExpSubCursorPos().

mcKey* mcGetEditKey bool  exp  )  [inline]
 

Definition at line 142 of file ExpElement.h.

Referenced by mcExpElementHelpers::gui_ExpSubInput(), and mcExpElementHelpers::gui_isExpSubEndKey().

int mcNotInside bool  exp  )  [inline]
 

Definition at line 146 of file ExpElement.h.

References mcECL_NOTINSIDEEXPONENT, and mcECL_NOTINSIDESUBSCRIPT.

Referenced by mcExpElementHelpers::gui_ExpSubMoveCursorUsingPoint(), and mcExpElementHelpers::gui_GetExpSubRelCursorPos().



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

[ Top ]