1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 21:25:07 +00:00
serenity/DevTools/HackStudio/EditorWrapper.h
Andreas Kling e2c74762ff HackStudio: Draw a brownish frame around the current editor widget
Also make the editor filename label bold only for the current editor.
2019-10-27 20:44:37 +01:00

26 lines
568 B
C++

#pragma once
#include <LibGUI/GWidget.h>
class GLabel;
class Editor;
class EditorWrapper : public GWidget {
C_OBJECT(EditorWrapper)
public:
virtual ~EditorWrapper() override;
Editor& editor() { return *m_editor; }
const Editor& editor() const { return *m_editor; }
GLabel& filename_label() { return *m_filename_label; }
void set_editor_has_focus(Badge<Editor>, bool);
private:
explicit EditorWrapper(GWidget* parent = nullptr);
RefPtr<GLabel> m_filename_label;
RefPtr<GLabel> m_cursor_label;
RefPtr<Editor> m_editor;
};