mirror of
https://github.com/cookiengineer/audacity
synced 2026-04-18 20:20:15 +02:00
HelpSystem.cpp has fewer dependencies...
... There was no reason to store the help location preferences as per-project state. Also move the dialog for quick fixes near its only use in HelpMenus.cpp. This takes 22 files out of the big strongly connected component, notably the much used lower level utilities, ErrorDialog and AudacityException. HelpSystem itself is still in a small cycle with LinkingHtmlWindow.
This commit is contained in:
@@ -104,33 +104,4 @@ public:
|
||||
|
||||
class ShuttleGui;
|
||||
|
||||
/** @brief Class which makes a dialog for displaying quick fixes to common issues.
|
||||
*
|
||||
* This class originated with the 'Stuck in a mode' problem, where far too many
|
||||
* users get into a mode without realising, and don't know how to get out.
|
||||
* It is a band-aid, and we should do more towards a full and proper solution
|
||||
* where there are fewer special modes, and they don't persisit.
|
||||
*/
|
||||
class QuickFixDialog : public wxDialogWrapper
|
||||
{
|
||||
public:
|
||||
QuickFixDialog(wxWindow * pParent);
|
||||
void Populate();
|
||||
void PopulateOrExchange(ShuttleGui & S);
|
||||
void AddStuck( ShuttleGui & S, bool & bBool, wxString Pref, wxString Prompt, wxString Help );
|
||||
|
||||
void OnOk(wxCommandEvent &event);
|
||||
void OnCancel(wxCommandEvent &event);
|
||||
void OnHelp(wxCommandEvent &event);
|
||||
void OnFix(wxCommandEvent &event);
|
||||
|
||||
wxString StringFromEvent( wxCommandEvent &event );
|
||||
|
||||
int mItem;
|
||||
bool mbSyncLocked;
|
||||
bool mbInSnapTo;
|
||||
bool mbSoundActivated;
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
#endif // __AUDACITY_HELPSYSTEM__
|
||||
|
||||
Reference in New Issue
Block a user