33 lines
637 B
C++
33 lines
637 B
C++
#include <nana/gui.hpp>
|
|
#include <nana/gui/widgets/menubar.hpp>
|
|
#include <nana/gui/widgets/textbox.hpp>
|
|
#include <nana/gui/place.hpp>
|
|
#include <nana/gui/msgbox.hpp>
|
|
#include <nana/gui/filebox.hpp>
|
|
#include <stdint.h>
|
|
#include <thread>
|
|
#include <iostream>
|
|
#include <filesystem>
|
|
|
|
using namespace nana;
|
|
|
|
class CodeEditor : public form
|
|
{
|
|
place place_ {*this};
|
|
menubar menubar_{*this};
|
|
textbox textbox_{*this};
|
|
public:
|
|
CodeEditor();
|
|
~CodeEditor();
|
|
textbox& get_tb(){return textbox_;}
|
|
private:
|
|
std::filesystem::path _m_pick_file(bool is_open) const;
|
|
bool _m_ask_save();
|
|
void _m_make_menus();
|
|
};
|
|
|
|
|
|
|
|
|
|
|