Déplacement des widgets dans le dossier pricipal
This commit is contained in:
parent
a02b1db1aa
commit
f07e6dcf24
|
@ -3,7 +3,7 @@ project(ptf)
|
||||||
|
|
||||||
# Inclusion des fichiers d'en-tête et de source
|
# Inclusion des fichiers d'en-tête et de source
|
||||||
include_directories(include)
|
include_directories(include)
|
||||||
file(GLOB SOURCES "src/*.cpp" "src/*.c" "src/util/*.cpp")
|
file(GLOB SOURCES "src/*.cpp")
|
||||||
|
|
||||||
# Affichage de tous les avertisements
|
# Affichage de tous les avertisements
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
|
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include "level.hpp"
|
#include "level.hpp"
|
||||||
#include "util/widget_timer.hpp"
|
#include "widget_timer.hpp"
|
||||||
#include "util/widget_selector.hpp"
|
#include "widget_selector.hpp"
|
||||||
|
|
||||||
enum class DragMode {NONE, PLACE, SELECT_RECT, SELECT_BULK, CONTROL_POINT, REMOVE};
|
enum class DragMode {NONE, PLACE, SELECT_RECT, SELECT_BULK, CONTROL_POINT, REMOVE};
|
||||||
enum class SelectionMode {REPLACE, FLIP, ADD};
|
enum class SelectionMode {REPLACE, FLIP, ADD};
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
#include <SFML/Graphics.hpp>
|
#include <SFML/Graphics.hpp>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include "util/widget_button.hpp"
|
#include "widget_button.hpp"
|
||||||
#include "manager.hpp"
|
#include "manager.hpp"
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,4 +1,4 @@
|
||||||
#include "util/widget_button.hpp"
|
#include "widget_button.hpp"
|
||||||
|
|
||||||
const unsigned int WidgetButton::ARROW_UP = 0;
|
const unsigned int WidgetButton::ARROW_UP = 0;
|
||||||
const unsigned int WidgetButton::ARROW_DOWN = 1;
|
const unsigned int WidgetButton::ARROW_DOWN = 1;
|
|
@ -1,4 +1,4 @@
|
||||||
#include "util/widget_selector.hpp"
|
#include "widget_selector.hpp"
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
const int PADDING = 8;
|
const int PADDING = 8;
|
|
@ -1,5 +1,5 @@
|
||||||
|
#include "widget_timer.hpp"
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include "util/widget_timer.hpp"
|
|
||||||
|
|
||||||
WidgetTimer::WidgetTimer(Manager& manager, bool can_change, std::function<void(int)> time_left_cb) :
|
WidgetTimer::WidgetTimer(Manager& manager, bool can_change, std::function<void(int)> time_left_cb) :
|
||||||
manager(manager), can_change(can_change), time_left_cb(time_left_cb),
|
manager(manager), can_change(can_change), time_left_cb(time_left_cb),
|
Loading…
Reference in New Issue