1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-25 16:48:44 +02:00
audacity/src/prefs/MousePrefs.h
Paul Licameli bf005c0dec PrefsPanel::Factory is a specialization of std::function...
... We don't need to define a class for it
2019-05-16 12:14:51 -04:00

47 lines
1.1 KiB
C++

/**********************************************************************
Audacity: A Digital Audio Editor
MousePrefs.h
**********************************************************************/
#ifndef __AUDACITY_MOUSE_PREFS__
#define __AUDACITY_MOUSE_PREFS__
#include <wx/defs.h>
#include "PrefsPanel.h"
class wxListCtrl;
class ShuttleGui;
#define MOUSE_PREFS_PLUGIN_SYMBOL ComponentInterfaceSymbol{ XO("Mouse") }
class MousePrefs final : public PrefsPanel
{
public:
MousePrefs(wxWindow * parent, wxWindowID winid);
~MousePrefs();
ComponentInterfaceSymbol GetSymbol() override;
wxString GetDescription() override;
bool Commit() override;
wxString HelpPageName() override;
void PopulateOrExchange(ShuttleGui & S) override;
private:
void Populate();
void CreateList();
void AddItem(wxString const & buttons,
wxString const & tool,
wxString const & action,
wxString const & comment = {});
wxListCtrl * mList;
};
/// A PrefsPanel::Factory that creates one MousePrefs panel.
extern PrefsPanel::Factory MousePrefsFactory;
#endif