11 #include "IPortList.h"    12 #include "addons/AddonEvents.h"    13 #include "games/GameTypes.h"    14 #include "games/controllers/ControllerTypes.h"    15 #include "games/controllers/dialogs/ControllerSelect.h"    16 #include "games/controllers/types/ControllerTree.h"    56   bool AddItems(
const CPortNode& port, 
unsigned int& itemId, 
const std::string& itemLabel);
    58   void OnItemFocus(
unsigned int itemIndex);
    59   void OnItemSelect(
unsigned int itemIndex);
    64   static std::string GetLabel(
const CPortNode& port);
    71   std::string m_focusedPort; 
    72   int m_currentItem{-1}; 
    73   std::unique_ptr<CGUIViewControl> m_viewControl;
    74   std::unique_ptr<CFileItemList> m_vecItems;
    78   std::map<unsigned int, std::string> m_itemToAddress; 
    79   std::map<std::string, unsigned int> m_addressToItem; 
 void Refresh() override
Refresh the contents of the list. 
Definition: GUIPortList.cpp:100
Definition: GUIViewControl.h:19
bool HasControl(int controlId) override
Query if a control with the given ID belongs to this list. 
Definition: GUIPortList.cpp:90
Definition: GUIPortList.h:33
void SetFocused() override
The port list has been focused in the GUI. 
Definition: GUIPortList.cpp:138
Represents a list of files. 
Definition: FileItem.h:702
Collection of nodes that can be connected to this port. 
Definition: PortNode.h:28
void Deinitialize() override
Deinitialize resources. 
Definition: GUIPortList.cpp:79
void OnWindowUnload() override
Callback when the GUI window is unloaded. 
Definition: GUIPortList.cpp:56
Definition: AudioDecoder.h:18
std::shared_ptr< CController > ControllerPtr
Smart pointer to a game controller (CController) 
Definition: ControllerTypes.h:25
std::shared_ptr< CGameClient > GameClientPtr
Smart pointer to a game client (CGameClient) 
Definition: GameTypes.h:29
Definition: AddonEvents.h:18
Definition: ControllerSelect.h:24
A list populated by controller ports for the port setup window. 
Definition: IPortList.h:32
void OnWindowLoaded() override
Callback when the GUI window is loaded. 
Definition: GUIPortList.cpp:49
void FrameMove() override
Callback when a frame is rendered by the GUI. 
Definition: GUIPortList.cpp:127
bool OnSelect() override
The port list has been selected. 
Definition: GUIPortList.cpp:143
int GetCurrentControl() override
Query the ID of the current control in this list. 
Definition: GUIPortList.cpp:95
Definition: GUIWindow.h:58
bool Initialize(GameClientPtr gameClient) override
Initialize resources. 
Definition: GUIPortList.cpp:61
void ResetPorts() override
Reset the ports to their game add-on's default configuration. 
Definition: GUIPortList.cpp:155