3 * Container of all dialogs and signals a LyXView needs or uses to access them.
4 * Author: Allan Rae <rae@lyx.org>
6 * ======================================================
8 * LyX, The Document Processor
10 * Copyright 1995 Matthias Ettrich
11 * Copyright 1995-2000 The LyX Team.
13 * This file Copyright 2000
15 * ======================================================
22 #include <sigc++/signal_system.h>
26 #ifdef SIGC_CXX_NAMESPACES
35 // Maybe this should be a UIFunc modelled on LyXFunc
45 /** Container of all dialogs and signals a LyXView needs or uses to access them
46 The list of dialog signals isn't comprehensive but should be a good guide
47 for any future additions. Remember don't go overboard -- think minimal.
52 /**@name Constructors and Deconstructors */
60 /**@name Global Hide and Update Signals */
62 /// Hide all visible popups
63 Signal0<void> hideAll;
65 /// Hide any popups that require a buffer for them to operate
66 Signal0<void> hideBufferDependent;
68 /// Update visible, buffer-dependent popups
69 Signal0<void> updateBufferDependent;
72 /**@name Dialog Access Signals */
74 /// Opens the Preamble Dialog.
75 Signal0<void> showPreamble;
77 Signal0<void> showLogFile;
79 Signal0<void> showTable;
81 Signal0<void> updateTable; // needed for InsetTabular-Update
83 Signal0<void> showTableNew;
85 Signal0<void> showCharacter;
87 Signal0<void> updateCharacter; // allow update as cursor moves
89 Signal0<void> showParagraph;
91 Signal0<void> showDocument;
92 /// Do we really have to push this?
93 Signal1<void, vector<string> const &> SetDocumentClassChoice;
95 Signal0<void> showPrint;
97 Signal0<void> showCopyright;
99 Signal0<void> showCredits;
101 Signal0<void> showPreferences;
103 Signal1<void, InsetInclude *> showInclude;
105 Signal1<void, InsetIndex *> showIndex;
107 Signal1<void, InsetBibKey *> showBibkey;
109 Signal1<void, InsetCitation *> showCitation;
111 Signal1<void, string const &> createCitation;
113 Signal1<void, InsetBibtex *> showBibtex;
115 Signal1<void, InsetInfo *> showInfo;
118 /// Disallow default constructor
120 /// Disallow copy constructor
121 Dialogs(Dialogs &) {}
123 vector<DialogBase *> dialogs_;