remove LFUN_DEPTH; some small work on icons and menu reorganization

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3776 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2002-03-19 11:17:46 +00:00
parent 9fd0b17bd4
commit ff86a01601
23 changed files with 153 additions and 153 deletions

View File

@ -1,3 +1,9 @@
2002-03-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* style.xbm:
* font.xbm:
* deco.xbm: remove first, empty line (again!)
2002-03-07 Martin Vermeer <martin.vermeer@hut.fi> 2002-03-07 Martin Vermeer <martin.vermeer@hut.fi>
* style.xbm: * style.xbm:

View File

@ -1,4 +1,3 @@
#define deco1_width 137 #define deco1_width 137
#define deco1_height 120 #define deco1_height 120
static unsigned char const deco1_bits[] = { static unsigned char const deco1_bits[] = {

View File

@ -1,4 +1,3 @@
#define font1_width 60 #define font1_width 60
#define font1_height 180 #define font1_height 180
static unsigned char const font1_bits[] = { static unsigned char const font1_bits[] = {

View File

@ -1,4 +1,3 @@
#define style1_width 60 #define style1_width 60
#define style1_height 60 #define style1_height 60
static unsigned char const style1_bits[] = { static unsigned char const style1_bits[] = {

View File

@ -1,4 +1,26 @@
2002-03-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* ui/default.ui: small cleanup: move Tex info and childs to View,
remove Edit>Floats menu, fix a few shortcuts.
2002-03-18 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* images/depth-increment.xpm:
* images/depth-decrement.xpm: new icons
* images/footnote-insert.xpm:
* images/marginalnote.xpm: small facelift
* images/depth-next.xpm:
* images/marginpar-insert.xpm: removed
* bind/sv_menus.bind:
* bind/sciword.bind:
* ui/old-default.ui:
* ui/default.ui: replace depth-next with depth-increment
2002-03-14 Kayvan A. Sylvan <kayvan@sylvan.com> 2002-03-14 Kayvan A. Sylvan <kayvan@sylvan.com>
* examples/Literate.lyx: Small fix to make sure build-listerrors * examples/Literate.lyx: Small fix to make sure build-listerrors
still works. still works.

View File

@ -298,7 +298,7 @@
#\bind "M-l n" "font-smallcaps" #\bind "M-l n" "font-smallcaps"
#\bind "M-l b" "font-bold" #\bind "M-l b" "font-bold"
#\bind "M-l t" "ert-insert" #\bind "M-l t" "ert-insert"
#\bind "M-l v" "depth-next" #\bind "M-l v" "depth-increment"
#\bind "M-l space" "menu-open Layout" #\bind "M-l space" "menu-open Layout"

View File

@ -97,7 +97,7 @@
#\bind "M-s n" "font-noun" #\bind "M-s n" "font-noun"
#\bind "M-s b" "font-bold" #\bind "M-s b" "font-bold"
#\bind "M-s t" "ert-insert" #\bind "M-s t" "ert-insert"
#\bind "M-s v" "depth-next" #\bind "M-s v" "depth-increment"
#\bind "M-s space" "menu-open Stil" #\bind "M-s space" "menu-open Stil"
#\bind "M-s i" "buffer-itemize-bullets-select" #\bind "M-s i" "buffer-itemize-bullets-select"

View File

@ -154,7 +154,7 @@
\bind "Next" "screen-down" \bind "Next" "screen-down"
# A bit like autoindent in c-mode # A bit like autoindent in c-mode
\bind "Tab" "depth-next" \bind "Tab" "depth-increment"
\bind "C-~S-greater" "reference-goto" \bind "C-~S-greater" "reference-goto"
\bind "C-~S-less" "bookmark-goto 0" \bind "C-~S-less" "bookmark-goto 0"

View File

@ -0,0 +1,27 @@
/* XPM */
static char *depth[]={
"20 20 4 1",
"# c None",
". c #000000",
"b c #7b0000",
"a c #ffffff",
".##a##a##a##a##a##a.",
".aaaaaaaaaaaaaaaaaa.",
".aa..............aa.",
".aaaaaaaaaaaaaaaaaa.",
".aa..............aa.",
".aaaaaaaaaaaaaaaaaa.",
".aaaaaaabbbbbbbbbaa.",
".aa.aaaaaaaaaaaaaaa.",
"#a..aaaabbbbbbbbbaa.",
"#......aaaaaaaaaaaa.",
"#a..aaaabbbbbbbbbaa.",
".aa.aaaaaaaaaaaaaaa.",
".aaaaaaabbbbbbbbbaa.",
".aaaaaaaaaaaaaaaaaa.",
".aaaaaaaaaaaaaaaaaa.",
".aa..............aa.",
".aaaaaaaaaaaaaaaaaa.",
".aa..............aa.",
".aaaaaaaaaaaaaaaaaa.",
".##a##a##a##a##a##a."};

View File

@ -0,0 +1,27 @@
/* XPM */
static char *depth[]={
"20 20 4 1",
"# c None",
". c #000000",
"b c #7b0000",
"a c #ffffff",
".##a##a##a##a##a##a.",
".aaaaaaaaaaaaaaaaaa.",
".aa..............aa.",
".aaaaaaaaaaaaaaaaaa.",
".aa..............aa.",
".aaaaaaaaaaaaaaaaaa.",
".aaaaaaabbbbbbbbbaa.",
".aaa.aaaaaaaaaaaaaa.",
"#aaa..aabbbbbbbbbaa.",
"#......aaaaaaaaaaaa.",
"#aaa..aabbbbbbbbbaa.",
".aaa.aaaaaaaaaaaaaa.",
".aaaaaaabbbbbbbbbaa.",
".aaaaaaaaaaaaaaaaaa.",
".aaaaaaaaaaaaaaaaaa.",
".aa..............aa.",
".aaaaaaaaaaaaaaaaaa.",
".aa..............aa.",
".aaaaaaaaaaaaaaaaaa.",
".##a##a##a##a##a##a."};

View File

@ -1,30 +0,0 @@
/* XPM */
static char const * depth_xpm[] = {
"20 20 5 1",
" c gray60",
". c #000000000000",
"X c #FFFFFFFFFFFF",
"o c #7B7B00000000",
"O c None",
" ",
".XXXXXXXXXXXXXXXXXX.",
".XX..............XX.",
".XXXXXXXXXXXXXXXXXX.",
".XX..............XX.",
".XXXXXXXXXXXXXXXXXX.",
".XXXXXXooooooXXXXXX.",
".XX.XXXXXXXXXXXX.XX.",
"OX..XXXooooooXXX..XO",
"O.....XXXXXXXX.....O",
"OX..XXXooooooXXX..XO",
".XX.XXXXXXXXXXXX.XX.",
".XXXXXXooooooXXXXXX.",
".XXXXXXXXXXXXXXXXXX.",
".XXXXXXXXXXXXXXXXXX.",
".XX..............XX.",
".XXXXXXXXXXXXXXXXXX.",
".XX..............XX.",
".XXXXXXXXXXXXXXXXXX.",
" "};

View File

@ -1,29 +1,27 @@
/* XPM */ /* XPM */
static char const * foot_xpm[] = { static char *footnote[]={
"20 20 4 1", "20 20 4 1",
" c gray60", "# c None",
". c #000000000000", ". c #000000",
"X c #FFFFFFFFFFFF", "b c #7b0000",
"o c #7B7B00000000", "a c #ffffff",
" ", ".##a##a##a##a##a##a#",
".XXXXXXXXXXXXXXXXXX ", ".aaaaaaaaaaaaaaaaaa#",
".XXX............... ", ".aaa...............a",
".XXXXXXXXXXXXXXXXXX ", ".aaaaaaaaaaaaaaaaaa#",
".XXX............... ", ".aaa...............#",
".XXXXXXXXXXXXXXXXXX ", ".aaaaaaaaaaaaaaaaaaa",
".XXX............... ", ".aaa...............#",
".XXXXXXXXXXXXXXXXXX ", ".aaaaaaaaaaaaaaaaaa#",
".XXX............... ", ".aaa...............a",
".XXXXXXXXXXXXXXXXXX ", ".aaaaaaaaaaaaaaaaaa#",
".XXXXXXXXXXXXXXXXXX ", ".aaaaaaaaaaaaaaaaaa#",
".XXXXXXXXXXXXXXXXXX ", ".aaaaaaaaaaaaaaaaaaa",
".XXXXXXXXXXXXXXX.XX ", ".aaaaaaaaaaaaaaa.aa#",
".XXXooooooooXXX..XX ", ".aaabbbbbbbbaaa..aa#",
".XXXXXXXXXXXXX..... ", ".aaaaaaaaaaaaa.....a",
".XXXooooooooXXX..XX ", ".aaabbbbbbbbaaa..aa#",
".XXXXXXXXXXXXXXX.XX ", ".aaaaaaaaaaaaaaa.aa#",
".XXXXXXXXXXXXXXXXXX ", ".aaaaaaaaaaaaaaaaaaa",
".XXXXXXXXXXXXXXXXXX ", ".aaaaaaaaaaaaaaaaaa#",
"................... "}; "...................."};

View File

@ -1,30 +1,27 @@
/* XPM */ /* XPM */
static char const * margin_xpm[] = { static char *marginalnote[]={
"20 20 5 1", "20 20 4 1",
" c gray60", ". c None",
". c #000000000000", "a c #000000",
"X c None", "b c #7b0000",
"o c #FFFFFFFFFFFF", "# c #ffffff",
"O c #7B7B00000000", ".#..#..#..#..#..#..a",
" .................XX", ".##################a",
" oooooooooooooooo.XX", "###################a",
" oooooooooooooooo.XX", ".##################a",
" oooooooooooooooo.XX", ".aaaaaaaaa##bbbbb##a",
" .......ooOOOOOoo.XX", "###################a",
" oooooooooooooooo.XX", ".aaaaaaaaa##bbbbb##a",
" .......ooOOOOOoo.XX", ".##################a",
" oooooooooooooooo.XX", "aaaaaaaaaa##bbbbb##a",
" .......ooOOOOOoo.XX", ".##################a",
" oooooooooooooooo.XX", ".aaaaaaaaa####a####a",
" .......ooooooooo.XX", "#############aaa###a",
" ooooooooooo.oooo.XX", ".aa#########aaaaa##a",
" ..oooooooo...ooo.XX", ".#############a####a",
" ooooooooo.....oo.XX", "aaaaaaaaaa####a####a",
" .......oooo.oooo.XX", ".##################a",
" ooooooooooo.oooo.XX", ".aaaaaaaaa########.a",
" .......ooooooooo.XX", "###################a",
" oooooooooooooooo.XX", ".##################a",
" oooooooooooooooo.XX", ".#..#..#..#..#..#..a"};
" XX"};

View File

@ -1,30 +0,0 @@
/* XPM */
static char const * margin_xpm[] = {
"20 20 5 1",
" c gray60",
". c #000000000000",
"X c None",
"o c #FFFFFFFFFFFF",
"O c #7B7B00000000",
" .................XX",
" oooooooooooooooo.XX",
" oooooooooooooooo.XX",
" oooooooooooooooo.XX",
" .......ooOOOOOoo.XX",
" oooooooooooooooo.XX",
" .......ooOOOOOoo.XX",
" oooooooooooooooo.XX",
" .......ooOOOOOoo.XX",
" oooooooooooooooo.XX",
" .......ooooooooo.XX",
" ooooooooooo.oooo.XX",
" ..oooooooo...ooo.XX",
" ooooooooo.....oo.XX",
" .......oooo.oooo.XX",
" ooooooooooo.oooo.XX",
" .......ooooooooo.XX",
" oooooooooooooooo.XX",
" oooooooooooooooo.XX",
" XX"};

View File

@ -31,7 +31,6 @@ Menuset
Item "Open...|O" "file-open" Item "Open...|O" "file-open"
Separator Separator
Submenu "Import|I" "file_import" Submenu "Import|I" "file_import"
Item "Child processes|h" "show-forks"
Separator Separator
Item "Exit|x" "lyx-quit" Item "Exit|x" "lyx-quit"
Separator Separator
@ -53,7 +52,6 @@ Menuset
Submenu "Export|E" "file_export" Submenu "Export|E" "file_export"
Item "Print...|P" "buffer-print" Item "Print...|P" "buffer-print"
OptItem "Fax...|F" "buffer-export fax" OptItem "Fax...|F" "buffer-export fax"
Item "Child processes|h" "show-forks"
Separator Separator
Item "Exit|x" "lyx-quit" Item "Exit|x" "lyx-quit"
Separator Separator
@ -97,7 +95,6 @@ Menuset
Separator Separator
Item "Find & Replace...|F" "find-replace" Item "Find & Replace...|F" "find-replace"
Submenu "Tabular|T" "edit_tabular" Submenu "Tabular|T" "edit_tabular"
Submenu "Floats & Insets|I" "edit_floats"
Submenu "Math|M" "edit_math" Submenu "Math|M" "edit_math"
Separator Separator
#Item "Read Only" "buffer-toggle-read-only" #Item "Read Only" "buffer-toggle-read-only"
@ -105,6 +102,7 @@ Menuset
Item "Thesaurus..." "thesaurus-entry" Item "Thesaurus..." "thesaurus-entry"
Item "Check TeX|h" "buffer-chktex" Item "Check TeX|h" "buffer-chktex"
Item "Remove All Error Boxes|E" "error-remove-all" Item "Remove All Error Boxes|E" "error-remove-all"
Item "Open/Close float|l" "inset-toggle"
Separator Separator
Item "Preferences...|P" "dialog-preferences" Item "Preferences...|P" "dialog-preferences"
Item "Reconfigure|R" "reconfigure" Item "Reconfigure|R" "reconfigure"
@ -115,15 +113,6 @@ Menuset
Item "as Paragraphs|P" "primary-selection-paste paragraph" Item "as Paragraphs|P" "primary-selection-paste paragraph"
End End
Menu "edit_floats"
Item "Open/Close|O" "inset-toggle"
# Item "Melt|M" "melt"
# Item "Open All Figures/Tables|F" "floats-operate openfig"
# Item "Close All Figures/Tables|T" "floats-operate closefig"
# Item "Open All Footnotes/Marginal Notes|A" "floats-operate openfoot"
# Item "Close All Footnotes/Marginal Notes|C" "floats-operate closefoot"
End
Menu "edit_tabular" Menu "edit_tabular"
Item "Multicolumn|M" "tabular-feature multicolumn" Item "Multicolumn|M" "tabular-feature multicolumn"
Separator Separator
@ -285,6 +274,8 @@ Menuset
Separator Separator
Item "LaTeX Logfile|L" "latex-view-log" Item "LaTeX Logfile|L" "latex-view-log"
Item "Table of Contents|T" "toc-view" Item "Table of Contents|T" "toc-view"
Item "Child processes|C" "show-forks"
Item "TeX Information|X" "help-Texinfo"
End End
Menu "update" Menu "update"
@ -325,7 +316,8 @@ Menuset
# HELP MENU # HELP MENU
# #
Menu "help" Menu "help"
Item "What's This|W" "toggle-tooltips" Item "What's this?|W" "toggle-tooltips"
Separator
Item "Introduction|I" "help-open Intro" Item "Introduction|I" "help-open Intro"
Item "Tutorial|T" "help-open Tutorial" Item "Tutorial|T" "help-open Tutorial"
Item "User's Guide|U" "help-open UserGuide" Item "User's Guide|U" "help-open UserGuide"
@ -337,8 +329,6 @@ Menuset
Item "LaTeX Configuration|L" "help-open LaTeXConfig" Item "LaTeX Configuration|L" "help-open LaTeXConfig"
Separator Separator
Item "About LyX|X" "help-aboutlyx" Item "About LyX|X" "help-aboutlyx"
Separator
Item "TeX Information" "help-Texinfo"
End End
End End
@ -383,7 +373,7 @@ Toolbar
Separator Separator
Icon "footnote-insert" Icon "footnote-insert"
Icon "marginalnote-insert" Icon "marginalnote-insert"
Icon "depth-next" Icon "depth-increment"
Separator Separator
Icon "graphics-insert" Icon "graphics-insert"
Icon "dialog-tabular-insert" Icon "dialog-tabular-insert"

View File

@ -314,7 +314,7 @@ Toolbar
Separator Separator
Icon "footnote-insert" Icon "footnote-insert"
Icon "marginpar-insert" Icon "marginpar-insert"
Icon "depth-next" Icon "depth-increment"
Separator Separator
Icon "tex-mode" Icon "tex-mode"
Icon "math-mode" Icon "math-mode"

View File

@ -1644,10 +1644,6 @@ bool BufferView::Pimpl::Dispatch(kb_action action, string const & argument)
hfill(); hfill();
break; break;
case LFUN_DEPTH:
changeDepth(bv_, bv_->getLyXText(), 0);
break;
case LFUN_DEPTH_MIN: case LFUN_DEPTH_MIN:
changeDepth(bv_, bv_->getLyXText(), -1); changeDepth(bv_, bv_->getLyXText(), -1);
break; break;

View File

@ -1,3 +1,11 @@
2002-03-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* ToolbarDefaults.C (init):
* LyXAction.C (init):
* commandtags.h:
* BufferView_pimpl.C (Dispatch):
* lyxfunc.C (dispatch): remove LFUN_DEPTH
2002-03-19 Allan Rae <rae@lyx.org> 2002-03-19 Allan Rae <rae@lyx.org>
* exporter.C (Export): removeAutoInsets before doing anything else. * exporter.C (Export): removeAutoInsets before doing anything else.

View File

@ -178,8 +178,6 @@ void LyXAction::init()
N_("Decrement environment depth"), Noop }, N_("Decrement environment depth"), Noop },
{ LFUN_DEPTH_PLUS, "depth-increment", { LFUN_DEPTH_PLUS, "depth-increment",
N_("Increment environment depth"), Noop }, N_("Increment environment depth"), Noop },
{ LFUN_DEPTH, "depth-next",
N_("Change environment depth"), Noop },
{ LFUN_LDOTS, "dots-insert", N_("Insert ... dots"), Noop }, { LFUN_LDOTS, "dots-insert", N_("Insert ... dots"), Noop },
{ LFUN_DOWN, "down", N_("Go down"), ReadOnly }, { LFUN_DOWN, "down", N_("Go down"), ReadOnly },
{ LFUN_DOWNSEL, "down-select", { LFUN_DOWNSEL, "down-select",

View File

@ -84,7 +84,7 @@ void ToolbarDefaults::init()
add(LFUN_INSET_FOOTNOTE); add(LFUN_INSET_FOOTNOTE);
add(LFUN_INSET_MARGINAL); add(LFUN_INSET_MARGINAL);
add(LFUN_DEPTH); add(LFUN_DEPTH_PLUS);
add(SEPARATOR); add(SEPARATOR);
add(LFUN_MATH_MODE); add(LFUN_MATH_MODE);

View File

@ -48,7 +48,6 @@ enum kb_action {
LFUN_HYPHENATION, LFUN_HYPHENATION,
LFUN_LIGATURE_BREAK, LFUN_LIGATURE_BREAK,
LFUN_HFILL, LFUN_HFILL,
LFUN_DEPTH,
LFUN_FREE, // 30 LFUN_FREE, // 30
#if 0 #if 0
LFUN_FOOTMELT, // schedule for deletion LFUN_FOOTMELT, // schedule for deletion

View File

@ -255,8 +255,7 @@ void LyXGUI::init()
// Initialize the views. // Initialize the views.
lyxViews->init(); lyxViews->init();
// in 0.12 the initialisation of the LyXServer must be done here // this should be moved ...
// 0.13 it should be moved again...
lyxserver = new LyXServer(lyxViews->getLyXFunc(), lyxrc.lyxpipes); lyxserver = new LyXServer(lyxViews->getLyXFunc(), lyxrc.lyxpipes);
} }

View File

@ -1182,10 +1182,6 @@ string const LyXFunc::dispatch(kb_action action, string argument)
} }
break; break;
case LFUN_DEPTH:
changeDepth(owner->view(), TEXT(false), 0);
break;
case LFUN_DEPTH_MIN: case LFUN_DEPTH_MIN:
changeDepth(owner->view(), TEXT(false), -1); changeDepth(owner->view(), TEXT(false), -1);
break; break;