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
44 #ifdef SIGC_CXX_NAMESPACES
49 /** Container of all dialogs and signals a LyXView needs or uses to access them
50 The list of dialog signals isn't comprehensive but should be a good guide
51 for any future additions. Remember don't go overboard -- think minimal.
53 class Dialogs : public noncopyable
56 /**@name Constructors and Deconstructors */
64 /**@name Global Hide and Update Signals */
66 /// Hide all visible popups
67 Signal0<void> hideAll;
69 /// Hide any popups that require a buffer for them to operate
70 Signal0<void> hideBufferDependent;
72 /// Update visible, buffer-dependent popups
73 Signal0<void> updateBufferDependent;
76 /**@name Dialog Access Signals */
78 /// Opens the Preamble Dialog.
79 Signal0<void> showPreamble;
81 Signal0<void> showLogFile;
83 Signal1<void, InsetTabular *> showTabular;
85 Signal1<void, InsetTabular *> updateTabular;
87 Signal1<void, InsetTabular *> hideTabular;
89 Signal0<void> showTabularCreate;
91 Signal0<void> showCharacter;
93 Signal0<void> updateCharacter; // allow update as cursor moves
95 Signal0<void> showParagraph;
97 Signal0<void> showDocument;
98 /// Do we really have to push this?
99 Signal1<void, vector<string> const &> SetDocumentClassChoice;
101 Signal0<void> showPrint;
103 Signal0<void> showCopyright;
105 Signal0<void> showCredits;
107 Signal0<void> showPreferences;
109 Signal1<void, InsetGraphics *> showGraphics;
111 Signal1<void, InsetInclude *> showInclude;
113 Signal1<void, InsetIndex *> showIndex;
115 Signal1<void, InsetBibKey *> showBibkey;
117 Signal1<void, InsetCitation *> showCitation;
119 Signal1<void, string const &> createCitation;
121 Signal1<void, InsetUrl *> showUrl;
123 Signal1<void, string const &> createUrl;
125 Signal1<void, InsetBibtex *> showBibtex;
127 Signal1<void, InsetInfo *> showInfo;
131 vector<DialogBase *> dialogs_;