Implementing this is not as trivial as I thought.
Two questions so far:

1. QMath is obviously implemented different wrt other dialogs (not in 
Dialogs.C and Dialogs_impl.h). How should the matrix dialog be implemented? 
As a subdialog to Math? Detailed hints are welcome.

2. Any idea how to deal with this beast in qt?

static char h_align_str[80] = "c";
static char v_align_c[] = "tcb";

extern "C" {

        static
        int C_FormMathsMatrixAlignFilter(FL_OBJECT * ob, char const *,
                                         char const * cur, int c)
        {
                lyx::Assert(ob);
                FormMathsMatrix * pre =
                        static_cast<FormMathsMatrix *>(ob->u_vdata);
                lyx::Assert(pre);
                return pre->AlignFilter(cur, c);
        }

}

There is a QRegexpValidator, but only for QT >= 3

Thanks,
Jürgen

Reply via email to