diff options
author | Nyx (Neal Orman) <nyx@lindenlab.com> | 2009-12-02 11:29:03 -0500 |
---|---|---|
committer | Nyx (Neal Orman) <nyx@lindenlab.com> | 2009-12-02 11:29:03 -0500 |
commit | c40ed43535164c3b80afd34bdb1de211eb023458 (patch) | |
tree | 3722435d89e460d046c3355d76dd106052efb61f /indra/newview/llpanelmediasettingssecurity.h | |
parent | 5642d7d0122da91d8ef23f8adb069cc82e0c4ed4 (diff) | |
parent | f496c2b164a100836d74909c3e27adcdf98018f0 (diff) |
merging in viewer-2 into avp
--HG--
branch : avatar-pipeline
Diffstat (limited to 'indra/newview/llpanelmediasettingssecurity.h')
-rw-r--r-- | indra/newview/llpanelmediasettingssecurity.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/indra/newview/llpanelmediasettingssecurity.h b/indra/newview/llpanelmediasettingssecurity.h index 638664e59d..937bfb1bf9 100644 --- a/indra/newview/llpanelmediasettingssecurity.h +++ b/indra/newview/llpanelmediasettingssecurity.h @@ -37,6 +37,7 @@ class LLCheckBoxCtrl; class LLScrollListCtrl; +class LLTextBox; class LLFloaterMediaSettings; class LLPanelMediaSettingsSecurity : public LLPanel @@ -58,18 +59,27 @@ public: static void initValues( void* userdata, const LLSD& media_settings,bool editable ); static void clearValues( void* userdata, bool editable); - void addWhiteListItem(const std::string& url); + void addWhiteListEntry( const std::string& url ); void setParent( LLFloaterMediaSettings* parent ); + bool urlPassesWhiteList( const std::string& test_url ); const std::string makeValidUrl( const std::string& src_url ); - bool passesWhiteList( const std::string& added_url, const std::string& test_url ); protected: LLFloaterMediaSettings* mParent; private: + enum ColumnIndex + { + ICON_COLUMN = 0, + ENTRY_COLUMN = 1, + }; + LLCheckBoxCtrl* mEnableWhiteList; LLScrollListCtrl* mWhiteListList; - + LLTextBox* mHomeUrlFailsWhiteListText; + + void updateWhitelistEnableStatus(); + static void onBtnAdd(void*); static void onBtnDel(void*); }; |