Cut down on header files
This commit is contained in:
@@ -263,10 +263,12 @@ void DrawWindow(Window *window, Event &event) {
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef PLUGIN_SEARCH_WINDOW
|
||||
if (SearchWindowID == window->id) {
|
||||
SetScissor(window->line_numbers_rect);
|
||||
DrawString(window->font, u"Find: ", ToVec2(window->line_numbers_rect.min), color_text_line_numbers);
|
||||
}
|
||||
#endif
|
||||
|
||||
// Draw scrollbar
|
||||
if (DrawScrollbar && window->draw_scrollbar) {
|
||||
|
||||
@@ -33,32 +33,12 @@ BufferID NullBufferID;
|
||||
ViewID NullViewID;
|
||||
WindowID NullWindowID;
|
||||
|
||||
#ifdef PLUGIN_DEBUG_WINDOW
|
||||
WindowID DebugWindowID;
|
||||
ViewID DebugViewID;
|
||||
BufferID DebugBufferID;
|
||||
#endif
|
||||
|
||||
#ifdef PLUGIN_COMMAND_WINDOW
|
||||
WindowID CommandWindowID;
|
||||
#endif
|
||||
|
||||
#ifdef PLUGIN_SEARCH_WINDOW
|
||||
WindowID SearchWindowID;
|
||||
ViewID SearchViewID;
|
||||
BufferID SearchBufferID;
|
||||
#endif
|
||||
|
||||
#ifdef PLUGIN_STATUS_WINDOW
|
||||
WindowID StatusWindowID;
|
||||
#endif
|
||||
|
||||
#ifdef PLUGIN_BUILD_WINDOW
|
||||
WindowID BuildWindowID;
|
||||
ViewID BuildViewID;
|
||||
BufferID BuildBufferID;
|
||||
#endif
|
||||
|
||||
BufferID GlobalConfigBufferID;
|
||||
|
||||
WindowID NextActiveWindowID;
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
#define PLUGIN_BUILD_WINDOW
|
||||
WindowID BuildWindowID;
|
||||
ViewID BuildViewID;
|
||||
BufferID BuildBufferID;
|
||||
|
||||
void InitBuildWindow() {
|
||||
Window *window = CreateWind();
|
||||
BuildWindowID = window->id;
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
#define PLUGIN_BUILD_WINDOW
|
||||
void InitBuildWindow();
|
||||
void LayoutBuildWindow(Rect2I *rect, int16_t wx, int16_t wy);
|
||||
@@ -1,3 +1,6 @@
|
||||
#define PLUGIN_COMMAND_WINDOW
|
||||
WindowID CommandWindowID;
|
||||
|
||||
void CMD_ShowCommands() {
|
||||
// @todo: maybe redo this, similar behavior but use View stored information
|
||||
// if (ActiveWindowID == CommandWindowID && LastExecutedManualCommand == CMD_ShowCommands) {
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
#define PLUGIN_COMMAND_WINDOW
|
||||
void InitCommandWindow();
|
||||
void LayoutCommandWindow(Rect2I *rect, int16_t wx, int16_t wy);
|
||||
@@ -1,3 +1,8 @@
|
||||
#define PLUGIN_DEBUG_WINDOW
|
||||
WindowID DebugWindowID;
|
||||
ViewID DebugViewID;
|
||||
BufferID DebugBufferID;
|
||||
|
||||
void InitDebugWindow() {
|
||||
Window *window = CreateWind();
|
||||
DebugWindowID = window->id;
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
#define PLUGIN_DEBUG_WINDOW
|
||||
void InitDebugWindow();
|
||||
void LayoutDebugWindow(Rect2I *rect, int16_t wx, int16_t wy);
|
||||
void UpdateDebugWindow();
|
||||
@@ -1,3 +1,6 @@
|
||||
#define PLUGIN_STATUS_WINDOW
|
||||
WindowID StatusWindowID;
|
||||
|
||||
void InitStatusWindow() {
|
||||
Window *window = CreateWind();
|
||||
StatusWindowID = window->id;
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
#define PLUGIN_STATUS_WINDOW
|
||||
void InitStatusWindow();
|
||||
void LayoutStatusWindow(Rect2I *rect, int16_t wx, int16_t wy);
|
||||
void UpdateStatusWindow();
|
||||
@@ -16,11 +16,7 @@
|
||||
#include "render/opengl.cpp"
|
||||
#include "plugin_directory_navigation.h"
|
||||
#include "text_editor.h"
|
||||
#include "plugin_command_window.h"
|
||||
#include "plugin_search_window.h"
|
||||
#include "plugin_debug_window.h"
|
||||
#include "plugin_status_window.h"
|
||||
#include "plugin_build_window.h"
|
||||
#include "plugin_project_management.h"
|
||||
#if OS_WINDOWS
|
||||
#include "plugin_remedybg.h"
|
||||
|
||||
Reference in New Issue
Block a user