Audacity 3.2.0
Functions
MultiDialog.h File Reference
#include <wx/defs.h>
#include <wx/chartype.h>
#include "Identifier.h"
#include "Internat.h"
Include dependency graph for MultiDialog.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int ShowMultiDialog (const TranslatableString &message, const TranslatableString &title, const TranslatableStrings &buttons, const ManualPageID &helpPage, const TranslatableString &boxMsg, bool log)
 

Function Documentation

◆ ShowMultiDialog()

int ShowMultiDialog ( const TranslatableString message,
const TranslatableString title,
const TranslatableStrings buttons,
const ManualPageID helpPage,
const TranslatableString boxMsg,
bool  log 
)

Definition at line 176 of file MultiDialog.cpp.

181{
182 wxWindow * pParent = wxTheApp->GetTopWindow();
183
184 // We want a parent we can display over, so don't make it a parent if top
185 // window is a STAY_ON_TOP.
186 if (pParent) {
187 if ((pParent->GetWindowStyle() & wxSTAY_ON_TOP) == wxSTAY_ON_TOP)
188 pParent = NULL;
189 }
190 MultiDialog dlog(pParent,
191 message, title, buttons, helpPage, boxMsg, log);
192 // If dialog does not have a parent, cannot be centred on it.
193 if (pParent != NULL)
194 dlog.CentreOnParent();
195 else {
196 dlog.CenterOnScreen();
197 // and after centring move the dialog left by the size of the dialog.
198 // Likely to help if we have the splash screen visible, or if
199 // we're spanning two equally sized monitors.
200 // Unlikely to make things worse.
201 wxSize Size = dlog.GetSize();
202 Size.SetHeight( 10 );
203 wxPoint Pos = dlog.GetPosition() -Size;
204 dlog.Move(Pos);
205 }
206 return dlog.ShowModal();
207}
static const auto title
A dialog presenting an exclusive, multiple choice, help button, and log info.
Definition: MultiDialog.cpp:42

References title.