-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheditor.h
More file actions
46 lines (32 loc) · 1.14 KB
/
Copy patheditor.h
File metadata and controls
46 lines (32 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#pragma once
#include "helper_types.h"
#include "widget.h"
#include <GLFW/glfw3.h>
#include "tabs.h"
class Editor : public Widget {
public:
Editor(Widget* parent);
Tabs* tab_bar;
int tabid;
std::unordered_map<int,Widget*> editors;
void fileOpenRequested(FileInfo* f, int lns = -1, int chrs = -1, int ln = -1, int chr = -1);
void moveto(int lns, int chrs, int ln, int chr);
bool on_key_event(int key, int scancode, int action, int mods) override;
// bool on_mouse_button_event(int button, int action, int mods);
// bool on_mouse_move_event();
// bool on_scroll_event(double xchange, double ychange);
void position(int x, int y, int w, int h) override;
void createNew(FileInfo* fn);
void closeFile(int file_id);
void executeAction(WidgetActionType typ) override;
bool is_image(std::string path);
void tabinfoclicked(TabInfo info);
void save() override;
Widget* fileOpen(std::string fname) override;
void render() override;
icu::UnicodeString getPaletteName();
Widget* getFirstEditor() override;
std::vector<std::vector<std::string>> getOpenFiles(bool includeText) override;
int openUnnamedFile(int count) override;
private:
};