Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
52c2bfb
Merge remote-tracking branch 'upstream/master' into bebylon
Feb 9, 2018
87f17f9
Put back K&L specific changes
Feb 9, 2018
152540d
Add PyCalllable_Check_Extended macro to guard against "callable" uscr…
Feb 10, 2018
39906bf
Addd iseditor/isrunninggame/isrunningcommandlet/isrunningdedicatedserver
Feb 12, 2018
16b4b05
Merge remote-tracking branch 'upstream/master' into bebylon
Feb 12, 2018
5fc799f
Add back K&L specific build process workaround
Feb 13, 2018
4ebc878
SPythonTreeView extensions
Feb 14, 2018
9751d91
Python Plugin: Add ability to set styleset with slatestyle widgets
Feb 14, 2018
87b7056
UEPyEngine, UEPyEditor, UEPyModule: Added console exec function to UE…
Feb 16, 2018
e6de04b
FIX: Multicast delegate property should reference pointer in containe…
Feb 16, 2018
e14d936
Make explicit python FTransform a subchild of of UE4's FTransform so …
Feb 16, 2018
003d2ae
Rationalize struct allocation into ue_py_uscriptstruct_alloc()
Feb 16, 2018
f0d4022
Modify PyFVector & PyFTransform to be children of ue4's native FVecto…
Feb 17, 2018
dcf7ed1
Making PyFRotator derive from UE4's FRotator
Feb 17, 2018
2b044d7
Convert PyFQuat to UE4 FQuat base
Feb 17, 2018
477a5f5
FIX: Manually allocating ue_py_uscriptstruct in fquat_init & frotator…
Feb 17, 2018
f7784c7
Merge remote-tracking branch 'upstream/master' into bebylon
Feb 17, 2018
712027f
Merge remote-tracking branch 'upstream/master' into bebylon
Feb 18, 2018
d9fc320
FIX: GetPostGarbageCollect() does not exist in UE4.17; changing to Po…
Feb 20, 2018
db12097
FIX: Bug with order of FRotator initialization
Feb 20, 2018
eb212bc
Add save_package_helper: More robust than save_package
Feb 20, 2018
1299cbd
Add checks using TBaseStructure<FGuid>() instead of searching for FGu…
Feb 20, 2018
7546858
Demarcate K&L specific stuff
Feb 20, 2018
24b354f
Prep for pull-request: Remove K&L specific additions
Feb 20, 2018
acc38e8
Allow FRotator to be initialized with zero parameters
Feb 21, 2018
827f828
Merge remote-tracking branch 'upstream/master' into bebylon
Feb 21, 2018
f7191b6
Merge branch 'bebylon' into structref-makerobust
Feb 21, 2018
fa549ec
Remove memory debug
Feb 21, 2018
6d590d3
Extend SCheckBox & add support for CheckboxStyle
Feb 23, 2018
cc44b06
Python Plugin feature aadditions around Combobox/SSplitter
Feb 27, 2018
5ea3eaa
Merge remote-tracking branch 'upstream/master' into bebylon
Feb 27, 2018
32a4afd
Add autosize option to register_nomad_spawner
Feb 27, 2018
f7c00eb
Python: Extend create detail view to support EEditDefaultsOnlyNodeVis…
Feb 28, 2018
6bed3f9
Extend SScrollBox with remove_slot
Mar 1, 2018
721b2c3
Merge remote-tracking branch 'upstream/master' into bebylon
Mar 2, 2018
7901d4d
Adding SExpandableArea widget
Mar 8, 2018
e5ed452
Merge remote-tracking branch 'upstream/master' into bebylon
Mar 8, 2018
d0893f1
Missing build fixes from last sync
Mar 8, 2018
e558822
Build fix: Marking unreal_engine_py_init() as extern
Mar 9, 2018
473fa29
Merge remote-tracking branch 'upstream/master' into bebylon
Mar 9, 2018
5719a2a
FIX: Memory leak in menu_builder.make_widget()
Mar 9, 2018
68a2fdf
Sequencer & Editor & Slate Extensions:
Mar 11, 2018
6f24c05
Merge remote-tracking branch 'upstream/master' into bebylon
Mar 11, 2018
824d26f
Python Plugin: Add support for passing delegate function parameters
Mar 13, 2018
70ad3dc
Add set_game_mode for feditor_viewport_client_set_game_mode
Mar 14, 2018
a05a5e9
Merge remote-tracking branch 'upstream/master' into bebylon
Mar 14, 2018
977a076
Add missing WITH_EDITOR guards so packaged game builds correctly
Mar 15, 2018
1e617f0
Lots of fixes for 4.19
Mar 19, 2018
5d70ac5
Merge remote-tracking branch 'upstream/master' into bebylon
Mar 19, 2018
4f76b01
Build fixes to allow for standalone builds with python plugin in 4.19
Mar 22, 2018
c988d7c
Add IsCameraLocked, set_height_override, set_width_override to SBox &…
Mar 22, 2018
2ebee12
Add ETabRole, ue_remove_docktab_from_mapping
Mar 25, 2018
01fbbf7
Merge remote-tracking branch 'upstream/master' into bebylon
Mar 25, 2018
3e1be6a
Add support for restoring expanded state for treeview
Mar 26, 2018
d87a2ae
FIX: Add proper sdocktab support in the python layer and support pers…
Apr 3, 2018
692a7ad
Make invoke_tab take in TabManager as argument
Apr 8, 2018
92a9834
Missing comment
Apr 8, 2018
59c1e5b
Merge remote-tracking branch 'upstream/master' into bebylon
Apr 8, 2018
995df4e
Fix Non-editor build errors from py_unreal_engine_find_actor_by_label…
Apr 8, 2018
b9148b2
Extending Tab Management:
Apr 8, 2018
aa28f82
Massive Slate Extensions:
Apr 24, 2018
c622945
PYTHON FEATURE: Added enum property support to the subclassing API
May 1, 2018
03bb205
Adding expander arrow for multicolumn listview
May 12, 2018
8167bc2
Added set_metadata_on_property to UEPyObject to set metadata flags on…
May 18, 2018
99fd35a
Fix SlateIcon support to actually load textures from icons
May 18, 2018
5b555b1
exposed CLASS_HAS_NEWER_VERSION
May 27, 2018
31a7f0a
Add support for Data Validation Manager:
May 29, 2018
11fea2b
Merge remote-tracking branch 'upstream/slate_refactoring' into bebylon
May 29, 2018
ef941ce
FIX: Various regressions from upstream slate refactor
May 29, 2018
55f1eba
Add experimental support for GC'ing StaticSlateDelegates by attaching…
May 29, 2018
616cb31
REGRESSION FIX: Slate delegates are not tracked in slots bc of new lo…
May 30, 2018
7a6c42c
Prepare for merge of #b8f4f23f80edaeadf90b0e3cfc660007875a6e30
May 30, 2018
8637058
Merge commit 'b8f4f23f80edaeadf90b0e3cfc660007875a6e30' into bebylon
May 30, 2018
5674b8f
Merge remote-tracking branch 'upstream/no_pch' into bebylon
May 30, 2018
30f23a3
Merge commit '59ec6f90cd7f3472e6106af644e109f83665c326' into bebylon
May 30, 2018
770407e
Merge commit 'c21f72d362db2f55ed0e503f33963cb68027b182' into bebylon
May 30, 2018
fe605eb
Merge commit '33ac302e704bad6b4e424127b0a703e267eba937' into bebylon
May 30, 2018
f05b979
Merge commit '2bda69f1bc55a7eeaa5a262be3655ffdae5927dc' into bebylon
May 30, 2018
5f36fd6
Merge commit 'cb19b3859f52330ccae02cc04990ec14d686d19d' into bebylon
May 30, 2018
596986a
Merge commit 'acfb20f9567ba026fa4f6b09db8dddc01643a23a' into bebylon
May 30, 2018
437ae3b
Merge commit '551c3d08cf58a19790759e5fb14e2fdc453628c0' into bebylon
May 30, 2018
6571122
Merge commit '3ed29371e7e2a2ce75f425be254e02590ab3f0a5' into bebylon
May 30, 2018
1c99a74
Merge remote-tracking branch 'upstream/master' into bebylon
May 30, 2018
5491dc7
REGRESSION: Fix RunFile logic to work if it gets passed a fully quali…
May 30, 2018
8c653fc
Add is_valid() to fassetdata
May 30, 2018
fc36b3a
FIX: Making standalone builds compile
Jun 20, 2018
eea9766
FIX: Returning zero vector on error for FVector2D getters
Jun 20, 2018
e0b5617
FIX: Logic for get property_struct & is_child_of to properly handle s…
Jun 20, 2018
5a5cb21
Merge commit '7502c054aa36069e4fee8d6a8a2b1f189f4fe179' into bebylon
Jun 20, 2018
022bf7f
Python fixes with returning uninit FVector2D on Error
Jun 22, 2018
8e43026
Merge branch 'bebylon' into structref-makerobust
Jun 22, 2018
bc36054
Remove outdated K&L specific markers as 4.18 exports GetSelectedSections
Jun 22, 2018
8217094
FIX: Syntax error in in .uplugin file
Jun 22, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'upstream/slate_refactoring' into bebylon
# Conflicts:
#	Source/UnrealEnginePython/Private/Slate/UEPyFMenuBuilder.cpp
#	Source/UnrealEnginePython/Private/Slate/UEPyFToolBarBuilder.cpp
#	Source/UnrealEnginePython/Private/Slate/UEPySCheckBox.cpp
#	Source/UnrealEnginePython/Private/Slate/UEPySDockTab.cpp
#	Source/UnrealEnginePython/Private/Slate/UEPySPythonComboBox.cpp
#	Source/UnrealEnginePython/Private/Slate/UEPySPythonListView.cpp
#	Source/UnrealEnginePython/Private/Slate/UEPySPythonMultiColumnTableRow.cpp
#	Source/UnrealEnginePython/Private/Slate/UEPySPythonMultiColumnTableRow.h
#	Source/UnrealEnginePython/Private/Slate/UEPySPythonTreeView.cpp
#	Source/UnrealEnginePython/Private/Slate/UEPySSplitter.cpp
#	Source/UnrealEnginePython/Private/Slate/UEPySTextBlock.cpp
#	Source/UnrealEnginePython/Private/Slate/UEPySWidget.cpp
#	Source/UnrealEnginePython/Private/Slate/UEPySlate.cpp
#	Source/UnrealEnginePython/Private/Slate/UEPySlate.h
  • Loading branch information
ikrima
ikrima committed May 29, 2018
commit 11fea2bc7550546a7b866a0913db3eae41e6cf76
2 changes: 0 additions & 2 deletions Source/UnrealEnginePython/Private/Slate/UEPyFMenuBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ static PyObject *py_ue_fmenu_builder_end_section(ue_PyFMenuBuilder *self, PyObje

static PyObject *py_ue_fmenu_builder_make_widget(ue_PyFMenuBuilder *self, PyObject * args)
{
//PyObject_New(ue_PySWidget, &ue_PySWidgetType);
//new (&ret->s_widget) TSharedRef<SWidget>(self->menu_builder.MakeWidget());
ue_PySWidget *ret = py_ue_new_swidget<ue_PySWidget>(self->menu_builder.MakeWidget(), &ue_PySWidgetType);
return (PyObject *)ret;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,7 @@ static PyObject *py_ue_ftool_bar_builder_end_block_group(ue_PyFToolBarBuilder *s

static PyObject *py_ue_ftool_bar_builder_make_widget(ue_PyFToolBarBuilder *self, PyObject * args)
{
//ue_PySWidget *ret = (ue_PySWidget *)PyObject_New(ue_PySWidget, &ue_PySWidgetType);
//ue_py_setup_swidget(ret);
//ret->s_widget = self->tool_bar_builder.MakeWidget();
ue_PySWidget *ret = py_ue_new_swidget<ue_PySWidget>(self->tool_bar_builder.MakeWidget(), &ue_PySWidgetType);
return (PyObject *)ret;
return (PyObject *)py_ue_new_swidget<ue_PySWidget>(self->tool_bar_builder.MakeWidget(), &ue_PySWidgetType);
}

static PyMethodDef ue_PyFToolBarBuilder_methods[] = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include "IStructureDetailsView.h"


//#define sw_idetails_view StaticCastSharedRef<IDetailsView>(self->s_compound_widget.s_widget.s_widget)


static PyObject *ue_PyIStructureDetailsView_str(ue_PyIStructureDetailsView *self)
Expand Down
8 changes: 6 additions & 2 deletions Source/UnrealEnginePython/Private/Slate/UEPySBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,32 @@ static PyObject *py_ue_sbox_set_content(ue_PySBox *self, PyObject * args)

static PyObject *py_ue_sbox_set_height_override(ue_PySBox *self, PyObject * args)
{
ue_py_slate_cast(SBox);

float height_override = 0;
if (!PyArg_ParseTuple(args, "f:set_height_override", &height_override))
{
return NULL;
}

if (height_override != 0)
sw_box->SetHeightOverride(height_override);
py_SBox->SetHeightOverride(height_override);

Py_RETURN_NONE;
}

static PyObject *py_ue_sbox_set_width_override(ue_PySBox *self, PyObject * args)
{
ue_py_slate_cast(SBox);

float width_override = 0;
if (!PyArg_ParseTuple(args, "f:set_width_override", &width_override))
{
return NULL;
}

if (width_override != 0)
sw_box->SetWidthOverride(width_override);
py_SBox->SetWidthOverride(width_override);

Py_RETURN_NONE;
}
Expand Down
37 changes: 17 additions & 20 deletions Source/UnrealEnginePython/Private/Slate/UEPySCheckBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,39 @@
// Needed for PROPERTY_BINDING macro
#include "Widget.h"

#define sw_check_box StaticCastSharedRef<SCheckBox>(self->s_compound_widget.s_widget.s_widget)

static PyObject *py_ue_scheck_box_set_content(ue_PySCheckBox *self, PyObject * args)
{
ue_py_slate_cast(SCheckBox);
PyObject *py_content;
if (!PyArg_ParseTuple(args, "O:set_content", &py_content))
{
return NULL;
}

ue_PySWidget *py_swidget = py_ue_is_swidget(py_content);
if (!py_swidget)
{
return PyErr_Format(PyExc_Exception, "argument is not a SWidget");
}
TSharedPtr<SWidget> child = py_ue_is_swidget<SWidget>(py_content);
if (!child.IsValid())
return nullptr;


Py_INCREF(py_swidget);

py_SCheckBox->SetContent(child.ToSharedRef());

sw_check_box->SetContent(py_swidget->s_widget->AsShared());

Py_INCREF(self);
return (PyObject *)self;
Py_RETURN_SLATE_SELF;
}

static PyObject *py_ue_scheck_box_is_checked(ue_PySCheckBox *self, PyObject * args) {

if (sw_check_box->IsChecked()) {
static PyObject *py_ue_scheck_box_is_checked(ue_PySCheckBox *self, PyObject * args)
{
ue_py_slate_cast(SCheckBox);
if (py_SCheckBox->IsChecked())
{
Py_RETURN_TRUE;
}

Py_RETURN_FALSE;
}

static PyObject *py_ue_scheck_box_set_is_checked(ue_PySCheckBox *self, PyObject * args) {
ue_py_slate_cast(SCheckBox);
PyObject *py_bool;
if (!PyArg_ParseTuple(args, "O:set_is_checked", &py_bool))
{
Expand All @@ -49,7 +46,7 @@ static PyObject *py_ue_scheck_box_set_is_checked(ue_PySCheckBox *self, PyObject

ECheckBoxState CheckedState = PyObject_IsTrue(py_bool) ? ECheckBoxState::Checked : ECheckBoxState::Unchecked;

sw_check_box->SetIsChecked(TAttribute<ECheckBoxState>(CheckedState));
py_SCheckBox->SetIsChecked(TAttribute<ECheckBoxState>(CheckedState));

Py_RETURN_NONE;
}
Expand Down Expand Up @@ -95,7 +92,7 @@ PyTypeObject ue_PySCheckBoxType = {

static int ue_py_scheck_box_init(ue_PySCheckBox *self, PyObject *args, PyObject *kwargs)
{

ue_py_slate_setup_farguments(SCheckBox);
ue_py_slate_farguments_optional_struct_ptr("style", Style, FCheckBoxStyle);
ue_py_slate_farguments_optional_enum ("type", Type, ESlateCheckBoxType::Type);
Expand All @@ -104,8 +101,8 @@ static int ue_py_scheck_box_init(ue_PySCheckBox *self, PyObject *args, PyObject
ue_py_slate_farguments_optional_enum ("h_align", HAlign, EHorizontalAlignment);
ue_py_slate_farguments_struct ("padding", Padding, FMargin);
ue_py_slate_farguments_enum ("click_method", ClickMethod, EButtonClickMethod::Type);
ue_py_slate_farguments_struct ("border_background_color", BorderBackgroundColor, FSlateColor);
ue_py_slate_farguments_struct ("foreground_color", ForegroundColor, FSlateColor);
ue_py_slate_farguments_struct("border_background_color", BorderBackgroundColor, FSlateColor);
ue_py_slate_farguments_struct("foreground_color", ForegroundColor, FSlateColor);
ue_py_slate_farguments_optional_bool ("is_focusable", IsFocusable);
ue_py_slate_farguments_event ("on_get_menu_content", OnGetMenuContent, FOnGetContent, OnGetMenuContent);
ue_py_slate_farguments_optional_struct_ptr("unchecked_image", UncheckedImage, FSlateBrush);
Expand Down
38 changes: 21 additions & 17 deletions Source/UnrealEnginePython/Private/Slate/UEPySDockTab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ static PyObject *py_ue_sdock_tab_set_label(ue_PySDockTab *self, PyObject * args)

static PyObject *py_ue_sdock_tab_set_on_tab_closed(ue_PySButton *self, PyObject * args)
{
ue_py_slate_cast(SDockTab);

PyObject *py_callable;
if (!PyArg_ParseTuple(args, "O:set_on_tab_closed", &py_callable))
{
Expand All @@ -38,13 +40,14 @@ static PyObject *py_ue_sdock_tab_set_on_tab_closed(ue_PySButton *self, PyObject
TSharedRef<FPythonSlateDelegate> py_delegate = FUnrealEnginePythonHouseKeeper::Get()->NewStaticSlateDelegate(py_callable);
onTabClosed.BindSP(py_delegate, &FPythonSlateDelegate::OnTabClosed);

sw_dock_tab->SetOnTabClosed(onTabClosed);
py_SDockTab->SetOnTabClosed(onTabClosed);
Py_RETURN_NONE;
}

static PyObject *py_ue_sdock_tab_request_close_tab(ue_PySButton *self, PyObject * args) {

sw_dock_tab->RequestCloseTab();
static PyObject *py_ue_sdock_tab_request_close_tab(ue_PySDockTab *self, PyObject * args)
{
ue_py_slate_cast(SDockTab);
py_SDockTab->RequestCloseTab();

Py_RETURN_NONE;
}
Expand All @@ -58,41 +61,42 @@ static PyObject *py_ue_sdock_tab_new_tab_manager(ue_PySDockTab *self, PyObject *
}


static PyObject *py_ue_sdock_tab_bring_to_front(ue_PySButton *self, PyObject * args) {

TSharedPtr<SWindow> parentWindow = sw_dock_tab->GetParentWindow();
static PyObject *py_ue_sdock_tab_bring_to_front(ue_PySDockTab *self, PyObject * args)
{
ue_py_slate_cast(SDockTab);
TSharedPtr<SWindow> parentWindow = py_SDockTab->GetParentWindow();
if (parentWindow.Get() != nullptr)
{
parentWindow->HACK_ForceToFront();
}
Py_RETURN_NONE;
}

static PyObject *py_ue_sdock_get_parent_window(ue_PySButton *self, PyObject * args) {

TSharedPtr<SWindow> ParentWindow = sw_dock_tab->GetParentWindow();
static PyObject *py_ue_sdock_get_parent_window(ue_PySDockTab *self, PyObject * args)
{
ue_py_slate_cast(SDockTab);
TSharedPtr<SWindow> ParentWindow = py_SDockTab->GetParentWindow();
if (ParentWindow.IsValid())
{
// Check to see if the widget exists already
ue_PySWidget *ret = ue_py_get_swidget(StaticCastSharedRef<SWidget>(ParentWindow.ToSharedRef()));
return (PyObject *)ret;
}
Py_INCREF(Py_None);
return Py_None;
Py_RETURN_NONE;
}

static PyObject *py_ue_sdock_get_docking_area(ue_PySButton *self, PyObject * args) {

TSharedPtr<SDockingArea> DockingArea = sw_dock_tab->GetDockArea();
static PyObject *py_ue_sdock_get_docking_area(ue_PySDockTab *self, PyObject * args)
{
ue_py_slate_cast(SDockTab);
TSharedPtr<SDockingArea> DockingArea = py_SDockTab->GetDockArea();
if (DockingArea.IsValid())
{
ue_PySWidget *ret = nullptr;
// Checks to see if the widget exists already, is added to mapping if not
ret = ue_py_get_swidget(StaticCastSharedRef<SWidget>(DockingArea.ToSharedRef()));
return (PyObject *)ret;
}
Py_INCREF(Py_None);
return Py_None;
Py_RETURN_NONE;
}

static PyMethodDef ue_PySDockTab_methods[] = {
Expand Down
18 changes: 9 additions & 9 deletions Source/UnrealEnginePython/Private/Slate/UEPySExpandableArea.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@
#include "UEPySExpandableArea.h"


#define sw_expandable_area StaticCastSharedRef<SExpandableArea>(self->s_compound_widget.s_widget.s_widget)


static PyObject *py_ue_sexpandable_area_is_expanded(ue_PySCheckBox *self, PyObject * args) {

if (sw_expandable_area->IsExpanded()) {
static PyObject *py_ue_sexpandable_area_is_expanded(ue_PySCheckBox *self, PyObject * args)
{
ue_py_slate_cast(SExpandableArea);
if (py_SExpandableArea->IsExpanded()) {
Py_RETURN_TRUE;
}

Py_RETURN_FALSE;
}

static PyObject *py_ue_sexpandable_area_set_expanded(ue_PySCheckBox *self, PyObject * args) {
static PyObject *py_ue_sexpandable_area_set_expanded(ue_PySCheckBox *self, PyObject * args)
{
ue_py_slate_cast(SExpandableArea);
PyObject *py_bool;
if (!PyArg_ParseTuple(args, "O:set_expanded", &py_bool))
{
return NULL;
}

sw_expandable_area->SetExpanded(PyObject_IsTrue(py_bool) ? true : false);
py_SExpandableArea->SetExpanded(PyObject_IsTrue(py_bool) ? true : false);

Py_RETURN_NONE;
}
Expand Down Expand Up @@ -85,7 +85,7 @@ static int ue_py_sexpandable_area_init(ue_PySExpandableArea *self, PyObject *arg
ue_py_slate_farguments_event ("on_area_expansion_changed", OnAreaExpansionChanged, FOnBooleanValueChanged, OnBoolChanged);
ue_py_slate_farguments_struct ("area_title_font", AreaTitleFont, FSlateFontInfo);

ue_py_snew(SExpandableArea, s_compound_widget.s_widget);
ue_py_snew(SExpandableArea);
return 0;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#include "UEPySExpanderArrow.h"


#define sw_expander_arrow StaticCastSharedRef<SExpanderArrow>(self->s_compound_widget.s_widget.s_widget)

static PyMethodDef ue_PySExpanderArrow_methods[] = {
{ NULL } /* Sentinel */
};
Expand Down Expand Up @@ -68,7 +66,7 @@ static int ue_py_sexpander_arrow_init(ue_PySExpanderArrow *self, PyObject *args,
ue_py_slate_setup_farguments(SExpanderArrow);
ue_py_slate_farguments_attribute_float("indent_amount", IndentAmount);
ue_py_slate_farguments_attribute_int("base_indent_level", BaseIndentLevel);
ue_py_snew_with_args(SExpanderArrow, s_compound_widget.s_widget, StaticCastSharedRef<SPythonMultiColumnTableRow>(py_owner_table_row->s_compound_widget.s_widget.s_widget));
ue_py_snew_with_args(SExpanderArrow, py_ue_is_swidget<SPythonMultiColumnTableRow>((PyObject*)py_owner_table_row).ToSharedRef());

self->owner_row_py = py_owner_table_row;
Py_INCREF(py_owner_table_row);
Expand Down
8 changes: 3 additions & 5 deletions Source/UnrealEnginePython/Private/Slate/UEPySGraphPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
#if ENGINE_MINOR_VERSION > 15
#include "UEPySGraphPanel.h"

#define sw_graph_panel StaticCastSharedRef<SGraphPanel>(self->s_nodePanel.s_panel.s_widget)

/*
static PyObject *py_ue_sgraph_panel_add_slot(ue_PySGraphPanel* self, PyObject *args, PyObject *kwargs)
{
ue_py_slate_cast(SGraphPanel);
PyObject *py_content;
int z_order = -1;
int h_align = 0;
Expand Down Expand Up @@ -41,9 +40,8 @@ static PyObject *py_ue_sgraph_panel_add_slot(ue_PySGraphPanel* self, PyObject *a
Py_INCREF(py_swidget);
self->s_nodePanel.s_panel.s_widget.py_swidget_slots.Add(py_swidget);

sw_graph_panel;

SOverlay::FOverlaySlot &fslot = sw_graph_panel->//sw_overlay->AddSlot(z_order);

SOverlay::FOverlaySlot &fslot = py_SGraphPanel->
fslot.AttachWidget(py_swidget->s_widget->AsShared());
fslot.HAlign((EHorizontalAlignment)h_align);
if (padding)
Expand Down
9 changes: 0 additions & 9 deletions Source/UnrealEnginePython/Private/Slate/UEPySHeaderRow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,6 @@ static PyObject *py_ue_sheader_row_add_column(ue_PySHeaderRow *self, PyObject *a

ue_py_slate_farguments_bool("should_generate_widget", ShouldGenerateWidget);

//sw_header_row->AddColumn(
// SHeaderRow::Column(FName(UTF8_TO_TCHAR(column_id)))
// .DefaultLabel(FText::FromString(UTF8_TO_TCHAR(default_label)))
// .DefaultTooltip(FText::FromString(UTF8_TO_TCHAR(default_tooltip)))
// .FixedWidth(fixed_width)
// .HAlignCell((EHorizontalAlignment)cell_h_align)
// .VAlignCell((EVerticalAlignment)cell_v_align)
//);

py_SHeaderRow->AddColumn(arguments);
return 0;
}();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static PyObject *py_ue_slevel_viewport_set_exposure_settings(ue_PySPythonEditorV
/*
PyObject *py_ue_spython_editor_viewport_simulate(ue_PySPythonEditorViewport *self, PyObject * args) {

sw_python_editor_viewport->GetViewportClient()->SetIsSimulateInEditorViewport(true);
py_SLevelViewport->GetViewportClient()->SetIsSimulateInEditorViewport(true);

Py_RETURN_NONE;

Expand Down
2 changes: 0 additions & 2 deletions Source/UnrealEnginePython/Private/Slate/UEPySListView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

#include "UEPySListView.h"

#define sw_slist_view StaticCastSharedRef<SListView<TSharedPtr<FPythonItem>>>(self->s_table_view_base.s_compound_widget.s_widget.s_widget)

static PyMethodDef ue_PySListView_methods[] = {
{ NULL } /* Sentinel */
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "UEPySNumericEntryBox.h"


#define sw_float_numeric_entry_box StaticCastSharedRef<SNumericEntryBox<float>>(self->s_compound_widget.s_widget.s_widget)


static PyMethodDef ue_PySNumericEntryBox_methods[] = {
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.