diff options
Diffstat (limited to 'linden/indra/newview/llpanelevent.cpp')
-rw-r--r-- | linden/indra/newview/llpanelevent.cpp | 42 |
1 files changed, 13 insertions, 29 deletions
diff --git a/linden/indra/newview/llpanelevent.cpp b/linden/indra/newview/llpanelevent.cpp index 2bf61b3..abfbe79 100644 --- a/linden/indra/newview/llpanelevent.cpp +++ b/linden/indra/newview/llpanelevent.cpp | |||
@@ -51,7 +51,7 @@ | |||
51 | #include "llviewercontrol.h" | 51 | #include "llviewercontrol.h" |
52 | #include "llweb.h" | 52 | #include "llweb.h" |
53 | #include "llworldmap.h" | 53 | #include "llworldmap.h" |
54 | #include "llvieweruictrlfactory.h" | 54 | #include "lluictrlfactory.h" |
55 | 55 | ||
56 | //static | 56 | //static |
57 | std::list<LLPanelEvent*> LLPanelEvent::sAllPanels; | 57 | std::list<LLPanelEvent*> LLPanelEvent::sAllPanels; |
@@ -70,51 +70,35 @@ LLPanelEvent::~LLPanelEvent() | |||
70 | 70 | ||
71 | BOOL LLPanelEvent::postBuild() | 71 | BOOL LLPanelEvent::postBuild() |
72 | { | 72 | { |
73 | mTBName = LLViewerUICtrlFactory::getTextBoxByName(this, "event_name"); | 73 | mTBName = getChild<LLTextBox>("event_name"); |
74 | mTBName->setColor(gColors.getColor( "LabelSelectedColor" )); | ||
75 | 74 | ||
76 | mTBCategory = LLViewerUICtrlFactory::getTextBoxByName(this, "event_category"); | 75 | mTBCategory = getChild<LLTextBox>("event_category"); |
77 | mTBCategory->setColor(gColors.getColor( "LabelSelectedColor" )); | ||
78 | |||
79 | childSetColor("event_mature_yes", gColors.getColor( "LabelSelectedColor" )); | ||
80 | childSetColor("event_mature_no", gColors.getColor( "LabelSelectedColor" )); | ||
81 | 76 | ||
82 | mTBDate = LLViewerUICtrlFactory::getTextBoxByName(this, "event_date"); | 77 | mTBDate = getChild<LLTextBox>("event_date"); |
83 | mTBDate->setColor(gColors.getColor( "LabelSelectedColor" )); | ||
84 | 78 | ||
85 | mTBDuration = LLViewerUICtrlFactory::getTextBoxByName(this, "event_duration"); | 79 | mTBDuration = getChild<LLTextBox>("event_duration"); |
86 | mTBDuration->setColor(gColors.getColor( "LabelSelectedColor" )); | ||
87 | 80 | ||
88 | mTBDesc = LLUICtrlFactory::getTextEditorByName(this, "event_desc"); | 81 | mTBDesc = getChild<LLTextEditor>("event_desc"); |
89 | mTBDesc->setWordWrap(TRUE); | 82 | mTBDesc->setWordWrap(TRUE); |
90 | mTBDesc->setEnabled(FALSE); | 83 | mTBDesc->setEnabled(FALSE); |
91 | mTBDesc->setFgColor(gColors.getColor( "LabelSelectedColor" )); | ||
92 | mTBDesc->setReadOnlyFgColor(LLColor4(1.f, 1.f, 1.f, 1.f)); | ||
93 | 84 | ||
94 | mTBRunBy = LLViewerUICtrlFactory::getTextBoxByName(this, "event_runby"); | 85 | mTBRunBy = getChild<LLTextBox>("event_runby"); |
95 | mTBRunBy->setColor(gColors.getColor( "LabelSelectedColor" )); | 86 | mTBLocation = getChild<LLTextBox>("event_location"); |
96 | mTBLocation = LLViewerUICtrlFactory::getTextBoxByName(this, "event_location"); | 87 | mTBCover = getChild<LLTextBox>("event_cover"); |
97 | mTBLocation->setColor(gColors.getColor( "LabelSelectedColor" )); | ||
98 | mTBCover = LLViewerUICtrlFactory::getTextBoxByName(this, "event_cover"); | ||
99 | mTBCover->setColor(gColors.getColor( "LabelSelectedColor" )); | ||
100 | 88 | ||
101 | mTeleportBtn = LLViewerUICtrlFactory::getButtonByName(this, "teleport_btn"); | 89 | mTeleportBtn = getChild<LLButton>( "teleport_btn"); |
102 | mTeleportBtn->setClickedCallback(onClickTeleport); | 90 | mTeleportBtn->setClickedCallback(onClickTeleport); |
103 | mTeleportBtn->setCallbackUserData(this); | 91 | mTeleportBtn->setCallbackUserData(this); |
104 | 92 | ||
105 | mMapBtn = LLViewerUICtrlFactory::getButtonByName(this, "map_btn"); | 93 | mMapBtn = getChild<LLButton>( "map_btn"); |
106 | mMapBtn->setClickedCallback(onClickMap); | 94 | mMapBtn->setClickedCallback(onClickMap); |
107 | mMapBtn->setCallbackUserData(this); | 95 | mMapBtn->setCallbackUserData(this); |
108 | 96 | ||
109 | //mLandmarkBtn = LLViewerUICtrlFactory::getButtonByName(this, "landmark_btn"); | 97 | mNotifyBtn = getChild<LLButton>( "notify_btn"); |
110 | //mLandmarkBtn->setClickedCallback(onClickLandmark); | ||
111 | //mLandmarkBtn->setCallbackUserData(this); | ||
112 | |||
113 | mNotifyBtn = LLViewerUICtrlFactory::getButtonByName(this, "notify_btn"); | ||
114 | mNotifyBtn->setClickedCallback(onClickNotify); | 98 | mNotifyBtn->setClickedCallback(onClickNotify); |
115 | mNotifyBtn->setCallbackUserData(this); | 99 | mNotifyBtn->setCallbackUserData(this); |
116 | 100 | ||
117 | mCreateEventBtn = LLViewerUICtrlFactory::getButtonByName(this, "create_event_btn"); | 101 | mCreateEventBtn = getChild<LLButton>( "create_event_btn"); |
118 | mCreateEventBtn->setClickedCallback(onClickCreateEvent); | 102 | mCreateEventBtn->setClickedCallback(onClickCreateEvent); |
119 | mCreateEventBtn->setCallbackUserData(this); | 103 | mCreateEventBtn->setCallbackUserData(this); |
120 | 104 | ||