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.
46 lines
1.3 KiB
46 lines
1.3 KiB
|
8 years ago
|
#pragma once
|
||
|
6 years ago
|
#include "source_base.hpp"
|
||
|
10 years ago
|
#include <atomic>
|
||
|
8 years ago
|
#include <boost/filesystem.hpp>
|
||
|
8 years ago
|
#include <gtkmm.h>
|
||
|
11 years ago
|
|
||
|
10 years ago
|
class Window : public Gtk::ApplicationWindow {
|
||
|
11 years ago
|
Window();
|
||
|
8 years ago
|
|
||
|
10 years ago
|
public:
|
||
|
|
static Window &get() {
|
||
|
|
static Window singleton;
|
||
|
|
return singleton;
|
||
|
|
}
|
||
|
8 years ago
|
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);
|
||
|
10 years ago
|
|
||
|
10 years ago
|
protected:
|
||
|
10 years ago
|
bool on_key_press_event(GdkEventKey *event) override;
|
||
|
|
bool on_delete_event(GdkEventAny *event) override;
|
||
|
10 years ago
|
|
||
|
11 years ago
|
private:
|
||
|
10 years ago
|
Gtk::AboutDialog about;
|
||
|
8 years ago
|
|
||
|
10 years ago
|
void configure();
|
||
|
10 years ago
|
void set_menu_actions();
|
||
|
11 years ago
|
void search_and_replace_entry();
|
||
|
6 years ago
|
void update_search_and_replace_entry();
|
||
|
10 years ago
|
void set_tab_entry();
|
||
|
10 years ago
|
void goto_line_entry();
|
||
|
11 years ago
|
void rename_token_entry();
|
||
|
11 years ago
|
std::string last_search;
|
||
|
|
std::string last_replace;
|
||
|
6 years ago
|
std::string last_find_pattern;
|
||
|
10 years ago
|
std::string last_run_command;
|
||
|
10 years ago
|
std::string last_run_debug_command;
|
||
|
8 years ago
|
bool case_sensitive_search = true;
|
||
|
|
bool regex_search = false;
|
||
|
|
bool search_entry_shown = false;
|
||
|
6 years ago
|
/// Last source view focused
|
||
|
|
Source::SearchView *focused_view = nullptr;
|
||
|
6 years ago
|
bool find_pattern_case_sensitive = true;
|
||
|
|
bool find_pattern_extended_regex = false;
|
||
|
11 years ago
|
};
|