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.

33 lines
937 B

#ifndef JUCI_NOTEBOOK_H_
#define JUCI_NOTEBOOK_H_
#include <iostream>
#include "gtkmm.h"
#include "source.h"
11 years ago
#include <boost/algorithm/string/case_conv.hpp>
#include <type_traits>
#include <map>
11 years ago
#include <sigc++/sigc++.h>
class Notebook : public Gtk::Notebook {
public:
Notebook();
Source::View* get_view(int page);
int size();
Source::View* get_current_view();
bool close_current_page();
void open(std::string filename);
bool save(int page);
bool save_current();
std::string project_path;
private:
std::string find_project_path(const std::string &path);
bool make_compile_commands(const std::string &path);
bool save_modified_dialog();
std::vector<Source::View*> source_views; //Is NOT freed in destructor, this is intended for quick program exit.
std::vector<std::unique_ptr<Gtk::ScrolledWindow> > scrolled_windows;
std::vector<std::unique_ptr<Gtk::HBox> > hboxes;
};
#endif // JUCI_NOTEBOOK_H_