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
43 #ifdef SIGC_CXX_NAMESPACES
48 /** Container of all dialogs and signals a LyXView needs or uses to access them
49 The list of dialog signals isn't comprehensive but should be a good guide
50 for any future additions. Remember don't go overboard -- think minimal.
52 class Dialogs : public noncopyable
55 /**@name Constructors and Deconstructors */
63 /**@name Global Hide and Update Signals */
65 /// Hide all visible popups
66 Signal0<void> hideAll;
68 /// Hide any popups that require a buffer for them to operate
69 Signal0<void> hideBufferDependent;
71 /// Update visible, buffer-dependent popups
72 Signal0<void> updateBufferDependent;
75 /**@name Dialog Access Signals.
76 Put into some sort of alphabetical order */
78 /// Do we really have to push this?
79 Signal1<void, vector<string> const &> SetDocumentClassChoice;
81 Signal1<void, InsetBibKey *> showBibkey;
83 Signal1<void, InsetBibtex *> showBibtex;
85 Signal0<void> showCharacter;
87 Signal1<void, InsetCommand *> showCitation;
89 Signal1<void, string const &> createCitation;
91 Signal0<void> showCopyright;
93 Signal0<void> showCredits;
95 Signal1<void, InsetError *> showError;
97 Signal1<void, InsetGraphics *> showGraphics;
99 Signal1<void, InsetInclude *> showInclude;
101 Signal1<void, InsetCommand *> showIndex;
103 Signal1<void, string const &> createIndex;
105 Signal1<void, InsetInfo *> showInfo;
107 Signal0<void> showLayoutDocument;
109 Signal0<void> showLayoutParagraph;
111 Signal0<void> showLogFile;
113 Signal0<void> showPreamble;
115 Signal0<void> showPreferences;
117 Signal0<void> showPrint;
119 Signal1<void, InsetCommand *> showRef;
121 Signal1<void, string const &> createRef;
123 Signal1<void, InsetTabular *> showTabular;
125 Signal1<void, InsetTabular *> updateTabular;
127 Signal1<void, InsetTabular *> hideTabular;
129 Signal0<void> showTabularCreate;
131 Signal1<void, InsetCommand *> showTOC;
133 Signal1<void, string const &> createTOC;
135 Signal1<void, InsetCommand *> showUrl;
137 Signal1<void, string const &> createUrl;
139 Signal0<void> updateCharacter; // allow update as cursor moves
143 vector<DialogBase *> dialogs_;