Skip to content

Commit

Permalink
fixed build against latest wx-master
Browse files Browse the repository at this point in the history
  • Loading branch information
eranif committed Mar 20, 2023
1 parent 6f41d79 commit c5c975a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions LiteEditor/editorsettingsdockingwidows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ EditorSettingsDockingWindows::EditorSettingsDockingWindows(wxWindow* parent, Opt
std::unordered_map<wxString, wxDirection> orientation_map = { { "UP", wxUP }, { "DOWN", wxDOWN } };
std::unordered_map<int, wxString> orientation_map_reverse = { { wxUP, "UP" }, { wxDOWN, "DOWN" } };

AddProperty(_("Workspace tabs orientation"), { "UP", "DOWN" },
AddProperty(_("Workspace tabs orientation"), std::vector<wxString>{ "UP", "DOWN" },
orientation_map_reverse[m_options->GetWorkspaceTabsDirection()],
[this, orientation_map](const wxString&, const wxAny& value) mutable {
wxString str_value;
if(value.GetAs(&str_value)) {
m_options->SetWorkspaceTabsDirection(orientation_map[str_value]);
}
});
AddProperty(_("Output tabs orientation"), { "UP", "DOWN" },
AddProperty(_("Output tabs orientation"), std::vector<wxString>{ "UP", "DOWN" },
orientation_map_reverse[m_options->GetOutputTabsDirection()],
[this, orientation_map](const wxString&, const wxAny& value) mutable {
wxString str_value;
Expand Down
2 changes: 1 addition & 1 deletion codelitephp/php-plugin/php_open_resource_dlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
#ifndef __php_open_resource_dlg__
#define __php_open_resource_dlg__

#include <wx/propgrid/manager.h>
#include "php_ui.h"
#include <vector>
#include "PHPEntityVariable.h"
#include "PHPEntityBase.h"
#include "PHPLookupTable.h"
#include "bitmap_loader.h"
#include <wx/propgrid/manager.h>

struct ResourceItem {
enum { kRI_Invalid = -1, kRI_File, kRI_Class, kRI_Constant, kRI_Function, kRI_Member, kRI_Variable, kRI_Namespace };
Expand Down

0 comments on commit c5c975a

Please sign in to comment.