You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
623 B
32 lines
623 B
|
11 years ago
|
#ifndef JUCI_SOURCE_H_
|
||
|
|
#define JUCI_SOURCE_H_
|
||
|
|
|
||
|
|
#include <iostream>
|
||
|
|
#include "gtkmm.h"
|
||
|
|
|
||
|
|
namespace Source {
|
||
|
|
class View : public Gtk::TextView {
|
||
|
|
public:
|
||
|
|
View();
|
||
|
|
void UpdateLine(Glib::RefPtr<Gtk::TextBuffer::Mark> mark);
|
||
|
|
private:
|
||
|
|
void UpdateSyntaxHighlighting(int line_number);
|
||
|
|
};
|
||
|
|
|
||
|
|
class Model{
|
||
|
|
public:
|
||
|
|
Model();
|
||
|
|
};
|
||
|
|
|
||
|
|
class Controller {
|
||
|
|
public:
|
||
|
|
Controller();
|
||
|
|
std::shared_ptr<Source::View> sourceview();
|
||
|
|
private:
|
||
|
|
void OnLineEdit(Glib::RefPtr<Gtk::TextBuffer::Mark> mark);
|
||
|
|
protected:
|
||
|
|
View sourceview_;
|
||
|
|
}; // class Controller
|
||
|
|
} // namespace Source
|
||
|
|
#endif // JUCI_SOURCE_H_
|