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 /**@name Global Hide and Update Signals */
65 /// Hide all visible popups
66 Signal0<void> hideAll;
68 /// Hide any dialogs that require a buffer for them to operate
69 Signal0<void> hideBufferDependent;
71 /** Update visible, buffer-dependent dialogs
72 If the bool is true then a buffer change has occurred
73 else its still the same buffer.
75 Signal1<void, bool> updateBufferDependent;
78 /**@name Dialog Access Signals.
79 Put into some sort of alphabetical order */
81 /// Do we really have to push this?
82 Signal1<void, vector<string> const &> SetDocumentClassChoice;
84 Signal1<void, InsetBibKey *> showBibkey;
86 Signal1<void, InsetBibtex *> showBibtex;
88 Signal0<void> showCharacter;
90 Signal1<void, InsetCommand *> showCitation;
92 Signal1<void, string const &> createCitation;
94 Signal0<void> showCopyright;
96 Signal0<void> showCredits;
98 Signal1<void, InsetError *> showError;
100 Signal1<void, InsetGraphics *> showGraphics;
102 Signal1<void, InsetInclude *> showInclude;
104 Signal1<void, InsetCommand *> showIndex;
106 Signal1<void, string const &> createIndex;
108 Signal1<void, InsetInfo *> showInfo;
110 Signal0<void> showLayoutDocument;
112 Signal0<void> showLayoutParagraph;
114 Signal0<void> showLogFile;
116 Signal0<void> showPreamble;
118 Signal0<void> showPreferences;
120 Signal0<void> showPrint;
122 Signal1<void, InsetCommand *> showRef;
124 Signal1<void, string const &> createRef;
126 Signal1<void, InsetTabular *> showTabular;
128 Signal1<void, InsetTabular *> updateTabular;
130 Signal0<void> showTabularCreate;
132 Signal1<void, InsetCommand *> showTOC;
134 Signal1<void, string const &> createTOC;
136 Signal1<void, InsetCommand *> showUrl;
138 Signal1<void, string const &> createUrl;
140 Signal0<void> updateCharacter; // allow update as cursor moves
144 vector<DialogBase *> dialogs_;