ui: basic CodeView with syntax highlighting
Added CodeView interface and QtCodeView implementation for showing syntax highlighted code snippets. This change avoids using the GuiElement hierarchy by using directly using QtClasses and creating QtCodeView in the QtElementFactory.
This commit is contained in:
@@ -10,12 +10,14 @@ class Component
|
||||
{
|
||||
public:
|
||||
Component(std::shared_ptr<View> view, std::shared_ptr<Controller> controller);
|
||||
|
||||
~Component();
|
||||
|
||||
Controller* getController() const;
|
||||
View* getView() const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<Controller> m_controller;
|
||||
std::shared_ptr<View> m_view;
|
||||
const std::shared_ptr<Controller> m_controller;
|
||||
const std::shared_ptr<View> m_view;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user