Skip to content

Commit

Permalink
[SofaImGui] Refactor Windows menu bar methods (#109)
Browse files Browse the repository at this point in the history
* [SofaImGui] Refactor methods

* [SofaImGui] Refactor methods

* [SofaImGui] Refactor method Display Flags

* [SofaImGui] Refactor method Plugins

* [SofaImGui] Refactor method Components

* [SofaImGui] Refactor method Settings

* [SofaImGui] Refactor method ViewPort

* [SofaImGui] Clean Unused Includes

* [SofaImGui] Removing useless Library Calls + Adding Doxygen comment

* [SofaImGui] Adding Doxygen comments

* [SofaImGui] Adding Doxygen comments

* [SofaImGui] Update Doxygen comments Positions

* [SofaImGui] Remove Useless blank lines
  • Loading branch information
lamriaimen authored May 17, 2024
1 parent 1a6e05c commit 5052bf4
Show file tree
Hide file tree
Showing 23 changed files with 2,510 additions and 1,588 deletions.
27 changes: 27 additions & 0 deletions SofaImGui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,19 @@ set(HEADER_FILES
${SOFAIMGUI_SOURCE_DIR}/ImGuiGUI.h
${SOFAIMGUI_SOURCE_DIR}/ImGuiGUIEngine.h
${SOFAIMGUI_SOURCE_DIR}/ObjectColor.h
${SOFAIMGUI_SOURCE_DIR}/windows/Performances.h
${SOFAIMGUI_SOURCE_DIR}/windows/Log.h
${SOFAIMGUI_SOURCE_DIR}/windows/Profiler.h
${SOFAIMGUI_SOURCE_DIR}/windows/SceneGraph.h
${SOFAIMGUI_SOURCE_DIR}/windows/DisplayFlags.h
${SOFAIMGUI_SOURCE_DIR}/windows/Plugins.h
${SOFAIMGUI_SOURCE_DIR}/windows/Components.h
${SOFAIMGUI_SOURCE_DIR}/windows/Settings.h
${SOFAIMGUI_SOURCE_DIR}/windows/ViewPort.h
${SOFAIMGUI_SOURCE_DIR}/AppIniFile.h



)

set(SOURCE_FILES
Expand All @@ -92,6 +105,20 @@ set(SOURCE_FILES
${SOFAIMGUI_SOURCE_DIR}/ImGuiGUIEngine.cpp
${SOFAIMGUI_SOURCE_DIR}/ObjectColor.cpp
${SOFAIMGUI_SOURCE_DIR}/initSofaImGui.cpp
${SOFAIMGUI_SOURCE_DIR}/windows/Performances.cpp
${SOFAIMGUI_SOURCE_DIR}/windows/Log.cpp
${SOFAIMGUI_SOURCE_DIR}/windows/Profiler.cpp
${SOFAIMGUI_SOURCE_DIR}/windows/SceneGraph.cpp
${SOFAIMGUI_SOURCE_DIR}/windows/DisplayFlags.cpp
${SOFAIMGUI_SOURCE_DIR}/windows/Plugins.cpp
${SOFAIMGUI_SOURCE_DIR}/windows/Components.cpp
${SOFAIMGUI_SOURCE_DIR}/windows/Settings.cpp
${SOFAIMGUI_SOURCE_DIR}/windows/ViewPort.cpp
${SOFAIMGUI_SOURCE_DIR}/AppIniFile.cpp




)


Expand Down
38 changes: 38 additions & 0 deletions SofaImGui/src/SofaImGui/AppIniFile.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/******************************************************************************
* SOFA, Simulation Open-Framework Architecture *
* (c) 2006 INRIA, USTL, UJF, CNRS, MGH *
* *
* 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 of the License, 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 MERCHANTABILITY or *
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for *
* more details. *
* *
* You should have received a copy of the GNU General Public License along *
* with this program. If not, see <http://www.gnu.org/licenses/>. *
*******************************************************************************
* Authors: The SOFA Team and external contributors (see Authors.txt) *
* *
* Contact information: [email protected] *
******************************************************************************/
#include <SofaImGui/ImGuiGUIEngine.h>
#include <sofa/helper/Utils.h>
#include "windows/Performances.h"
#include "AppIniFile.h"

using namespace sofa;

namespace sofaimgui
{
const std::string& AppIniFile::getAppIniFile()
{
static const std::string appIniFile(sofa::helper::Utils::getExecutableDirectory() + "/settings.ini");
return appIniFile;
}


}
37 changes: 37 additions & 0 deletions SofaImGui/src/SofaImGui/AppIniFile.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/******************************************************************************
* SOFA, Simulation Open-Framework Architecture *
* (c) 2006 INRIA, USTL, UJF, CNRS, MGH *
* *
* 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 of the License, 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 MERCHANTABILITY or *
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for *
* more details. *
* *
* You should have received a copy of the GNU General Public License along *
* with this program. If not, see <http://www.gnu.org/licenses/>. *
*******************************************************************************
* Authors: The SOFA Team and external contributors (see Authors.txt) *
* *
* Contact information: [email protected] *
******************************************************************************/
#pragma once

#include <sofa/simulation/Node.h>

namespace sofaimgui
{
class ImGuiGUIEngine;

class AppIniFile
{
public:
static const std::string& getAppIniFile();

};

} // namespace sofaimgui
Loading

0 comments on commit 5052bf4

Please sign in to comment.