Skip to content

Commit 70aa250

Browse files
committed
#42 - начало рефакторинга дерева исходников
1 parent 01b8e61 commit 70aa250

File tree

255 files changed

+77
-79
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

255 files changed

+77
-79
lines changed

dev/build.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ qmake -project -recursive -Wall -o ${PROJECT_NAME}.pro \
1515
"QT += network sql webkit" \
1616
"LIBS += -laspell -lz" \
1717
"ICON = icons/Main-Logo.icns" \
18-
"macx { QMAKE_CXX = clang }"
18+
"macx { QMAKE_CXX = clang }" \
19+
src
1920

2021
# создание make-файлов
2122
qmake ${PROJECT_NAME}.pro

dev/doxygen/doxygen.conf

+3-6
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ABBREVIATE_BRIEF = "The $name class" \
2525
ALWAYS_DETAILED_SEC = NO
2626
INLINE_INHERITED_MEMB = NO
2727
FULL_PATH_NAMES = YES
28-
STRIP_FROM_PATH = ../
28+
STRIP_FROM_PATH = ../src/
2929
STRIP_FROM_INC_PATH =
3030
SHORT_NAMES = NO
3131
JAVADOC_AUTOBRIEF = NO
@@ -90,7 +90,7 @@ WARN_LOGFILE =
9090
#---------------------------------------------------------------------------
9191
# configuration options related to the input files
9292
#---------------------------------------------------------------------------
93-
INPUT = ../
93+
INPUT = ../src/
9494
INPUT_ENCODING = UTF-8
9595
FILE_PATTERNS = *.c \
9696
*.cc \
@@ -144,10 +144,7 @@ FILE_PATTERNS = *.c \
144144
RECURSIVE = YES
145145
EXCLUDE =
146146
EXCLUDE_SYMLINKS = NO
147-
EXCLUDE_PATTERNS = moc_* \
148-
qrc_* \
149-
.svn \
150-
*/dev/*
147+
EXCLUDE_PATTERNS =
151148
EXCLUDE_SYMBOLS =
152149
EXAMPLE_PATH =
153150
EXAMPLE_PATTERNS = *
File renamed without changes.
File renamed without changes.
File renamed without changes.

form_date_ui.h renamed to src/forms/form_date_ui.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef _avalon_form_date_ui_h_
77
#define _avalon_form_date_ui_h_
88

9-
#include "sysheaders.h"
9+
#include "../sysheaders.h"
1010

1111
/*!
1212
* \brief GUI формы выбора даты/времени
File renamed without changes.
File renamed without changes.
File renamed without changes.

form_input_ui.h renamed to src/forms/form_input_ui.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef _avalon_form_input_ui_h_
77
#define _avalon_form_input_ui_h_
88

9-
#include "sysheaders.h"
9+
#include "../sysheaders.h"
1010

1111
/*!
1212
* \brief GUI формы запроса ввода пользователя (аналог InputBox)

form_main.cpp renamed to src/forms/form_main.cpp

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
1-
/*!
2-
* \file
3-
* \brief Главная форма приложения
4-
*/
5-
//----------------------------------------------------------------------------------------------
61
#include "form_main.h"
72
//----------------------------------------------------------------------------------------------
8-
#include "global.h"
3+
#include "../global.h"
4+
#include "../webservice.h"
5+
#include "../storage/storage_factory.h"
6+
//----------------------------------------------------------------------------------------------
97
#include "form_date.h"
108
#include "form_input.h"
11-
#include "webservice.h"
129
#include "form_request.h"
1310
#include "form_settings.h"
1411
#include "form_subscribe.h"
15-
#include "storage/storage_factory.h"
1612
//----------------------------------------------------------------------------------------------
1713

1814
AFormMain::AFormMain () : AFormMainUI (), IFormMain ()

form_main.h renamed to src/forms/form_main.h

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#define _avalon_form_main_h_
88

99
#include "form_main_ui.h"
10-
#include "interfaces.h"
1110

1211
/*!
1312
* \brief Класс главной формы приложения
File renamed without changes.

form_main_ui.h renamed to src/forms/form_main_ui.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
#ifndef _avalon_form_main_ui_h_
77
#define _avalon_form_main_ui_h_
88

9-
#include "forum_tree.h"
10-
#include "message_tree.h"
11-
#include "message_view.h"
9+
#include "../widgets/forum_tree.h"
10+
#include "../widgets/message_tree.h"
11+
#include "../widgets/message_view.h"
1212

1313
/*!
1414
* \brief Класс для генерации GUI части главной формы

form_message.cpp renamed to src/forms/form_message.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#include "form_message.h"
22
//----------------------------------------------------------------------------------------------
3-
#include "parser.h"
4-
#include "global.h"
5-
#include "storage/storage_factory.h"
3+
#include "../parser.h"
4+
#include "../global.h"
5+
#include "../storage/storage_factory.h"
66
//----------------------------------------------------------------------------------------------
77

88
FormMessage::FormMessage (QWidget* parent, bool is_reply, const AMessageInfoGUI& info, int edit_id) : FormMessageUI (parent)

form_message.h renamed to src/forms/form_message.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
#ifndef _avalon_form_message_h_
77
#define _avalon_form_message_h_
88

9-
#include "model/all.h"
10-
#include "interfaces.h"
9+
#include "../model/all.h"
10+
#include "../interfaces.h"
11+
1112
#include "form_message_ui.h"
1213

1314
/*!

form_message_ui.cpp renamed to src/forms/form_message_ui.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "form_message_ui.h"
2-
#include "parser.h"
2+
//----------------------------------------------------------------------------------------------
3+
#include "../parser.h"
34
//----------------------------------------------------------------------------------------------
45
/*!
56
* \brief Описатель спецсимвола для вставки

form_message_ui.h renamed to src/forms/form_message_ui.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
#ifndef _avalon_form_message_ui_h_
77
#define _avalon_form_message_ui_h_
88

9-
#include "web_view.h"
10-
#include "spell_edit.h"
9+
#include "../widgets/web_view.h"
10+
#include "../widgets/spell_edit.h"
1111

1212
/*!
1313
* \brief GUI формы создания или ответа на сообщение.

form_moderate.cpp renamed to src/forms/form_moderate.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "form_moderate.h"
2-
#include "storage/storage_factory.h"
2+
//----------------------------------------------------------------------------------------------
3+
#include "../storage/storage_factory.h"
34
//----------------------------------------------------------------------------------------------
45

56
FormModerate::FormModerate (QWidget* parent, int id_message, int edit_id) : FormModerateUI (parent)

form_moderate.h renamed to src/forms/form_moderate.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
#define _avalon_form_moderate_h_
88

99
#include "form_moderate_ui.h"
10-
#include "iforum_tree.h"
10+
11+
#include "../widgets/iforum_tree.h"
1112

1213
/*!
1314
* \brief Форма для ввода информации о модерировании

form_moderate_ui.cpp renamed to src/forms/form_moderate_ui.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "form_moderate_ui.h"
2-
#include "storage/storage_factory.h"
2+
//----------------------------------------------------------------------------------------------
3+
#include "../storage/storage_factory.h"
34
//----------------------------------------------------------------------------------------------
45

56
FormModerateUI::FormModerateUI (QWidget* parent) : QDialog (parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint

form_moderate_ui.h renamed to src/forms/form_moderate_ui.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef _avalon_form_moderate_ui_h_
77
#define _avalon_form_moderate_ui_h_
88

9-
#include "sysheaders.h"
9+
#include "../sysheaders.h"
1010

1111
/*!
1212
* \brief Описатель действия для списка действий при создании модерилки

form_request.cpp renamed to src/forms/form_request.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/*!
2-
* \file
3-
* \brief Форма для отображения прогресса работы и для HTTP запросов
4-
*/
5-
//----------------------------------------------------------------------------------------------
61
#include "form_request.h"
72
//----------------------------------------------------------------------------------------------
83

form_request.h renamed to src/forms/form_request.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
#ifndef _avalon_form_request_h_
77
#define _avalon_form_request_h_
88

9-
#include "iprogress.h"
9+
#include "../iprogress.h"
10+
1011
#include "form_request_ui.h"
1112

1213
/*!
File renamed without changes.

form_request_ui.h renamed to src/forms/form_request_ui.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef _avalon_form_request_ui_h_
77
#define _avalon_form_request_ui_h_
88

9-
#include "sysheaders.h"
9+
#include "../sysheaders.h"
1010

1111
/*!
1212
* \brief GUI формы для отображения прогресса работы и для HTTP запросов

form_settings.cpp renamed to src/forms/form_settings.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "form_settings.h"
22
//----------------------------------------------------------------------------------------------
3-
#include "global.h"
4-
#include "storage/storage_factory.h"
3+
#include "../global.h"
4+
#include "../storage/storage_factory.h"
55
//----------------------------------------------------------------------------------------------
66

77
FormSettings::FormSettings (QWidget* parent) : FormSettingsUI (parent)
File renamed without changes.
File renamed without changes.

form_settings_ui.h renamed to src/forms/form_settings_ui.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef _avalon_form_settings_ui_h_
77
#define _avalon_form_settings_ui_h_
88

9-
#include "sysheaders.h"
9+
#include "../sysheaders.h"
1010

1111
/*!
1212
* \brief GUI формы настроек программы
File renamed without changes.
File renamed without changes.
File renamed without changes.

form_source_ui.h renamed to src/forms/form_source_ui.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef _avalon_form_source_ui_h_
77
#define _avalon_form_source_ui_h_
88

9-
#include "sysheaders.h"
9+
#include "../sysheaders.h"
1010

1111
/*!
1212
* \brief GUI формы просмотра сообщения в raw

form_subscribe.cpp renamed to src/forms/form_subscribe.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#include "form_subscribe.h"
22
//----------------------------------------------------------------------------------------------
3-
#include "webservice.h"
3+
#include "../webservice.h"
4+
#include "../widgets/tree_widget_item.h"
5+
#include "../storage/storage_factory.h"
6+
//----------------------------------------------------------------------------------------------
47
#include "form_request.h"
5-
#include "tree_widget_item.h"
6-
#include "storage/storage_factory.h"
78
//----------------------------------------------------------------------------------------------
89
/*!
910
* \brief Элемент для дерева форумов с информацией о форуме

form_subscribe.h renamed to src/forms/form_subscribe.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
#ifndef _avalon_form_subscribe_h_
77
#define _avalon_form_subscribe_h_
88

9-
#include "model/all.h"
9+
#include "../model/all.h"
10+
1011
#include "form_subscribe_ui.h"
1112

1213
/*!
File renamed without changes.

form_subscribe_ui.h renamed to src/forms/form_subscribe_ui.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef _avalon_form_subscribe_ui_h_
77
#define _avalon_form_subscribe_ui_h_
88

9-
#include "sysheaders.h"
9+
#include "../sysheaders.h"
1010

1111
/*!
1212
* \brief GUI формы подписки на форумы

iform_main.h renamed to src/forms/iform_main.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef _avalon_iform_main_h_
77
#define _avalon_iform_main_h_
88

9-
#include "sysheaders.h"
9+
#include "../sysheaders.h"
1010

1111
/*!
1212
* \brief Перечисление действий/меню для включения отключения
File renamed without changes.

global.h renamed to src/global.h

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

interfaces.h renamed to src/interfaces.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
#ifndef _avalon_interfaces_h_
77
#define _avalon_interfaces_h_
88

9-
#include "iform_main.h"
10-
#include "iforum_tree.h"
11-
#include "imessage_tree.h"
12-
#include "imessage_view.h"
9+
#include "forms/iform_main.h"
10+
#include "widgets/iforum_tree.h"
11+
#include "widgets/imessage_tree.h"
12+
#include "widgets/imessage_view.h"
1313

1414
#endif
File renamed without changes.

main.cpp renamed to src/main.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
* Точка входа
44
*/
55

6-
#include "form_main.h"
6+
#include "forms/form_main.h"
77
#include "global.h"
8-
#include <memory>
98

109
/*!
1110
* (no comments)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

parser.h renamed to src/parser.h

File renamed without changes.

resource.qrc renamed to src/resource.qrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152

153153
<file>icons/Main-Logo.icns</file>
154154

155-
<file>dev/avalon.sqlite.sql</file>
155+
<file>sql/avalon.sqlite.sql</file>
156156

157157
</qresource>
158158
</RCC>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

version.h renamed to src/version.h

File renamed without changes.
File renamed without changes.
File renamed without changes.

forum_tree.cpp renamed to src/widgets/forum_tree.cpp

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#include "forum_tree.h"
22
//----------------------------------------------------------------------------------------------
3-
#include "global.h"
4-
#include "model/all.h"
5-
#include "form_date.h"
6-
#include "icon_effect.h"
7-
#include "form_message.h"
3+
#include "../global.h"
4+
#include "../model/all.h"
5+
#include "../icon_effect.h"
6+
#include "../forms/form_date.h"
7+
#include "../forms/form_message.h"
8+
#include "../storage/storage_factory.h"
9+
//----------------------------------------------------------------------------------------------
810
#include "tree_widget_item.h"
9-
#include "storage/storage_factory.h"
1011
//----------------------------------------------------------------------------------------------
1112
/*!
1213
* \brief Элемент для дерева группы форумов с информацией о группе

forum_tree.h renamed to src/widgets/forum_tree.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef _avalon_forum_tree_h_
77
#define _avalon_forum_tree_h_
88

9-
#include "interfaces.h"
9+
#include "../interfaces.h"
1010

1111
/*!
1212
* \brief Виджет дерева форумов

iforum_tree.h renamed to src/widgets/iforum_tree.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef _avalon_iforum_tree_h_
77
#define _avalon_iforum_tree_h_
88

9-
#include "sysheaders.h"
9+
#include "../sysheaders.h"
1010

1111
/*!
1212
* \brief Интерфейс для работы с деревом форумов

imessage_tree.h renamed to src/widgets/imessage_tree.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef _avalon_imessage_tree_h_
77
#define _avalon_imessage_tree_h_
88

9-
#include "model/all.h"
9+
#include "../model/all.h"
1010

1111
/*!
1212
* \brief Интерфейс для работы с деревом сообщений

imessage_view.h renamed to src/widgets/imessage_view.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef _avalon_imessage_view_h_
77
#define _avalon_imessage_view_h_
88

9-
#include "model/all.h"
9+
#include "../model/all.h"
1010

1111
/*!
1212
* \brief Интерфейс для работы с областью отображения HTML сообщения извне

message_tree.cpp renamed to src/widgets/message_tree.cpp

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#include "message_tree.h"
22
//----------------------------------------------------------------------------------------------
3-
#include "global.h"
4-
#include "form_source.h"
5-
#include "icon_effect.h"
6-
#include "form_message.h"
7-
#include "form_moderate.h"
3+
#include "../global.h"
4+
#include "../icon_effect.h"
5+
#include "../forms/form_source.h"
6+
#include "../forms/form_message.h"
7+
#include "../forms/form_moderate.h"
8+
#include "../storage/storage_factory.h"
9+
//----------------------------------------------------------------------------------------------
810
#include "tree_widget_item.h"
9-
#include "storage/storage_factory.h"
1011
//----------------------------------------------------------------------------------------------
1112
/*!
1213
* \brief Максимальная длина истории для навигации Вперед / Назад

message_tree.h renamed to src/widgets/message_tree.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef _avalon_message_tree_h_
77
#define _avalon_message_tree_h_
88

9-
#include "interfaces.h"
9+
#include "../interfaces.h"
1010

1111
/*!
1212
* \brief Виджет дерева сообщений

0 commit comments

Comments
 (0)