]> 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 79a9058a4abf212635980e6d72cfdc59af079b5d..2633d708824a5806196a1c32aa58de861e276495 100644 (file)
@@ -5,7 +5,7 @@
  *           LyX, The Document Processor
  *        
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-1999 The LyX Team.
+ *           Copyright 1995-2000 The LyX Team.
  *
  * ====================================================== */
 
 #endif
 
 #include <vector>
+#include <sigc++/signal_system.h>
 
 #include "LString.h"
 #include FORMS_H_LOCATION
 #include "form1.h"
 
-using std::vector;
-
+#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());
@@ -82,7 +89,7 @@ private:
        ///
        string pszInfoLine;
        ///
-       typedef vector<LyXDirEntry> DirEntries;
+       typedef std::vector<LyXDirEntry> DirEntries;
        ///
        DirEntries direntries;
        ///
@@ -90,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
@@ -108,6 +119,8 @@ private:
        bool HandleOK();
        /// Simulates a click on OK/Cancel
        void Force(bool);
+       /// Redraw connection.
+       Connection r_;
 };
 
 #endif