ControlMath.C: cleanup order of symbols in math panel
iconpalette.C: 6 cols since many symbols come in pairs
Rrightarrow.xpm: was missing
searrow.xpm: was north east
swarrow.xpm: was north west


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16316 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Edwin Leuven 2006-12-17 17:36:00 +00:00
parent 822df54fc2
commit dc8bba7918
5 changed files with 173 additions and 95 deletions

View File

@ -0,0 +1,29 @@
/* XPM */
static char *Rrightarrow[] = {
/* columns rows colors chars-per-pixel */
"25 21 2 1",
" c black",
". c None",
/* pixels */
"............... .........",
"............... .........",
"................ ........",
"................. .......",
" ......",
".................. .....",
"................... ....",
".................... ...",
"..................... ..",
"...................... .",
" ",
"...................... .",
"..................... ..",
".................... ...",
"................... ....",
".................. .....",
" ......",
"................. .......",
"................ ........",
"............... .........",
"............... ........."
};

View File

@ -1,29 +1,28 @@
/* XPM */ /* XPM */
static char *a[] = { static char *searrow[] = {
/* columns rows colors chars-per-pixel */ /* columns rows colors chars-per-pixel */
"20 20 3 1", "20 20 2 1",
" c #000000", " c black",
". c #000000", ". c None",
"X c None",
/* pixels */ /* pixels */
"XXXXXXXXXXXXXX.XXXXX", " ..................",
"XXXXXXXXXXXXXXX....X", ". .................",
"XXXXXXXXXXXXXXXXX..X", ".. ................",
"XXXXXXXXXXXXXXXX.X.X", "... ...............",
"XXXXXXXXXXXXXXX.XX.X", ".... ..............",
"XXXXXXXXXXXXXX.XXX.X", "..... .............",
"XXXXXXXXXXXXX.XXXXX.", "...... ............",
"XXXXXXXXXXXX.XXXXXXX", "....... ...........",
"XXXXXXXXXXX.XXXXXXXX", "........ ..........",
"XXXXXXXXXX.XXXXXXXXX", "......... .........",
"XXXXXXXXX.XXXXXXXXXX", ".......... ........",
"XXXXXXXX.XXXXXXXXXXX", "........... ...... ",
"XXXXXXX.XXXXXXXXXXXX", "............ .... ",
"XXXXXX.XXXXXXXXXXXXX", "............. ... ",
"XXXXX.XXXXXXXXXXXXXX", ".............. . ",
"XXXX.XXXXXXXXXXXXXXX", "............... ",
"XXX.XXXXXXXXXXXXXXXX", "................ ",
"XX..XXXXXXXXXXXXXXXX", "............... ",
"X..XXXXXXXXXXXXXXXXX", ".............. ",
"..XXXXXXXXXXXXXXXXXX" "............. ....."
}; };

View File

@ -1,29 +1,28 @@
/* XPM */ /* XPM */
static char *a[] = { static char *swarrow[] = {
/* columns rows colors chars-per-pixel */ /* columns rows colors chars-per-pixel */
"20 20 3 1", "21 20 2 1",
" c #000000", " c black",
". c #000000", ". c None",
"X c None",
/* pixels */ /* pixels */
"XXXXX.XXXXXXXXXXXXXX", "................... ",
"X....XXXXXXXXXXXXXXX", ".................. .",
"X..XXXXXXXXXXXXXXXXX", "................. ..",
"X.X.XXXXXXXXXXXXXXXX", "................ ...",
"X.XX.XXXXXXXXXXXXXXX", "............... ....",
"X.XXX.XXXXXXXXXXXXXX", ".............. .....",
".XXXXX.XXXXXXXXXXXXX", "............. ......",
"XXXXXXX.XXXXXXXXXXXX", "............ .......",
"XXXXXXXX.XXXXXXXXXXX", "........... ........",
"XXXXXXXXX.XXXXXXXXXX", ".......... .........",
"XXXXXXXXXX.XXXXXXXXX", "......... ..........",
"XXXXXXXXXXX.XXXXXXXX", "........ ...........",
"XXXXXXXXXXXX.XXXXXXX", " ...... ............",
"XXXXXXXXXXXXX.XXXXXX", " .... .............",
"XXXXXXXXXXXXXX.XXXXX", " .. ..............",
"XXXXXXXXXXXXXXX.XXXX", " . ...............",
"XXXXXXXXXXXXXXX..XXX", " ................",
"XXXXXXXXXXXXXXXX..XX", " .................",
"XXXXXXXXXXXXXXXXX..X", " ...............",
"XXXXXXXXXXXXXXXXXX.." " .............."
}; };

View File

@ -126,14 +126,20 @@ char const * latex_deco[] = {
int const nr_latex_deco = sizeof(latex_deco) / sizeof(char const *) - 1; int const nr_latex_deco = sizeof(latex_deco) / sizeof(char const *) - 1;
char const * latex_arrow[] = { char const * latex_arrow[] = {
"downarrow", "leftarrow", "Downarrow", "Leftarrow", "leftarrow", "rightarrow",
"hookleftarrow", "rightarrow", "uparrow", "Rightarrow", "Uparrow", "downarrow", "uparrow", "updownarrow", "leftrightarrow",
"hookrightarrow", "updownarrow", "Leftrightarrow", "leftharpoonup", "Leftarrow", "Rightarrow",
"rightharpoonup", "rightleftharpoons", "leftrightarrow", "Updownarrow", "Downarrow", "Uparrow", "Updownarrow", "Leftrightarrow",
"leftharpoondown", "rightharpoondown", "mapsto", "Longleftrightarrow", "Longleftarrow", "Longrightarrow",
"Longleftarrow", "Longrightarrow", "Longleftrightarrow", "longleftrightarrow", "longleftarrow", "longrightarrow",
"longleftrightarrow", "longleftarrow", "longrightarrow", "longmapsto", "leftharpoondown", "rightharpoondown",
"nwarrow", "nearrow", "swarrow", "searrow", "", "mapsto", "longmapsto",
"nwarrow", "nearrow",
"leftharpoonup", "rightharpoonup",
"hookleftarrow", "hookrightarrow",
"swarrow", "searrow",
"rightleftharpoons",
"",
}; };
int const nr_latex_arrow = sizeof(latex_arrow) / sizeof(char const *); int const nr_latex_arrow = sizeof(latex_arrow) / sizeof(char const *);
@ -225,50 +231,95 @@ char const * latex_ams_misc[] = {
int const nr_latex_ams_misc = sizeof(latex_ams_misc) / sizeof(char const *); int const nr_latex_ams_misc = sizeof(latex_ams_misc) / sizeof(char const *);
char const * latex_ams_arrows[] = { char const * latex_ams_arrows[] = {
"dashrightarrow", "dashleftarrow", "leftleftarrows", "dashleftarrow", "dashrightarrow",
"leftrightarrows", "Lleftarrow", "twoheadleftarrow", "leftleftarrows", "leftrightarrows",
"leftarrowtail", "looparrowleft", "leftrightharpoons", "rightrightarrows", "rightleftarrows",
"curvearrowleft", "circlearrowleft", "Lsh", "Lleftarrow", "Rrightarrow",
"upuparrows", "upharpoonleft", "downharpoonleft", "twoheadleftarrow", "twoheadrightarrow",
"multimap", "leftrightsquigarrow", "rightrightarrows", "leftarrowtail", "rightarrowtail",
"rightleftarrows", "rightrightarrows", "rightleftarrows", "looparrowleft", "looparrowright",
"twoheadrightarrow", "rightarrowtail", "looparrowright", "curvearrowleft", "curvearrowright",
"rightleftharpoons", "curvearrowright", "circlearrowright", "circlearrowleft", "circlearrowright",
"Rsh", "downdownarrows", "upharpoonright", "Lsh", "Rsh",
"downharpoonright", "rightsquigarrow", "upuparrows", "downdownarrows",
"nleftarrow", "nrightarrow", "nLeftarrow", "upharpoonleft", "upharpoonright",
"nRightarrow", "nleftrightarrow", "nLeftrightarrow", "" "downharpoonleft", "downharpoonright",
"leftrightharpoons", "rightleftharpoons",
"rightsquigarrow", "leftrightsquigarrow",
"nleftarrow", "nrightarrow", "nleftrightarrow",
"nLeftarrow", "nRightarrow", "nLeftrightarrow",
"multimap",
""
}; };
int const nr_latex_ams_arrows = sizeof(latex_ams_arrows) / sizeof(char const *); int const nr_latex_ams_arrows = sizeof(latex_ams_arrows) / sizeof(char const *);
char const * latex_ams_rel[] = { char const * latex_ams_rel[] = {
"leqq", "leqslant", "eqslantless", "eqslantgtr", "gtrsim", "gtrapprox", "leqq", "geqq",
"lesssim", "lessapprox", "approxeq", "gtrdot", "ggg", "gtrless", "leqslant", "geqslant",
"lessdot", "lll", "lessgtr", "gtreqless", "gtreqqless", "eqcirc", "eqslantless", "eqslantgtr",
"lesseqgtr", "lesseqqgtr", "doteqdot", "circeq", "triangleq", "thicksim", "lesssim", "gtrsim",
"risingdotseq", "fallingdotseq", "backsim", "thickapprox", "supseteqq", "Supset", "lessapprox", "gtrapprox",
"backsimeq", "subseteqq", "Subset", "sqsupset", "succcurlyeq", "curlyeqsucc", "approxeq", "triangleq",
"sqsubset", "preccurlyeq", "curlyeqprec", "succsim", "succapprox", "vartriangleright", "lessdot", "gtrdot",
"precsim", "precapprox", "vartriangleleft", "trianglerighteq", "Vdash", "shortmid", "lll", "ggg",
"trianglelefteq", "vDash", "Vvdash", "shortparallel", "between", "pitchfork", "lessgtr", "gtrless",
"smallsmile", "smallfrown", "bumpeq", "varpropto", "blacktriangleleft", "therefore", "lesseqgtr", "gtreqless",
"Bumpeq", "geqq", "geqslant", "backepsilon", "blacktriangleright", "because", "" "lesseqqgtr", "gtreqqless",
"eqcirc", "circeq",
"thicksim", "thickapprox",
"backsim", "backsimeq",
"subseteqq", "supseteqq",
"Subset", "Supset",
"sqsubset", "sqsupset",
"preccurlyeq", "succcurlyeq",
"curlyeqprec", "curlyeqsucc",
"precsim", "succsim",
"precapprox", "succapprox",
"vartriangleleft", "vartriangleright",
"trianglelefteq", "trianglerighteq",
"bumpeq", "Bumpeq",
"doteqdot", "risingdotseq", "fallingdotseq",
"vDash", "Vvdash", "Vdash",
"shortmid", "shortparallel",
"smallsmile", "smallfrown",
"blacktriangleleft", "blacktriangleright",
"because", "therefore",
"backepsilon",
"varpropto",
"between",
"pitchfork",
""
}; };
int const nr_latex_ams_rel = sizeof(latex_ams_rel) / sizeof(char const *); int const nr_latex_ams_rel = sizeof(latex_ams_rel) / sizeof(char const *);
char const * latex_ams_nrel[] = { char const * latex_ams_nrel[] = {
"nless", "nleq", "nleqslant", "ngeqslant", "ngeqq", "gneq", "nless", "ngtr",
"nleqq", "lneq", "lneqq", "gneqq", "gvertneqq", "gnsim", "nleq", "ngeq",
"lvertneqq", "lnsim", "lnapprox", "gnapprox", "nsucc", "nsucceq", "nleqslant", "ngeqslant",
"nprec", "npreceq", "precnsim","succnsim", "succnapprox", "ncong", "nleqq", "ngeqq",
"precnapprox", "nsim", "nshortmid", "nshortparallel", "nparallel", "nvDash", "lneq", "gneq",
"lneqq", "gneqq",
"nmid", "nvdash", "nvDash", "nVDash", "ntriangleright", "ntrianglerighteq", "lvertneqq", "gvertneqq",
"ntriangleleft", "ntrianglelefteq", "nsubseteq", "nsupseteq", "nsupseteqq", "supsetneq", "lnsim", "gnsim",
"subsetneq", "varsubsetneq", "subsetneqq", "varsupsetneq", "supsetneqq", "varsupsetneqq", "lnapprox", "gnapprox",
"varsubsetneqq", "ngtr", "ngeq", "", "", "" "nprec", "nsucc",
"npreceq", "nsucceq",
"precnsim", "succnsim",
"precnapprox", "succnapprox",
"subsetneq", "supsetneq",
"subsetneqq", "supsetneqq",
"nsubseteq", "nsupseteq", "nsupseteqq",
"nvdash", "nvDash", "nVDash",
"varsubsetneq", "varsupsetneq",
"varsubsetneqq", "varsupsetneqq",
"ntriangleleft", "ntriangleright",
"ntrianglelefteq", "ntrianglerighteq",
"ncong", "nsim",
"nmid", "nshortmid",
"nparallel", "nshortparallel",
"", "", ""
}; };
int const nr_latex_ams_nrel = sizeof(latex_ams_nrel) / sizeof(char const *); int const nr_latex_ams_nrel = sizeof(latex_ams_nrel) / sizeof(char const *);

View File

@ -97,9 +97,9 @@ void FlowLayout::setGeometry(const QRect &rect)
QSize FlowLayout::sizeHint() const QSize FlowLayout::sizeHint() const
{ {
int const ncols = 5; // default to (max) 6 columns
int const rows = (itemList.size() - 1 )/ncols + 1; int const cols = qMin(itemList.size(), 6);
int const cols = qMin(rows * itemList.size(), ncols); int const rows = (itemList.size() - 1 )/6 + 1;
return QSize(cols * minimumSize().width() + 1, return QSize(cols * minimumSize().width() + 1,
rows * minimumSize().height() + 1); rows * minimumSize().height() + 1);
} }