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 */
77 /// Opens the Preamble Dialog.
78 Signal0<void> showPreamble;
80 Signal0<void> showLogFile;
82 Signal1<void, InsetTabular *> showTabular;
84 Signal1<void, InsetTabular *> updateTabular;
86 Signal1<void, InsetTabular *> hideTabular;
88 Signal0<void> showTabularCreate;
90 Signal0<void> showCharacter;
92 Signal0<void> updateCharacter; // allow update as cursor moves
94 Signal0<void> showParagraph;
96 Signal0<void> showDocument;
97 /// Do we really have to push this?
98 Signal1<void, vector<string> const &> SetDocumentClassChoice;
100 Signal0<void> showPrint;
102 Signal0<void> showCopyright;
104 Signal0<void> showCredits;
106 Signal0<void> showPreferences;
108 Signal1<void, InsetInclude *> showInclude;
110 Signal1<void, InsetIndex *> showIndex;
112 Signal1<void, InsetBibKey *> showBibkey;
114 Signal1<void, InsetCitation *> showCitation;
116 Signal1<void, string const &> createCitation;
118 Signal1<void, InsetUrl *> showUrl;
120 Signal1<void, string const &> createUrl;
122 Signal1<void, InsetBibtex *> showBibtex;
124 Signal1<void, InsetInfo *> showInfo;
128 vector<DialogBase *> dialogs_;