/// Put the cursor in the last position
void last();
///
+ bool plainLeft();
+ ///
bool plainRight();
///
void Delete();
///
MathTextCodes getLastCode() const;
///
- int idx() const { return idx_; }
+ int idx() const { return cursor_.idx_; }
///
void idxNext();
///
bool macro_mode;
// Selection stuff
- ///
+ /// do we currently select
bool selection;
- ///
- int anchor_;
- ///
- int cursor_;
- ///
- int idx_;
- ///
- MathInset * par_;
+
///
InsetFormulaBase * const formula_;
///
private:
/// Description of a position
struct MathIter {
+ /// inset
MathInset * par_;
+ /// cell inset
int idx_;
- int cursor_;
+ ///
+ int pos_;
};
- /// MathPath
+ /// path of positions the cursor had to go if it were leving each inset
std::vector<MathIter> path_;
+ /// reference to the last item of the path
+ MathIter anchor_;
+ ///
+ MathIter cursor_;
+ ///
+ int path_idx_;
+
+
///
int last() const;
///