Code style
This commit is contained in:
parent
75819206a0
commit
cb722c6bfa
|
@ -159,6 +159,7 @@ void ACTION_PLUGINS::register_action( ACTION_PLUGIN* aAction )
|
|||
|
||||
// Load icon if supplied
|
||||
wxString icon_file_name = aAction->GetIconFileName( GetBitmapStore()->IsDarkTheme() );
|
||||
|
||||
if( !icon_file_name.IsEmpty() )
|
||||
{
|
||||
{
|
||||
|
|
|
@ -83,10 +83,10 @@ public:
|
|||
|
||||
/**
|
||||
* Function GetIconFileName
|
||||
* @param dark true if requesting dark theme icon
|
||||
* @param aDark true if requesting dark theme icon
|
||||
* @return a path to icon for the action plugin button
|
||||
*/
|
||||
virtual wxString GetIconFileName( bool dark ) = 0;
|
||||
virtual wxString GetIconFileName( bool aDark ) = 0;
|
||||
|
||||
/**
|
||||
* Function GetPluginPath
|
||||
|
|
|
@ -138,11 +138,11 @@ bool PYTHON_ACTION_PLUGIN::GetShowToolbarButton()
|
|||
}
|
||||
|
||||
|
||||
wxString PYTHON_ACTION_PLUGIN::GetIconFileName( bool dark )
|
||||
wxString PYTHON_ACTION_PLUGIN::GetIconFileName( bool aDark )
|
||||
{
|
||||
PyLOCK lock;
|
||||
|
||||
PyObject* arglist = Py_BuildValue( "(i)", (int) dark );
|
||||
PyObject* arglist = Py_BuildValue( "(i)", static_cast<int>( aDark ) );
|
||||
|
||||
wxString result = CallRetStrMethod( "GetIconFileName", arglist );
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ public:
|
|||
wxString GetName() override;
|
||||
wxString GetDescription() override;
|
||||
bool GetShowToolbarButton() override;
|
||||
wxString GetIconFileName( bool dark ) override;
|
||||
wxString GetIconFileName( bool aDark ) override;
|
||||
wxString GetPluginPath() override;
|
||||
void Run() override;
|
||||
void* GetObject() override;
|
||||
|
|
Loading…
Reference in New Issue