diff options
author | Adam Moss <moss@lindenlab.com> | 2007-09-10 20:15:48 +0000 |
---|---|---|
committer | Adam Moss <moss@lindenlab.com> | 2007-09-10 20:15:48 +0000 |
commit | 96830697b2f3bb8d1d7e1c4a3a6872845a38926c (patch) | |
tree | 7663da01ec8eefb6fcdc4d4396d95c96f89cc970 /indra/newview/llfilepicker.h | |
parent | 80dfa222fdc3747be9f5b64b9ace35907edf1c4e (diff) |
SL-53811, SL-53812, SL-53823, SL-26604, SL-54282 Linux filepickers
revamp.
Passed by QA. Reviewed by bos.
svn merge svn+ssh://svn.lindenlab.com/svn/linden/release@68938
svn+ssh://svn.lindenlab.com/svn/linden/branches/moss/SL-26604-based-on-r68938
-> release
Diffstat (limited to 'indra/newview/llfilepicker.h')
-rw-r--r-- | indra/newview/llfilepicker.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/indra/newview/llfilepicker.h b/indra/newview/llfilepicker.h index c04279ee91..bb63e33fe5 100644 --- a/indra/newview/llfilepicker.h +++ b/indra/newview/llfilepicker.h @@ -50,11 +50,16 @@ typedef struct { GtkWidget *win; std::vector<LLString> fileVector; + std::string contextName; } StoreFilenamesStruct; #endif // LL_GTK class LLFilePicker { +#ifdef LL_GTK + friend class LLDirPicker; + friend void chooser_responder(GtkWidget *, gint, gpointer); +#endif // LL_GTK public: // calling this before main() is undefined static LLFilePicker& instance( void ) { return sInstance; } @@ -146,9 +151,9 @@ private: #if LL_GTK StoreFilenamesStruct mStoreFilenames; - - GtkWindow* buildFilePicker(void); U32 mNextFileIndex; + // we remember the last path that was accessed for a particular usage + static std::map <std::string, std::string> sContextToPathMap; #endif char mFiles[FILENAME_BUFFER_SIZE]; /*Flawfinder: ignore*/ @@ -159,6 +164,12 @@ private: static LLFilePicker sInstance; +protected: +#if LL_GTK + GtkWindow* buildFilePicker(bool is_save, bool is_folder, + std::string context = "generic"); +#endif + public: // don't call these directly please. LLFilePicker(); |