4545
4646static LLPanelInjector<LLPanelDirEvents> t_panel_dir_events (" panel_dir_events" );
4747
48+ constexpr S32 DAY_TO_SEC = 24 * 60 * 60 ;
49+
4850LLPanelDirEvents::LLPanelDirEvents ()
4951 : LLPanelDirBrowser(),
5052 mDay(0 )
5153{
5254 // more results per page for this
53- mResultsPerPage = 200 ;
55+ mResultsPerPage = RESULTS_PER_PAGE_EVENTS ;
5456}
5557
5658bool LLPanelDirEvents::postBuild ()
@@ -59,8 +61,8 @@ bool LLPanelDirEvents::postBuild()
5961
6062 childSetCommitCallback (" date_mode" , onDateModeCallback, this );
6163
62- childSetAction (" << " , onBackBtn, this );
63- childSetAction (" >> " , onForwardBtn, this );
64+ childSetAction (" back_btn " , onBackBtn, this );
65+ childSetAction (" forward_btn " , onForwardBtn, this );
6466
6567 childSetCommitCallback (" mature" , onCommitMature, this );
6668
@@ -88,7 +90,7 @@ void LLPanelDirEvents::setDay(S32 day)
8890 time_t utc_time = time_corrected ();
8991
9092 // Correct for offset
91- utc_time += day * 24 * 60 * 60 ;
93+ utc_time += day * DAY_TO_SEC ;
9294
9395 // There's only one internal tm buffer.
9496 struct tm * internal_time;
@@ -120,7 +122,7 @@ void LLPanelDirEvents::performQueryOrDelete(U32 event_id)
120122 time_t utc_time = time_corrected ();
121123
122124 // Correct for offset
123- utc_time += relative_day * 24 * 60 * 60 ;
125+ utc_time += relative_day * DAY_TO_SEC ;
124126
125127 // There's only one internal tm buffer.
126128 struct tm * internal_time;
@@ -208,13 +210,13 @@ void LLPanelDirEvents::onDateModeCallback(LLUICtrl* ctrl, void *data)
208210 LLPanelDirEvents* self = (LLPanelDirEvents*)data;
209211 if (self->childGetValue (" date_mode" ).asString () == " date" )
210212 {
211- self->childEnable (" >> " );
212- self->childEnable (" << " );
213+ self->childEnable (" forward_btn " );
214+ self->childEnable (" back_btn " );
213215 }
214216 else
215217 {
216- self->childDisable (" >> " );
217- self->childDisable (" << " );
218+ self->childDisable (" forward_btn " );
219+ self->childDisable (" back_btn " );
218220 }
219221}
220222
0 commit comments