Audacity 3.2.0
Classes | Macros | Functions
MultiDialog.cpp File Reference
#include "MultiDialog.h"
#include "MemoryX.h"
#include "ShuttleGui.h"
#include <wx/app.h>
#include <wx/icon.h>
#include <wx/sizer.h>
#include <wx/stattext.h>
#include <wx/statbmp.h>
#include <wx/artprov.h>
#include <wx/radiobox.h>
#include <wx/bmpbuttn.h>
#include "wxPanelWrapper.h"
#include "LogWindow.h"
#include "Theme.h"
#include "AllThemeResources.h"
#include "HelpSystem.h"
Include dependency graph for MultiDialog.cpp:

Go to the source code of this file.

Classes

class  MultiDialog
 A dialog presenting an exclusive, multiple choice, help button, and log info. More...
 

Macros

#define ID_SHOW_LOG_BUTTON   3333
 

Functions

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

Macro Definition Documentation

◆ ID_SHOW_LOG_BUTTON

#define ID_SHOW_LOG_BUTTON   3333

Definition at line 63 of file MultiDialog.cpp.

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.