mirror of https://gitlab.com/cppit/jucipp
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.
42 lines
1.2 KiB
42 lines
1.2 KiB
#pragma once |
|
#include <atomic> |
|
#include <boost/filesystem.hpp> |
|
#include <gtkmm.h> |
|
|
|
class Window : public Gtk::ApplicationWindow { |
|
Window(); |
|
|
|
public: |
|
static Window &get() { |
|
static Window singleton; |
|
return singleton; |
|
} |
|
void add_widgets(); |
|
void save_session(); |
|
void load_session(std::vector<boost::filesystem::path> &directories, std::vector<std::pair<boost::filesystem::path, size_t>> &files, std::vector<std::pair<int, int>> &file_offsets, std::string ¤t_file, bool read_directories_and_files); |
|
|
|
protected: |
|
bool on_key_press_event(GdkEventKey *event) override; |
|
bool on_delete_event(GdkEventAny *event) override; |
|
|
|
private: |
|
Gtk::AboutDialog about; |
|
|
|
Glib::RefPtr<Gtk::CssProvider> css_provider_theme; |
|
Glib::RefPtr<Gtk::CssProvider> css_provider_theme_font; |
|
Glib::RefPtr<Gtk::CssProvider> css_provider_tooltips; |
|
|
|
void configure(); |
|
void set_menu_actions(); |
|
void search_and_replace_entry(); |
|
void set_tab_entry(); |
|
void goto_line_entry(); |
|
void rename_token_entry(); |
|
std::string last_search; |
|
std::string last_replace; |
|
std::string last_run_command; |
|
std::string last_run_debug_command; |
|
bool case_sensitive_search = true; |
|
bool regex_search = false; |
|
bool search_entry_shown = false; |
|
};
|
|
|