-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move current editor implemtation with DearImGui inside DearImGui folder
- Loading branch information
1 parent
64a705a
commit 9560d1c
Showing
5 changed files
with
73 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
//============================================================================= | ||
// TimedPetriNetEditor: A timed Petri net editor. | ||
// Copyright 2021 -- 2023 Quentin Quadrat <lecrapouille@gmail.com> | ||
// | ||
// This file is part of TimedPetriNetEditor. | ||
// | ||
// TimedPetriNetEditor 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 3 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 GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | ||
//============================================================================= | ||
|
||
#ifndef PETRI_NET_EDITOR_HPP | ||
# define PETRI_NET_EDITOR_HPP | ||
|
||
# include <string> | ||
|
||
namespace tpne { | ||
|
||
// **************************************************************************** | ||
//! \brief Graphical User interface for manipulating and simulating Petri net. | ||
// **************************************************************************** | ||
class PetriNetEditor | ||
{ | ||
public: | ||
|
||
//------------------------------------------------------------------------- | ||
//! \brief Starts the Petri net editor up, load the Petri file if given not | ||
//! empty. Then call the infinite loop of the GUI. | ||
//! \param[in] petri_file the path of the Petri net fil to load. Pass dummy | ||
//! string if you do not want to load a Petri net file. | ||
//------------------------------------------------------------------------- | ||
virtual void run(std::string const& petri_file) = 0; | ||
}; | ||
|
||
} // namespace tpne | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters