Commit Graph

25 Commits

Author SHA1 Message Date
Richard Heck
419642ad9e Fix citation bug: In certain circumstances, attempts to insert a new citation
would instead change an old one. The problem was that we were hiding the dialog
with hide(), which does not trigger closeEvent(). So we have to implement
hideEvent().

http://marc.info/?l=lyx-devel&m=121278861019829&w=2



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26143 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-13 14:32:30 +00:00
Richard Heck
481c24c8eb Remove unintelligible comment. (This seems to have been copied over from Dialog.h.)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26126 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-12 22:18:21 +00:00
Richard Heck
08d8a8034f Fix citation dialog bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25169 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 15:53:02 +00:00
Abdelrazak Younes
5fe7778d28 Fix disconnection on escaped dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25158 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 10:00:33 +00:00
André Pönitz
a500e62902 do what the FIXME suggested
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23486 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 20:11:47 +00:00
Abdelrazak Younes
6bb94129d8 Factorize out the way window titles are handled.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22784 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 12:43:19 +00:00
Abdelrazak Younes
8c27d557b9 * Dialog.cpp: whitespace
* DialogView: remove cruft.

* GuiDialog: add cruft and don't depend on DialogView as GuiDialog is meant for extinction eventually.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22783 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-05 10:53:31 +00:00
Abdelrazak Younes
dbfa1a6f46 cleanup DialogView based classes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22775 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-04 17:06:34 +00:00
Abdelrazak Younes
41681e7185 Add common session handling infrastructure for dialogs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22061 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-10 13:05:00 +00:00
Abdelrazak Younes
604c1148ea Factorize general code out of GuiDialog and into the base Dialog class. This is now possible thanks to the moving of Dialog.{cpp,h} to qt4/. Any dialog must inherit QWidget within Qt so it is safe to use Dialog::asQWidget() method (which is similar to dynamic casting).
* GuiDialog now inherits DialogView. GuiDialog is only there to bring the ButtonController archaeological interface; any new dialog should inherit DialogView and any new dock widget should inherit DockView.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22049 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 22:35:04 +00:00
André Pönitz
9d0ea8aeff Move debug.{cpp,h}, Messages.{cpp,h} and gettext.{cpp,h} to support/.
Now support/* should have no dependencies on src/* anymore.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21851 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-29 07:04:28 +00:00
Abdelrazak Younes
10cc0a8842 Simplify Dialog::name() handling.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21736 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 10:45:14 +00:00
Abdelrazak Younes
baa9153134 Remove unused code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21717 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-22 22:20:51 +00:00
Abdelrazak Younes
1f4e5c926a Bump the Qt requirement to version 4.0.0
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21607 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 14:24:59 +00:00
Abdelrazak Younes
ff189f6c70 Rename GuiViewBase to GuiView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21436 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 13:52:37 +00:00
André Pönitz
74f8d6dc6a cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20876 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-09 22:13:51 +00:00
André Pönitz
fee6fea248 some controller simplification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20871 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-09 19:52:34 +00:00
André Pönitz
6f3cdf8da8 move Controller inheritance further up the tree
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20870 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-09 19:34:27 +00:00
André Pönitz
3f554746dc one more
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20808 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-07 08:55:20 +00:00
Edwin Leuven
38df07a8a7 put widget in layout
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20569 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-28 12:34:35 +00:00
Abdelrazak Younes
cd56d44a69 disable window geometry session handling for Qt < 4.2.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20543 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-27 15:07:40 +00:00
Abdelrazak Younes
5bca0d424a gcc compil fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20541 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-27 14:47:42 +00:00
Abdelrazak Younes
49388f6abd add #include <QShowEvent> just in case.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20538 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-27 14:22:58 +00:00
Abdelrazak Younes
3e37d45f12 * DialogView: Initial Window geometry session support.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20537 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-27 14:05:05 +00:00
Abdelrazak Younes
738d5b06ba * qt4/DialogView.h: new template class based on QDialog.
* qt4/Dialogs.cpp: use DialogView by default instead of DockView for GuiParagraph


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20534 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-27 11:27:52 +00:00