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>
26 #ifdef SIGC_CXX_NAMESPACES
35 // Maybe this should be a UIFunc modelled on LyXFunc
46 /** Container of all dialogs and signals a LyXView needs or uses to access them
47 The list of dialog signals isn't comprehensive but should be a good guide
48 for any future additions. Remember don't go overboard -- think minimal.
53 /**@name Constructors and Deconstructors */
61 /**@name Global Hide and Update Signals */
63 /// Hide all visible popups
64 Signal0<void> hideAll;
66 /// Hide any popups that require a buffer for them to operate
67 Signal0<void> hideBufferDependent;
69 /// Update visible, buffer-dependent popups
70 Signal0<void> updateBufferDependent;
73 /**@name Dialog Access Signals */
75 /// Opens the Preamble Dialog.
76 Signal0<void> showPreamble;
78 Signal0<void> showLogFile;
80 Signal1<void, InsetTabular *> showTabular;
82 Signal1<void, InsetTabular *> updateTabular;
84 Signal1<void, InsetTabular *> hideTabular;
86 Signal0<void> showTabularCreate;
88 Signal0<void> showCharacter;
90 Signal0<void> updateCharacter; // allow update as cursor moves
92 Signal0<void> showParagraph;
94 Signal0<void> showDocument;
95 /// Do we really have to push this?
96 Signal1<void, vector<string> const &> SetDocumentClassChoice;
98 Signal0<void> showPrint;
100 Signal0<void> showCopyright;
102 Signal0<void> showCredits;
104 Signal0<void> showPreferences;
106 Signal1<void, InsetInclude *> showInclude;
108 Signal1<void, InsetIndex *> showIndex;
110 Signal1<void, InsetBibKey *> showBibkey;
112 Signal1<void, InsetCitation *> showCitation;
114 Signal1<void, string const &> createCitation;
116 Signal1<void, InsetBibtex *> showBibtex;
118 Signal1<void, InsetInfo *> showInfo;
121 /// Disallow default constructor
123 /// Disallow copy constructor
124 Dialogs(Dialogs &) {}
126 vector<DialogBase *> dialogs_;