Mercurial > octave-nkf
annotate .dir-locals.el @ 20305:062422f2e399
Show axes coordinates in Qt figures (bug #44959)
* Canvas.h: new private bool member m_updtaCurrentPoint, to decide wether update the figure "currentpoint" property
* Canvas.h (Canvas::enableCurrentPointUpdates): new method to set m_updtaCurrentPoint
* Canvas.cc (Canvas::canvasMousePressEvent): move the code for axes/object selection in a dedicated method and call this method (select_object) instead.
* Canvas.cc (Canvas::select_object): new method for axes/object selection.
* Canvas.cc (Canvas::canvasMouseMoveEvent): update the parent figure status bar with the hovered axes coordinates
* Figure.h: declare new method updateStatusBar
* Figure.h: declare new private QStatusBar member m_statusBar. Include QStatusBar.h
* Figure.cc (Figure::Figure): unconditionally enable mouse traching
* Figure.cc (Figure::Figure): add status below of the canvas
* Figure.cc (Figure::update): take status bar into account when updating the figure position
* Figure.cc (Figure::update): remove some of the leftover debug comments
* Figure.cc: define new method updateStatusBar
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Sat, 13 Jun 2015 13:27:01 +0200 |
parents | 9ff04de067ce |
children |
rev | line source |
---|---|
13105
3d7a4a2d9cef
Make .h files open in c++-mode in Emacs; make sure gnu style is set for C mode
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
9966
diff
changeset
|
1 ((nil . |
3d7a4a2d9cef
Make .h files open in c++-mode in Emacs; make sure gnu style is set for C mode
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
9966
diff
changeset
|
2 ((c-file-style . "gnu") |
3d7a4a2d9cef
Make .h files open in c++-mode in Emacs; make sure gnu style is set for C mode
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
9966
diff
changeset
|
3 (indent-tabs-mode . nil) |
3d7a4a2d9cef
Make .h files open in c++-mode in Emacs; make sure gnu style is set for C mode
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
9966
diff
changeset
|
4 (fill-column . 72) |
17588
9ff04de067ce
improve .dir-locals.el
Rüdiger Sonderfeld <ruediger@c-plusplus.de>
parents:
13114
diff
changeset
|
5 (eval . (when (and (buffer-file-name) |
9ff04de067ce
improve .dir-locals.el
Rüdiger Sonderfeld <ruediger@c-plusplus.de>
parents:
13114
diff
changeset
|
6 (string-match-p "\\.h\\'" (buffer-file-name)) |
9ff04de067ce
improve .dir-locals.el
Rüdiger Sonderfeld <ruediger@c-plusplus.de>
parents:
13114
diff
changeset
|
7 (not (string-match-p "/gnulib/" (buffer-file-name)))) |
9ff04de067ce
improve .dir-locals.el
Rüdiger Sonderfeld <ruediger@c-plusplus.de>
parents:
13114
diff
changeset
|
8 (c++-mode) |
9ff04de067ce
improve .dir-locals.el
Rüdiger Sonderfeld <ruediger@c-plusplus.de>
parents:
13114
diff
changeset
|
9 (c-set-style "gnu"))))) |
9966
d4dab9605c49
correctly set indent-tabs-mode for ChangeLogs and Makefiles in .dir-locals.el
John W. Eaton <jwe@octave.org>
parents:
9933
diff
changeset
|
10 (change-log-mode . ((indent-tabs-mode . t))) |
d4dab9605c49
correctly set indent-tabs-mode for ChangeLogs and Makefiles in .dir-locals.el
John W. Eaton <jwe@octave.org>
parents:
9933
diff
changeset
|
11 (makefile-mode . ((indent-tabs-mode . t)))) |