34 lines
854 B
C++
34 lines
854 B
C++
// Copyright 2020-2024 CesiumGS, Inc. and Contributors
|
|
|
|
#pragma once
|
|
|
|
#include "Widgets/Input/SComboBox.h"
|
|
#include "Widgets/SCompoundWidget.h"
|
|
|
|
class FArguments;
|
|
class UCesiumIonServer;
|
|
|
|
class CesiumIonServerSelector : public SCompoundWidget {
|
|
SLATE_BEGIN_ARGS(CesiumIonServerSelector) {}
|
|
SLATE_END_ARGS()
|
|
|
|
CesiumIonServerSelector();
|
|
virtual ~CesiumIonServerSelector();
|
|
|
|
void Construct(const FArguments& InArgs);
|
|
|
|
private:
|
|
TSharedRef<SWidget>
|
|
OnGenerateServerEntry(TWeakObjectPtr<UCesiumIonServer> pServerAsset);
|
|
|
|
FText GetServerValueAsText() const;
|
|
|
|
void OnServerSelectionChanged(
|
|
TWeakObjectPtr<UCesiumIonServer> InItem,
|
|
ESelectInfo::Type InSeletionInfo);
|
|
void OnBrowseForServer();
|
|
void OnCurrentServerChanged();
|
|
|
|
TSharedPtr<SComboBox<TWeakObjectPtr<UCesiumIonServer>>> _pCombo;
|
|
};
|