]> git.lyx.org Git - lyx.git/blobdiff - src/filedlg.h
More fixes to insettabular/text (and some missing features added).
[lyx.git] / src / filedlg.h
index 43b8660f82e122e4f8f2a1883763236a7b04fe72..2633d708824a5806196a1c32aa58de861e276495 100644 (file)
 #endif
 
 #include <vector>
+#include <sigc++/signal_system.h>
 
 #include "LString.h"
 #include FORMS_H_LOCATION
 #include "form1.h"
 
+#ifdef SIGC_CXX_NAMESPACES
+using SigC::Object;
+using SigC::Connection;
+#endif
+
 /// LyXDirEntry internal structure definition
-class LyXDirEntry
-{
+class LyXDirEntry {
 public:
+       ///
        string pszName;
+       ///
        string pszDisplayed;
+       ///
        string pszLsEntry;
 };
 
 
 /// FileDlg class definition
-class LyXFileDlg 
+class LyXFileDlg : public Object
 {
 public:
        ///
        LyXFileDlg();
+       ///
+       ~LyXFileDlg();
 
        /// sets file selector user button action
        void SetButton(int iIndex, string const & pszName = string(), 
                       string const & pszPath = string());
        /// gets last dialog directory
-       string GetDirectory() const;
+       string const GetDirectory() const;
        /// launches dialog and returns selected file
-       string Select(string const & pszTitle = string(),
+       string const Select(string const & pszTitle = string(),
                       string const & pszPath = string(),
                       string const & pszMask = string(), 
                       string const & pszSuggested = string());
@@ -87,6 +97,10 @@ private:
        ///
        bool force_ok;
 
+       /** Redraw the form (on receipt of a Signal indicating, for example,
+           that the xform colors have been re-mapped).
+       */
+       void redraw();
        /// updates dialog list to match class directory
        void Reread();
        /// sets dialog current directory
@@ -105,6 +119,8 @@ private:
        bool HandleOK();
        /// Simulates a click on OK/Cancel
        void Force(bool);
+       /// Redraw connection.
+       Connection r_;
 };
 
 #endif