Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
74 lines (66 sloc) 2.25 KB
#pragma once
* Copyright (C) 2005-2008 Team XBMC
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
* This Program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with XBMC; see the file COPYING. If not, write to
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#include "GUIDialogBoxBase.h"
#include "guilib/GUIListItem.h"
#include "GUIViewControl.h"
class CFileItem;
class CFileItemList;
class CGUIDialogSelect :
public CGUIDialogBoxBase
virtual ~CGUIDialogSelect(void);
virtual bool OnMessage(CGUIMessage& message);
virtual bool OnBack(int actionID);
void Reset();
void Add(const CStdString& strLabel);
void Add(const CFileItem* pItem);
void Add(const CFileItemList& items);
void SetItems(CFileItemList* items);
int GetSelectedLabel() const;
const CStdString& GetSelectedLabelText();
const CFileItemPtr GetSelectedItem();
const CFileItemList& GetSelectedItems() const;
void EnableButton(bool enable, int string);
bool IsButtonPressed();
void Sort(bool bSortOrder = true);
void SetSelected(int iSelected);
void SetSelected(const CStdString &strSelectedLabel);
void SetSelected(std::vector<int> selectedIndexes);
void SetSelected(const std::vector<CStdString> &selectedLabels);
void SetUseDetails(bool useDetails);
void SetMultiSelection(bool multiSelection);
virtual CGUIControl *GetFirstFocusableControl(int id);
virtual void OnWindowLoaded();
virtual void OnInitWindow();
bool m_bButtonEnabled;
bool m_bButtonPressed;
int m_iSelected;
bool m_useDetails;
bool m_multiSelection;
CFileItemList* m_selectedItems;
CFileItemList* m_vecListInternal;
CFileItemList* m_vecList;
CGUIViewControl m_viewControl;
Jump to Line
Something went wrong with that request. Please try again.