The invention is directed to aminoquinoline and aminoquinazoline compounds
of Formula I: where R.sub.1, R.sub.2, R.sub.3, B, Z, Q, p, q and X are
as defined herein, the use of such compounds as protein tyrosine kinase
modulators, particularly inhibitors of FLT3 and/or TrkB, the use of such
compounds to reduce or inhibit kinase activity of FLT3 and/or TrkB in a
cell or a subject, and the use of such compounds for preventing or
treating in a subject a cell proliferative disorder and/or disorders
related to FLT3 and/or TrkB. The present invention is further directed to
pharmaceutical compositions comprising the compounds of the present
invention and to methods for treating conditions such as cancers and
other cell proliferative disorders.