]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormFiledialog.h
remove defaults stuff, let Qt handle no toolbar
[lyx.git] / src / frontends / xforms / FormFiledialog.h
index ebe809aa6ae2034facd5fe5ac6143db19ac1a79c..c670f3d05b9cfc2ce276bbfee3ba50559f23f727 100644 (file)
@@ -1,25 +1,23 @@
 // -*- C++ -*-
 /**
  * \file FormFiledialog.h
- * Copyright 2001 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author unknown
- * \author John Levon, moz@compsoc.man.ac.uk
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #ifndef FORMFILEDIALOG_H
 #define FORMFILEDIALOG_H
 
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 #include "LString.h"
 
-#include FORMS_H_LOCATION
-#include "form_filedialog.h"
+#include "forms_fwd.h"
 
 #include "frontends/FileDialog.h"
 
 
 #include <vector>
 
+class Dialogs;
+
 /// DirEntry internal structure definition
 class DirEntry {
 public:
        ///
-       string pszName;
+       string name_;
        ///
-       string pszDisplayed;
+       string displayed_;
        ///
-       string pszLsEntry;
+       string ls_entry_;
 };
 
 
@@ -47,6 +47,8 @@ public:
 //}
 
 
+class FD_filedialog;
+
 class FileDialog::Private : public boost::signals::trackable {
 public:
        ///
@@ -64,6 +66,10 @@ public:
                       string const & pszPath = string(),
                       string const & pszMask = string(),
                       string const & pszSuggested = string());
+       /// launches dialog and returns selected directory
+       string const SelectDir(string const & pszTitle = string(),
+                      string const & pszPath = string(),
+                      string const & pszSuggested = string());
        /// XForms objects callback (static)
        static void FileDlgCB(FL_OBJECT *, long);
        /// Callback for double click in list
@@ -73,38 +79,39 @@ public:
 
 private:
        /// data
-       static FD_form_filedialog * pFileDlgForm;
+       static FD_filedialog * file_dlg_form_;
+       ///
+       static FileDialog::Private * current_dlg_;
        ///
-       static FileDialog::Private * pCurrentDlg;
+       static int minw_;
        ///
-       string pszUserPath1;
+       static int minh_;
        ///
-       string pszUserPath2;
+       string user_path1_;
        ///
-       string pszDirectory;
+       string user_path2_;
        ///
-       string pszMask;
+       string directory_;
        ///
-       string pszFileName;
+       string mask_;
        ///
-       int iDepth;
+       string file_name_;
        ///
-       int iLastSel;
+       int depth_;
        ///
-       long lLastTime;
+       int last_sel_;
        ///
-       string pszInfoLine;
+       long last_time_;
+       ///
+       string info_line_;
        ///
        typedef std::vector<DirEntry> DirEntries;
        ///
-       DirEntries direntries;
+       DirEntries dir_entries_;
        ///
-       bool force_cancel;
+       bool force_cancel_;
        ///
-       bool force_ok;
-
-       /// build the dialog
-       FD_form_filedialog * build_filedialog();
+       bool force_ok_;
 
        /** Redraw the form (on receipt of a Signal indicating, for example,
            that the xform colors have been re-mapped).