#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());
///
string pszInfoLine;
///
- typedef vector<LyXDirEntry> DirEntries;
+ typedef std::vector<LyXDirEntry> DirEntries;
///
DirEntries direntries;
///
///
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
bool HandleOK();
/// Simulates a click on OK/Cancel
void Force(bool);
+ /// Redraw connection.
+ Connection r_;
};
#endif