Add an operator-> to cStrDlog and cStringChoice, mainly for consistency since cPictChoice and cChoiceDlog already had one.
This commit is contained in:
@@ -182,6 +182,10 @@ void cStringChoice::attachHandlers() {
|
||||
}
|
||||
}
|
||||
|
||||
cDialog* cStringChoice::operator->() {
|
||||
return &dlg;
|
||||
}
|
||||
|
||||
size_t cStringChoice::show(size_t selectedIndex) {
|
||||
cur = selectedIndex;
|
||||
page = cur / per_page;
|
||||
@@ -518,6 +522,10 @@ cStrDlog& cStrDlog::setRecordHandler(record_callback_t rec){
|
||||
return *this;
|
||||
}
|
||||
|
||||
cDialog* cStrDlog::operator->() {
|
||||
return &dlg;
|
||||
}
|
||||
|
||||
void cStrDlog::show(){
|
||||
if(sound > 0) play_sound(sound);
|
||||
dlg.run();
|
||||
|
Reference in New Issue
Block a user