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 <boost/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 /** Redraw all visible popups because, for example, the GUI colours
64 have been re-mapped. */
65 static Signal0<void> redrawGUI;
67 /**@name Global Hide and Update Signals */
69 /// Hide all visible popups
70 Signal0<void> hideAll;
72 /// Hide any dialogs that require a buffer for them to operate
73 Signal0<void> hideBufferDependent;
75 /** Update visible, buffer-dependent dialogs
76 If the bool is true then a buffer change has occurred
77 else its still the same buffer.
79 Signal1<void, bool> updateBufferDependent;
82 /**@name Dialog Access Signals.
83 Put into some sort of alphabetical order */
85 /// Do we really have to push this?
86 Signal1<void, vector<string> const &> SetDocumentClassChoice;
87 /// show the key and label of a bibliography entry
88 Signal1<void, InsetCommand *> showBibitem;
89 /// show the bibtex dialog
90 Signal1<void, InsetCommand *> showBibtex;
92 Signal0<void> showCharacter;
94 Signal1<void, InsetCommand *> showCitation;
96 Signal1<void, string const &> createCitation;
98 Signal0<void> showCopyright;
100 Signal0<void> showCredits;
102 Signal1<void, InsetError *> showError;
104 Signal1<void, InsetGraphics *> showGraphics;
105 /// show the details of a LyX file include inset
106 Signal1<void, InsetCommand *> showInclude;
107 /// create a LyX file include inset
108 Signal1<void, string const &> createInclude;
110 Signal1<void, InsetCommand *> showIndex;
112 Signal1<void, string const &> createIndex;
114 Signal1<void, InsetInfo *> showInfo;
116 Signal0<void> showLayoutDocument;
118 Signal0<void> showLayoutParagraph;
120 Signal0<void> showLayoutCharacter;
122 Signal0<void> setUserFreeFont;
123 /// show the version control log
124 Signal0<void> showVCLogFile;
125 /// show the LaTeX log or build file
126 Signal0<void> showLogFile;
128 Signal0<void> showPreamble;
130 Signal0<void> showPreferences;
132 Signal0<void> showPrint;
134 Signal1<void, InsetCommand *> showRef;
136 Signal1<void, string const &> createRef;
138 Signal0<void> showSearch;
139 /// pop up the splash
140 Signal0<void> showSplash;
141 /// hide the splash immediately
142 Signal0<void> hideSplash;
144 Signal1<void, InsetTabular *> showTabular;
146 Signal1<void, InsetTabular *> updateTabular;
148 Signal0<void> showTabularCreate;
150 Signal1<void, InsetCommand *> showTOC;
152 Signal1<void, string const &> createTOC;
154 Signal1<void, InsetCommand *> showUrl;
156 Signal1<void, string const &> createUrl;
158 Signal0<void> updateCharacter; // allow update as cursor moves
162 vector<DialogBase *> dialogs_;