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>
25 #include "support/utility.hpp"
29 // Maybe this should be a UIFunc modelled on LyXFunc
42 #ifdef SIGC_CXX_NAMESPACES
47 /** Container of all dialogs and signals a LyXView needs or uses to access them
48 The list of dialog signals isn't comprehensive but should be a good guide
49 for any future additions. Remember don't go overboard -- think minimal.
51 class Dialogs : public noncopyable
54 /**@name Constructors and Deconstructors */
62 /**@name Global Hide and Update Signals */
64 /// Hide all visible popups
65 Signal0<void> hideAll;
67 /// Hide any popups that require a buffer for them to operate
68 Signal0<void> hideBufferDependent;
70 /// Update visible, buffer-dependent popups
71 Signal0<void> updateBufferDependent;
74 /**@name Dialog Access Signals */
76 /// Opens the Preamble Dialog.
77 Signal0<void> showPreamble;
79 Signal0<void> showLogFile;
81 Signal1<void, InsetTabular *> showTabular;
83 Signal1<void, InsetTabular *> updateTabular;
85 Signal1<void, InsetTabular *> hideTabular;
87 Signal0<void> showTabularCreate;
89 Signal0<void> showCharacter;
91 Signal0<void> updateCharacter; // allow update as cursor moves
93 Signal0<void> showParagraph;
95 Signal0<void> showDocument;
96 /// Do we really have to push this?
97 Signal1<void, vector<string> const &> SetDocumentClassChoice;
99 Signal0<void> showPrint;
101 Signal0<void> showCopyright;
103 Signal0<void> showCredits;
105 Signal0<void> showPreferences;
107 Signal1<void, InsetGraphics *> showGraphics;
109 Signal1<void, InsetInclude *> showInclude;
111 Signal1<void, InsetCommand *> showIndex;
113 Signal1<void, string const &> createIndex;
115 Signal1<void, InsetBibKey *> showBibkey;
117 Signal1<void, InsetCommand *> showCitation;
119 Signal1<void, string const &> createCitation;
121 Signal1<void, InsetCommand *> showRef;
123 Signal1<void, string const &> createRef;
125 Signal1<void, InsetCommand *> showTOC;
127 Signal1<void, string const &> createTOC;
129 Signal1<void, InsetCommand *> showUrl;
131 Signal1<void, string const &> createUrl;
133 Signal1<void, InsetBibtex *> showBibtex;
135 Signal1<void, InsetInfo *> showInfo;
139 vector<DialogBase *> dialogs_;