Browse Source

move headers to include directory

merge-requests/385/head
Jørgen Lien Sellæg 8 years ago
parent
commit
7a4a10654c
  1. 1
      CMakeLists.txt
  2. 0
      include/autocomplete.h
  3. 0
      include/cmake.h
  4. 0
      include/compile_commands.h
  5. 0
      include/config.h
  6. 0
      include/ctags.h
  7. 0
      include/debug_lldb.h
  8. 0
      include/dialogs.h
  9. 0
      include/directories.h
  10. 0
      include/dispatcher.h
  11. 0
      include/documentation_cppreference.h
  12. 0
      include/entrybox.h
  13. 0
      include/files.h
  14. 0
      include/filesystem.h
  15. 0
      include/git.h
  16. 0
      include/info.h
  17. 0
      include/juci.h
  18. 0
      include/menu.h
  19. 0
      include/meson.h
  20. 0
      include/notebook.h
  21. 0
      include/project.h
  22. 0
      include/project_build.h
  23. 0
      include/selection_dialog.h
  24. 0
      include/source.h
  25. 0
      include/source_base.h
  26. 0
      include/source_clang.h
  27. 0
      include/source_diff.h
  28. 0
      include/source_language_protocol.h
  29. 0
      include/source_spellcheck.h
  30. 0
      include/terminal.h
  31. 0
      include/tooltips.h
  32. 0
      include/usages_clang.h
  33. 0
      include/window.h
  34. 4
      src/autocomplete.cc
  35. 12
      src/cmake.cc
  36. 4
      src/compile_commands.cc
  37. 8
      src/config.cc
  38. 10
      src/ctags.cc
  39. 10
      src/debug_lldb.cc
  40. 2
      src/dialogs.cc
  41. 2
      src/dialogs_unix.cc
  42. 6
      src/dialogs_win.cc
  43. 12
      src/directories.cc
  44. 2
      src/dispatcher.cc
  45. 2
      src/documentation_cppreference.cc
  46. 2
      src/entrybox.cc
  47. 2
      src/filesystem.cc
  48. 2
      src/git.cc
  49. 2
      src/info.cc
  50. 14
      src/juci.cc
  51. 4
      src/menu.cc
  52. 12
      src/meson.cc
  53. 18
      src/notebook.cc
  54. 28
      src/project.cc
  55. 6
      src/project_build.cc
  56. 2
      src/selection_dialog.cc
  57. 18
      src/source.cc
  58. 10
      src/source_base.cc
  59. 26
      src/source_clang.cc
  60. 10
      src/source_diff.cc
  61. 16
      src/source_language_protocol.cc
  62. 8
      src/source_spellcheck.cc
  63. 12
      src/terminal.cc
  64. 4
      src/tooltips.cc
  65. 10
      src/usages_clang.cc
  66. 24
      src/window.cc
  67. 2
      tests/CMakeLists.txt

1
CMakeLists.txt

@ -72,6 +72,7 @@ endif()
# For both src and tests targets
include_directories(
${PROJECT_SOURCE_DIR}/include
${Boost_INCLUDE_DIRS}
${GTKMM_INCLUDE_DIRS}
${GTKSVMM_INCLUDE_DIRS}

0
src/autocomplete.h → include/autocomplete.h

0
src/cmake.h → include/cmake.h

0
src/compile_commands.h → include/compile_commands.h

0
src/config.h → include/config.h

0
src/ctags.h → include/ctags.h

0
src/debug_lldb.h → include/debug_lldb.h

0
src/dialogs.h → include/dialogs.h

0
src/directories.h → include/directories.h

0
src/dispatcher.h → include/dispatcher.h

0
src/documentation_cppreference.h → include/documentation_cppreference.h

0
src/entrybox.h → include/entrybox.h

0
src/files.h → include/files.h

0
src/filesystem.h → include/filesystem.h

0
src/git.h → include/git.h

0
src/info.h → include/info.h

0
src/juci.h → include/juci.h

0
src/menu.h → include/menu.h

0
src/meson.h → include/meson.h

0
src/notebook.h → include/notebook.h

0
src/project.h → include/project.h

0
src/project_build.h → include/project_build.h

0
src/selection_dialog.h → include/selection_dialog.h

0
src/source.h → include/source.h

0
src/source_base.h → include/source_base.h

0
src/source_clang.h → include/source_clang.h

0
src/source_diff.h → include/source_diff.h

0
src/source_language_protocol.h → include/source_language_protocol.h

0
src/source_spellcheck.h → include/source_spellcheck.h

0
src/terminal.h → include/terminal.h

0
src/tooltips.h → include/tooltips.h

0
src/usages_clang.h → include/usages_clang.h

0
src/window.h → include/window.h

4
src/autocomplete.cc

@ -1,5 +1,5 @@
#include "autocomplete.h"
#include "selection_dialog.h"
#include <autocomplete.h>
#include <selection_dialog.h>
Autocomplete::Autocomplete(Gtk::TextView *view, bool &interactive_completion, guint &last_keyval, bool strip_word)
: view(view), interactive_completion(interactive_completion), strip_word(strip_word), state(State::IDLE) {

12
src/cmake.cc

@ -1,10 +1,10 @@
#include "cmake.h"
#include "filesystem.h"
#include "dialogs.h"
#include "config.h"
#include "terminal.h"
#include <cmake.h>
#include <filesystem.h>
#include <dialogs.h>
#include <config.h>
#include <terminal.h>
#include <regex>
#include "compile_commands.h"
#include <compile_commands.h>
CMake::CMake(const boost::filesystem::path &path) {
const auto find_cmake_project=[](const boost::filesystem::path &cmake_path) {

4
src/compile_commands.cc

@ -1,5 +1,5 @@
#include "compile_commands.h"
#include "clangmm.h"
#include <compile_commands.h>
#include <clangmm.h>
#include <boost/property_tree/json_parser.hpp>
#include <regex>

8
src/config.cc

@ -1,9 +1,9 @@
#include "config.h"
#include <config.h>
#include <exception>
#include "files.h"
#include <files.h>
#include <iostream>
#include "filesystem.h"
#include "terminal.h"
#include <filesystem.h>
#include <terminal.h>
#include <algorithm>
Config::Config() {

10
src/ctags.cc

@ -1,8 +1,8 @@
#include "ctags.h"
#include "config.h"
#include "terminal.h"
#include "project_build.h"
#include "filesystem.h"
#include <ctags.h>
#include <config.h>
#include <terminal.h>
#include <project_build.h>
#include <filesystem.h>
#include <iostream>
#include <vector>
#include <regex>

10
src/debug_lldb.cc

@ -1,14 +1,14 @@
#include "debug_lldb.h"
#include <debug_lldb.h>
#include <cstdio>
#ifdef __APPLE__
#include <cstdlib>
#endif
#include <boost/filesystem.hpp>
#include <iostream>
#include "terminal.h"
#include "filesystem.h"
#include "process.hpp"
#include "config.h"
#include <terminal.h>
#include <filesystem.h>
#include <process.hpp>
#include <config.h>
extern char **environ;

2
src/dialogs.cc

@ -1,4 +1,4 @@
#include "dialogs.h"
#include <dialogs.h>
#include <cmath>
Dialog::Message::Message(const std::string &text): Gtk::Window(Gtk::WindowType::WINDOW_POPUP) {

2
src/dialogs_unix.cc

@ -1,4 +1,4 @@
#include "dialogs.h"
#include <dialogs.h>
std::string Dialog::open_folder(const boost::filesystem::path &path) {
return gtk_dialog(path, "Open Folder",

6
src/dialogs_win.cc

@ -1,6 +1,6 @@
#include "dialogs.h"
#include "singletons.h"
#include "juci.h"
#include <dialogs.h>
#include <singletons.h>
#include <juci.h>
#undef NTDDI_VERSION
#define NTDDI_VERSION NTDDI_VISTA

12
src/directories.cc

@ -1,10 +1,10 @@
#include "directories.h"
#include <directories.h>
#include <algorithm>
#include "source.h"
#include "terminal.h"
#include "notebook.h"
#include "filesystem.h"
#include "entrybox.h"
#include <source.h>
#include <terminal.h>
#include <notebook.h>
#include <filesystem.h>
#include <entrybox.h>
bool Directories::TreeStore::row_drop_possible_vfunc(const Gtk::TreeModel::Path &path, const Gtk::SelectionData &selection_data) const {
return true;

2
src/dispatcher.cc

@ -1,4 +1,4 @@
#include "dispatcher.h"
#include <dispatcher.h>
#include <vector>
Dispatcher::Dispatcher() {

2
src/documentation_cppreference.cc

@ -1,4 +1,4 @@
#include "documentation_cppreference.h"
#include <documentation_cppreference.h>
#include <unordered_map>
std::string Documentation::CppReference::get_url(const std::string &symbol) noexcept {

2
src/entrybox.cc

@ -1,4 +1,4 @@
#include "entrybox.h"
#include <entrybox.h>
std::unordered_map<std::string, std::vector<std::string> > EntryBox::entry_histories;

2
src/filesystem.cc

@ -3,7 +3,7 @@
#include <sstream>
#include <algorithm>
#include "filesystem.h"
#include <filesystem.h>
//Only use on small files
std::string filesystem::read(const std::string &path) {

2
src/git.cc

@ -1,4 +1,4 @@
#include "git.h"
#include <git.h>
#include <cstring>
bool Git::initialized=false;

2
src/info.cc

@ -1,4 +1,4 @@
#include "info.h"
#include <info.h>
Info::Info() {
set_hexpand(false);

14
src/juci.cc

@ -1,10 +1,10 @@
#include "juci.h"
#include "window.h"
#include "notebook.h"
#include "directories.h"
#include "menu.h"
#include "config.h"
#include "terminal.h"
#include <juci.h>
#include <window.h>
#include <notebook.h>
#include <directories.h>
#include <menu.h>
#include <config.h>
#include <terminal.h>
#ifndef _WIN32
#include <csignal>
#endif

4
src/menu.cc

@ -1,5 +1,5 @@
#include "menu.h"
#include "config.h"
#include <menu.h>
#include <config.h>
#include <string>
#include <iostream>

12
src/meson.cc

@ -1,10 +1,10 @@
#include "meson.h"
#include "filesystem.h"
#include "compile_commands.h"
#include <meson.h>
#include <filesystem.h>
#include <compile_commands.h>
#include <regex>
#include "terminal.h"
#include "dialogs.h"
#include "config.h"
#include <terminal.h>
#include <dialogs.h>
#include <config.h>
Meson::Meson(const boost::filesystem::path &path) {
const auto find_project=[](const boost::filesystem::path &file_path) {

18
src/notebook.cc

@ -1,14 +1,14 @@
#include "notebook.h"
#include "config.h"
#include "directories.h"
#include <notebook.h>
#include <config.h>
#include <directories.h>
#include <fstream>
#include <regex>
#include "project.h"
#include "filesystem.h"
#include "selection_dialog.h"
#include "source_clang.h"
#include "source_language_protocol.h"
#include "gtksourceview-3.0/gtksourceview/gtksourcemap.h"
#include <project.h>
#include <filesystem.h>
#include <selection_dialog.h>
#include <source_clang.h>
#include <source_language_protocol.h>
#include <gtksourceview-3.0/gtksourceview/gtksourcemap.h>
Notebook::TabLabel::TabLabel(const std::function<void()> &on_close) {
set_can_focus(false);

28
src/project.cc

@ -1,20 +1,20 @@
#include "project.h"
#include "config.h"
#include "terminal.h"
#include "filesystem.h"
#include "directories.h"
#include <project.h>
#include <config.h>
#include <terminal.h>
#include <filesystem.h>
#include <directories.h>
#include <fstream>
#include "menu.h"
#include "notebook.h"
#include "selection_dialog.h"
#include <menu.h>
#include <notebook.h>
#include <selection_dialog.h>
#ifdef JUCI_ENABLE_DEBUG
#include "debug_lldb.h"
#include <debug_lldb.h>
#endif
#include "info.h"
#include "source_clang.h"
#include "source_language_protocol.h"
#include "usages_clang.h"
#include "ctags.h"
#include <info.h>
#include <source_clang.h>
#include <source_language_protocol.h>
#include <usages_clang.h>
#include <ctags.h>
#include <future>
boost::filesystem::path Project::debug_last_stop_file_path;

6
src/project_build.cc

@ -1,6 +1,6 @@
#include "project_build.h"
#include "config.h"
#include "filesystem.h"
#include <project_build.h>
#include <config.h>
#include <filesystem.h>
std::unique_ptr<Project::Build> Project::Build::create(const boost::filesystem::path &path) {
auto search_path=boost::filesystem::is_directory(path)?path:path.parent_path();

2
src/selection_dialog.cc

@ -1,4 +1,4 @@
#include "selection_dialog.h"
#include <selection_dialog.h>
#include <algorithm>
SelectionDialogBase::ListViewText::ListViewText(bool use_markup) : Gtk::TreeView(), use_markup(use_markup) {

18
src/source.cc

@ -1,12 +1,12 @@
#include "source.h"
#include "config.h"
#include "filesystem.h"
#include "terminal.h"
#include "info.h"
#include "directories.h"
#include "menu.h"
#include "selection_dialog.h"
#include "git.h"
#include <source.h>
#include <config.h>
#include <filesystem.h>
#include <terminal.h>
#include <info.h>
#include <directories.h>
#include <menu.h>
#include <selection_dialog.h>
#include <git.h>
#include <gtksourceview/gtksource.h>
#include <boost/property_tree/json_parser.hpp>
#include <boost/spirit/home/qi/char.hpp>

10
src/source_base.cc

@ -1,8 +1,8 @@
#include "source_base.h"
#include "info.h"
#include "terminal.h"
#include "git.h"
#include "config.h"
#include <source_base.h>
#include <info.h>
#include <terminal.h>
#include <git.h>
#include <config.h>
#include <fstream>
Source::BaseView::BaseView(const boost::filesystem::path &file_path, const Glib::RefPtr<Gsv::Language> &language): Gsv::View(), file_path(file_path), language(language), status_diagnostics(0, 0, 0) {

26
src/source_clang.cc

@ -1,18 +1,18 @@
#include "source_clang.h"
#include "config.h"
#include "terminal.h"
#include "project_build.h"
#include <source_clang.h>
#include <config.h>
#include <terminal.h>
#include <project_build.h>
#ifdef JUCI_ENABLE_DEBUG
#include "debug_lldb.h"
#include <debug_lldb.h>
#endif
#include "info.h"
#include "dialogs.h"
#include "ctags.h"
#include "selection_dialog.h"
#include "filesystem.h"
#include "compile_commands.h"
#include "usages_clang.h"
#include "documentation_cppreference.h"
#include <info.h>
#include <dialogs.h>
#include <ctags.h>
#include <selection_dialog.h>
#include <filesystem.h>
#include <compile_commands.h>
#include <usages_clang.h>
#include <documentation_cppreference.h>
clangmm::Index Source::ClangViewParse::clang_index(0, 0);

10
src/source_diff.cc

@ -1,8 +1,8 @@
#include "source_diff.h"
#include "config.h"
#include "terminal.h"
#include "filesystem.h"
#include "info.h"
#include <source_diff.h>
#include <config.h>
#include <terminal.h>
#include <filesystem.h>
#include <info.h>
#include <boost/version.hpp>
Source::DiffView::Renderer::Renderer() : Gsv::GutterRenderer() {

16
src/source_language_protocol.cc

@ -1,13 +1,13 @@
#include "source_language_protocol.h"
#include "info.h"
#include "selection_dialog.h"
#include "terminal.h"
#include "project.h"
#include "filesystem.h"
#include <source_language_protocol.h>
#include <info.h>
#include <selection_dialog.h>
#include <terminal.h>
#include <project.h>
#include <filesystem.h>
#ifdef JUCI_ENABLE_DEBUG
#include "debug_lldb.h"
#include <debug_lldb.h>
#endif
#include "menu.h"
#include <menu.h>
#include <regex>
#include <future>
#include <limits>

8
src/source_spellcheck.cc

@ -1,7 +1,7 @@
#include "source_spellcheck.h"
#include "config.h"
#include "info.h"
#include "selection_dialog.h"
#include <source_spellcheck.h>
#include <config.h>
#include <info.h>
#include <selection_dialog.h>
#include <iostream>
AspellConfig* Source::SpellCheckView::spellcheck_config=nullptr;

12
src/terminal.cc

@ -1,9 +1,9 @@
#include "terminal.h"
#include "config.h"
#include "project.h"
#include "info.h"
#include "notebook.h"
#include "filesystem.h"
#include <terminal.h>
#include <config.h>
#include <project.h>
#include <info.h>
#include <notebook.h>
#include <filesystem.h>
#include <iostream>
#include <regex>
#include <thread>

4
src/tooltips.cc

@ -1,5 +1,5 @@
#include "tooltips.h"
#include "selection_dialog.h"
#include <tooltips.h>
#include <selection_dialog.h>
std::set<Tooltip*> Tooltips::shown_tooltips;
Gdk::Rectangle Tooltips::drawn_tooltips_rectangle=Gdk::Rectangle();

10
src/usages_clang.cc

@ -1,8 +1,8 @@
#include "usages_clang.h"
#include "compile_commands.h"
#include "config.h"
#include "dialogs.h"
#include "filesystem.h"
#include <usages_clang.h>
#include <compile_commands.h>
#include <config.h>
#include <dialogs.h>
#include <filesystem.h>
#include <chrono>
#include <fstream>
#include <regex>

24
src/window.cc

@ -1,15 +1,15 @@
#include "window.h"
#include "config.h"
#include "menu.h"
#include "notebook.h"
#include "directories.h"
#include "dialogs.h"
#include "filesystem.h"
#include "project.h"
#include "entrybox.h"
#include "info.h"
#include "selection_dialog.h"
#include "terminal.h"
#include <window.h>
#include <config.h>
#include <menu.h>
#include <notebook.h>
#include <directories.h>
#include <dialogs.h>
#include <filesystem.h>
#include <project.h>
#include <entrybox.h>
#include <info.h>
#include <selection_dialog.h>
#include <terminal.h>
Window::Window() {
Gsv::init();

2
tests/CMakeLists.txt

@ -2,7 +2,7 @@ add_compile_options(-fno-access-control)
add_definitions(-DJUCI_BUILD_PATH="${CMAKE_BINARY_DIR}" -DJUCI_TESTS_PATH="${CMAKE_CURRENT_SOURCE_DIR}")
include_directories(
${CMAKE_SOURCE_DIR}/src
${CMAKE_SOURCE_DIR}/include
${CMAKE_SOURCE_DIR}/libclangmm/src
${CMAKE_SOURCE_DIR}/tiny-process-library
)

Loading…
Cancel
Save