The present invention relates to compounds of formula I or pharmaceutically acceptable salts thereof: Wherein n, R1, R2, R3, R4, R5, A, Q and X are as defined in the description. These compounds selectively modulate, regulate, and/or inhibit signal transduction mediated by certain native and/or mutant proteine kinases implicated in a variety of human and animal diseases such as cell proliferative, metabolic, allergic, and degenerative disorders. More particularly, these compounds are potent and selective native and/or mutant c-kit inhibitors.本發明係關於式I化合物或其醫藥上可接受之鹽:其中n、R1、R2、R3、R4、R5、A、Q及X係如說明書中所定義。該等化合物選擇性地調節、調控及/或抑制某些天然及/或突變蛋白質激酶介導之信號轉導,該等激酶涉及各種人類及動物疾病,諸如細胞增殖、代謝、過敏及退化病症。更特別地,該等化合物係強效及選擇性天然及/或突變c-kit抑制劑。