00001 00032 #ifndef LL_UPLOADDIALOG_H 00033 #define LL_UPLOADDIALOG_H 00034 00035 #include "llpanel.h" 00036 #include "lltextbox.h" 00037 00038 class LLUploadDialog : public LLPanel 00039 { 00040 public: 00041 // Use this function to open a modal dialog and display it until the user presses the "close" button. 00042 static LLUploadDialog* modalUploadDialog(const std::string& msg); // Message to display 00043 static void modalUploadFinished(); // Message to display 00044 00045 static bool modalUploadIsFinished() { return (sDialog == NULL); } 00046 00047 void setMessage( const std::string& msg ); 00048 00049 private: 00050 LLUploadDialog( const std::string& msg); 00051 virtual ~LLUploadDialog(); // No you can't kill it. It can only kill itself. 00052 00053 void centerDialog(); 00054 00055 LLTextBox* mLabelBox[16]; 00056 00057 private: 00058 static LLUploadDialog* sDialog; // Hidden singleton instance, created and destroyed as needed. 00059 }; 00060 00061 #endif // LL_UPLOADDIALOG_H