LCOV - code coverage report
Current view: top level - source/gui - GUIObjectTypes.cpp (source / functions) Hit Total Coverage
Test: 0 A.D. test coverage report Lines: 23 23 100.0 %
Date: 2023-01-19 00:18:29 Functions: 1 1 100.0 %

          Line data    Source code
       1             : /* Copyright (C) 2020 Wildfire Games.
       2             :  * This file is part of 0 A.D.
       3             :  *
       4             :  * 0 A.D. is free software: you can redistribute it and/or modify
       5             :  * it under the terms of the GNU General Public License as published by
       6             :  * the Free Software Foundation, either version 2 of the License, or
       7             :  * (at your option) any later version.
       8             :  *
       9             :  * 0 A.D. is distributed in the hope that it will be useful,
      10             :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      11             :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      12             :  * GNU General Public License for more details.
      13             :  *
      14             :  * You should have received a copy of the GNU General Public License
      15             :  * along with 0 A.D.  If not, see <http://www.gnu.org/licenses/>.
      16             :  */
      17             : 
      18             : #include "precompiled.h"
      19             : 
      20             : #include "gui/ObjectTypes/CButton.h"
      21             : #include "gui/ObjectTypes/CChart.h"
      22             : #include "gui/ObjectTypes/CCheckBox.h"
      23             : #include "gui/ObjectTypes/CDropDown.h"
      24             : #include "gui/ObjectTypes/CGUIDummyObject.h"
      25             : #include "gui/ObjectTypes/CHotkeyPicker.h"
      26             : #include "gui/ObjectTypes/CImage.h"
      27             : #include "gui/ObjectTypes/CInput.h"
      28             : #include "gui/ObjectTypes/CList.h"
      29             : #include "gui/ObjectTypes/CMiniMap.h"
      30             : #include "gui/ObjectTypes/COList.h"
      31             : #include "gui/ObjectTypes/CProgressBar.h"
      32             : #include "gui/ObjectTypes/CRadioButton.h"
      33             : #include "gui/ObjectTypes/CSlider.h"
      34             : #include "gui/ObjectTypes/CText.h"
      35             : #include "gui/ObjectTypes/CTooltip.h"
      36             : #include "gui/Scripting/JSInterface_GUIProxy.h"
      37             : 
      38           6 : void CGUI::AddObjectTypes()
      39             : {
      40           6 :     m_ProxyData.insert(JSI_GUIProxy<IGUIObject>::CreateData(*m_ScriptInterface));
      41           6 :     m_ProxyData.insert(JSI_GUIProxy<CText>::CreateData(*m_ScriptInterface));
      42           6 :     m_ProxyData.insert(JSI_GUIProxy<CList>::CreateData(*m_ScriptInterface));
      43           6 :     m_ProxyData.insert(JSI_GUIProxy<CMiniMap>::CreateData(*m_ScriptInterface));
      44           6 :     m_ProxyData.insert(JSI_GUIProxy<CButton>::CreateData(*m_ScriptInterface));
      45             : 
      46           6 :     AddObjectType("button", &CButton::ConstructObject);
      47           6 :     AddObjectType("chart", &CChart::ConstructObject);
      48           6 :     AddObjectType("checkbox", &CCheckBox::ConstructObject);
      49           6 :     AddObjectType("dropdown", &CDropDown::ConstructObject);
      50           6 :     AddObjectType("empty", &CGUIDummyObject::ConstructObject);
      51           6 :     AddObjectType("hotkeypicker", &CHotkeyPicker::ConstructObject);
      52           6 :     AddObjectType("image", &CImage::ConstructObject);
      53           6 :     AddObjectType("input", &CInput::ConstructObject);
      54           6 :     AddObjectType("list", &CList::ConstructObject);
      55           6 :     AddObjectType("minimap", &CMiniMap::ConstructObject);
      56           6 :     AddObjectType("olist", &COList::ConstructObject);
      57           6 :     AddObjectType("progressbar", &CProgressBar::ConstructObject);
      58           6 :     AddObjectType("radiobutton", &CRadioButton::ConstructObject);
      59           6 :     AddObjectType("slider", &CSlider::ConstructObject);
      60           6 :     AddObjectType("text", &CText::ConstructObject);
      61           6 :     AddObjectType("tooltip", &CTooltip::ConstructObject);
      62           6 : }

Generated by: LCOV version 1.13