summary refs log tree commit diff
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-11-30 13:53:28 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-11-30 13:53:28 +0200
commit32c83405771b2f7a751783529d17e1b84dad4224 (patch)
tree70b51c8f019bfcaae99207fba8d0214e4b69e94d
parentUse templates for the TimelineItem generation (diff)
downloadnheko-32c83405771b2f7a751783529d17e1b84dad4224.tar.xz
Create directories for related files
-rw-r--r--CMakeLists.txt143
-rw-r--r--include/TextInputWidget.h3
-rw-r--r--include/dialogs/ImageOverlayDialog.h (renamed from include/ImageOverlayDialog.h)0
-rw-r--r--include/dialogs/JoinRoomDialog.h (renamed from include/JoinRoomDialog.h)0
-rw-r--r--include/dialogs/LeaveRoomDialog.h (renamed from include/LeaveRoomDialog.h)0
-rw-r--r--include/dialogs/LogoutDialog.h (renamed from include/LogoutDialog.h)0
-rw-r--r--include/emoji/EmojiCategory.h (renamed from include/EmojiCategory.h)0
-rw-r--r--include/emoji/EmojiItemDelegate.h (renamed from include/EmojiItemDelegate.h)0
-rw-r--r--include/emoji/EmojiPanel.h (renamed from include/EmojiPanel.h)0
-rw-r--r--include/emoji/EmojiPickButton.h (renamed from include/EmojiPickButton.h)0
-rw-r--r--include/emoji/EmojiProvider.h (renamed from include/EmojiProvider.h)0
-rw-r--r--include/timeline/TimelineItem.h (renamed from include/TimelineItem.h)0
-rw-r--r--include/timeline/TimelineView.h (renamed from include/TimelineView.h)0
-rw-r--r--include/timeline/TimelineViewManager.h (renamed from include/TimelineViewManager.h)0
-rw-r--r--include/timeline/widgets/FileItem.h (renamed from include/FileItem.h)0
-rw-r--r--include/timeline/widgets/ImageItem.h (renamed from include/ImageItem.h)0
-rw-r--r--src/AvatarProvider.cc3
-rw-r--r--src/ChatPage.cc3
-rw-r--r--src/RoomList.cc5
-rw-r--r--src/TopRoomBar.cc3
-rw-r--r--src/UserInfoWidget.cc3
-rw-r--r--src/dialogs/ImageOverlayDialog.cc (renamed from src/ImageOverlayDialog.cc)2
-rw-r--r--src/dialogs/JoinRoomDialog.cc (renamed from src/JoinRoomDialog.cc)3
-rw-r--r--src/dialogs/LeaveRoomDialog.cc (renamed from src/LeaveRoomDialog.cc)3
-rw-r--r--src/dialogs/LogoutDialog.cc (renamed from src/LogoutDialog.cc)3
-rw-r--r--src/emoji/EmojiCategory.cc (renamed from src/EmojiCategory.cc)3
-rw-r--r--src/emoji/EmojiItemDelegate.cc (renamed from src/EmojiItemDelegate.cc)2
-rw-r--r--src/emoji/EmojiPanel.cc (renamed from src/EmojiPanel.cc)5
-rw-r--r--src/emoji/EmojiPickButton.cc (renamed from src/EmojiPickButton.cc)4
-rw-r--r--src/emoji/EmojiProvider.cc (renamed from src/EmojiProvider.cc)2
-rw-r--r--src/timeline/TimelineItem.cc (renamed from src/TimelineItem.cc)7
-rw-r--r--src/timeline/TimelineView.cc (renamed from src/TimelineView.cc)7
-rw-r--r--src/timeline/TimelineViewManager.cc (renamed from src/TimelineViewManager.cc)9
-rw-r--r--src/timeline/widgets/FileItem.cc (renamed from src/FileItem.cc)3
-rw-r--r--src/timeline/widgets/ImageItem.cc (renamed from src/ImageItem.cc)4
35 files changed, 124 insertions, 96 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 81dc2ca5..9b13def9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -140,24 +140,52 @@ endif()
 # Declare source and header files.
 #
 set(SRC_FILES
+    # Dialogs
+    src/dialogs/ImageOverlayDialog.cc
+    src/dialogs/JoinRoomDialog.cc
+    src/dialogs/LeaveRoomDialog.cc
+    src/dialogs/LogoutDialog.cc
+
+    # Emoji
+    src/emoji/EmojiCategory.cc
+    src/emoji/EmojiItemDelegate.cc
+    src/emoji/EmojiPanel.cc
+    src/emoji/EmojiPickButton.cc
+    src/emoji/EmojiProvider.cc
+
+    # Timeline
+    src/timeline/TimelineViewManager.cc
+    src/timeline/TimelineItem.cc
+    src/timeline/TimelineView.cc
+    src/timeline/widgets/FileItem.cc
+    src/timeline/widgets/ImageItem.cc
+
+    # UI components
+    src/ui/Avatar.cc
+    src/ui/Badge.cc
+    src/ui/LoadingIndicator.cc
+    src/ui/FlatButton.cc
+    src/ui/FloatingButton.cc
+    src/ui/Label.cc
+    src/ui/OverlayModal.cc
+    src/ui/ScrollBar.cc
+    src/ui/SnackBar.cc
+    src/ui/RaisedButton.cc
+    src/ui/Ripple.cc
+    src/ui/RippleOverlay.cc
+    src/ui/OverlayWidget.cc
+    src/ui/TextField.cc
+    src/ui/ToggleButton.cc
+    src/ui/Theme.cc
+    src/ui/ThemeManager.cc
+
     src/AvatarProvider.cc
     src/Cache.cc
     src/ChatPage.cc
     src/Deserializable.cc
-    src/EmojiCategory.cc
-    src/EmojiItemDelegate.cc
-    src/EmojiPanel.cc
-    src/EmojiPickButton.cc
-    src/EmojiProvider.cc
-    src/FileItem.cc
-    src/ImageItem.cc
-    src/ImageOverlayDialog.cc
     src/InputValidator.cc
-    src/JoinRoomDialog.cc
-    src/LeaveRoomDialog.cc
     src/Login.cc
     src/LoginPage.cc
-    src/LogoutDialog.cc
     src/MainWindow.cc
     src/MatrixClient.cc
     src/Profile.cc
@@ -169,38 +197,17 @@ set(SRC_FILES
     src/RoomMessages.cc
     src/RoomState.cc
     src/SideBarActions.cc
-    src/UserSettingsPage.cc
     src/Splitter.cc
     src/Sync.cc
     src/TextInputWidget.cc
-    src/TimelineItem.cc
-    src/TimelineView.cc
-    src/TimelineViewManager.cc
     src/TopRoomBar.cc
     src/TrayIcon.cc
     src/TypingDisplay.cc
     src/UserInfoWidget.cc
+    src/UserSettingsPage.cc
     src/Versions.cc
     src/WelcomePage.cc
     src/main.cc
-
-    src/ui/Avatar.cc
-    src/ui/Badge.cc
-    src/ui/LoadingIndicator.cc
-    src/ui/FlatButton.cc
-    src/ui/FloatingButton.cc
-    src/ui/Label.cc
-    src/ui/OverlayModal.cc
-    src/ui/ScrollBar.cc
-    src/ui/SnackBar.cc
-    src/ui/RaisedButton.cc
-    src/ui/Ripple.cc
-    src/ui/RippleOverlay.cc
-    src/ui/OverlayWidget.cc
-    src/ui/TextField.cc
-    src/ui/ToggleButton.cc
-    src/ui/Theme.cc
-    src/ui/ThemeManager.cc
 )
 
 set(MATRIX_EVENTS
@@ -237,20 +244,47 @@ include_directories(libs/lmdbxx)
 include_directories(${LMDB_INCLUDE_DIR})
 
 qt5_wrap_cpp(MOC_HEADERS
+    # Dialogs
+    include/dialogs/ImageOverlayDialog.h
+    include/dialogs/JoinRoomDialog.h
+    include/dialogs/LeaveRoomDialog.h
+    include/dialogs/LogoutDialog.h
+
+    # Emoji
+    include/emoji/EmojiCategory.h
+    include/emoji/EmojiItemDelegate.h
+    include/emoji/EmojiPanel.h
+    include/emoji/EmojiPickButton.h
+    include/emoji/EmojiProvider.h
+
+    # Timeline
+    include/timeline/TimelineItem.h
+    include/timeline/TimelineView.h
+    include/timeline/TimelineViewManager.h
+    include/timeline/widgets/FileItem.h
+    include/timeline/widgets/ImageItem.h
+
+    # UI components
+    include/ui/Avatar.h
+    include/ui/Badge.h
+    include/ui/LoadingIndicator.h
+    include/ui/FlatButton.h
+    include/ui/Label.h
+    include/ui/FloatingButton.h
+    include/ui/OverlayWidget.h
+    include/ui/ScrollBar.h
+    include/ui/SnackBar.h
+    include/ui/RaisedButton.h
+    include/ui/Ripple.h
+    include/ui/RippleOverlay.h
+    include/ui/TextField.h
+    include/ui/ToggleButton.h
+    include/ui/Theme.h
+    include/ui/ThemeManager.h
+
     include/AvatarProvider.h
     include/ChatPage.h
-    include/EmojiCategory.h
-    include/EmojiItemDelegate.h
-    include/EmojiPanel.h
-    include/EmojiPickButton.h
-    include/ui/FloatingButton.h
-    include/FileItem.h
-    include/ImageItem.h
-    include/ImageOverlayDialog.h
-    include/JoinRoomDialog.h
-    include/LeaveRoomDialog.h
     include/LoginPage.h
-    include/LogoutDialog.h
     include/MainWindow.h
     include/MatrixClient.h
     include/QuickSwitcher.h
@@ -258,33 +292,14 @@ qt5_wrap_cpp(MOC_HEADERS
     include/RoomInfoListItem.h
     include/RoomList.h
     include/SideBarActions.h
-    include/UserSettingsPage.h
     include/Splitter.h
     include/TextInputWidget.h
-    include/TimelineItem.h
-    include/TimelineView.h
-    include/TimelineViewManager.h
     include/TopRoomBar.h
     include/TrayIcon.h
     include/TypingDisplay.h
     include/UserInfoWidget.h
+    include/UserSettingsPage.h
     include/WelcomePage.h
-
-    include/ui/Avatar.h
-    include/ui/Badge.h
-    include/ui/LoadingIndicator.h
-    include/ui/FlatButton.h
-    include/ui/Label.h
-    include/ui/OverlayWidget.h
-    include/ui/ScrollBar.h
-    include/ui/SnackBar.h
-    include/ui/RaisedButton.h
-    include/ui/Ripple.h
-    include/ui/RippleOverlay.h
-    include/ui/TextField.h
-    include/ui/ToggleButton.h
-    include/ui/Theme.h
-    include/ui/ThemeManager.h
 )
 
 #
diff --git a/include/TextInputWidget.h b/include/TextInputWidget.h
index 80c16740..ede7b18a 100644
--- a/include/TextInputWidget.h
+++ b/include/TextInputWidget.h
@@ -24,11 +24,12 @@
 #include <QTextEdit>
 #include <QWidget>
 
-#include "EmojiPickButton.h"
 #include "FlatButton.h"
 #include "Image.h"
 #include "LoadingIndicator.h"
 
+#include "emoji/EmojiPickButton.h"
+
 namespace msgs = matrix::events::messages;
 
 class FilteredTextEdit : public QTextEdit
diff --git a/include/ImageOverlayDialog.h b/include/dialogs/ImageOverlayDialog.h
index 5159c665..5159c665 100644
--- a/include/ImageOverlayDialog.h
+++ b/include/dialogs/ImageOverlayDialog.h
diff --git a/include/JoinRoomDialog.h b/include/dialogs/JoinRoomDialog.h
index 84184733..84184733 100644
--- a/include/JoinRoomDialog.h
+++ b/include/dialogs/JoinRoomDialog.h
diff --git a/include/LeaveRoomDialog.h b/include/dialogs/LeaveRoomDialog.h
index eab022f7..eab022f7 100644
--- a/include/LeaveRoomDialog.h
+++ b/include/dialogs/LeaveRoomDialog.h
diff --git a/include/LogoutDialog.h b/include/dialogs/LogoutDialog.h
index a1a5ee4f..a1a5ee4f 100644
--- a/include/LogoutDialog.h
+++ b/include/dialogs/LogoutDialog.h
diff --git a/include/EmojiCategory.h b/include/emoji/EmojiCategory.h
index be0110f2..be0110f2 100644
--- a/include/EmojiCategory.h
+++ b/include/emoji/EmojiCategory.h
diff --git a/include/EmojiItemDelegate.h b/include/emoji/EmojiItemDelegate.h
index 15d61f49..15d61f49 100644
--- a/include/EmojiItemDelegate.h
+++ b/include/emoji/EmojiItemDelegate.h
diff --git a/include/EmojiPanel.h b/include/emoji/EmojiPanel.h
index 9eecc8e0..9eecc8e0 100644
--- a/include/EmojiPanel.h
+++ b/include/emoji/EmojiPanel.h
diff --git a/include/EmojiPickButton.h b/include/emoji/EmojiPickButton.h
index 8ef9be9e..8ef9be9e 100644
--- a/include/EmojiPickButton.h
+++ b/include/emoji/EmojiPickButton.h
diff --git a/include/EmojiProvider.h b/include/emoji/EmojiProvider.h
index 847157fd..847157fd 100644
--- a/include/EmojiProvider.h
+++ b/include/emoji/EmojiProvider.h
diff --git a/include/TimelineItem.h b/include/timeline/TimelineItem.h
index 9646405c..9646405c 100644
--- a/include/TimelineItem.h
+++ b/include/timeline/TimelineItem.h
diff --git a/include/TimelineView.h b/include/timeline/TimelineView.h
index 898a304e..898a304e 100644
--- a/include/TimelineView.h
+++ b/include/timeline/TimelineView.h
diff --git a/include/TimelineViewManager.h b/include/timeline/TimelineViewManager.h
index 854c2550..854c2550 100644
--- a/include/TimelineViewManager.h
+++ b/include/timeline/TimelineViewManager.h
diff --git a/include/FileItem.h b/include/timeline/widgets/FileItem.h
index ebb18111..ebb18111 100644
--- a/include/FileItem.h
+++ b/include/timeline/widgets/FileItem.h
diff --git a/include/ImageItem.h b/include/timeline/widgets/ImageItem.h
index c4f6998a..c4f6998a 100644
--- a/include/ImageItem.h
+++ b/include/timeline/widgets/ImageItem.h
diff --git a/src/AvatarProvider.cc b/src/AvatarProvider.cc
index 7e8c9e49..334f72c3 100644
--- a/src/AvatarProvider.cc
+++ b/src/AvatarProvider.cc
@@ -17,7 +17,8 @@
 
 #include "AvatarProvider.h"
 #include "MatrixClient.h"
-#include "TimelineItem.h"
+
+#include "timeline/TimelineItem.h"
 
 QSharedPointer<MatrixClient> AvatarProvider::client_;
 
diff --git a/src/ChatPage.cc b/src/ChatPage.cc
index 5214d49a..340e75c3 100644
--- a/src/ChatPage.cc
+++ b/src/ChatPage.cc
@@ -35,11 +35,12 @@
 #include "Sync.h"
 #include "TextInputWidget.h"
 #include "Theme.h"
-#include "TimelineViewManager.h"
 #include "TopRoomBar.h"
 #include "TypingDisplay.h"
 #include "UserInfoWidget.h"
 
+#include "timeline/TimelineViewManager.h"
+
 constexpr int MAX_INITIAL_SYNC_FAILURES = 5;
 constexpr int SYNC_RETRY_TIMEOUT        = 10000;
 
diff --git a/src/RoomList.cc b/src/RoomList.cc
index 7560a616..6b8867f3 100644
--- a/src/RoomList.cc
+++ b/src/RoomList.cc
@@ -18,8 +18,9 @@
 #include <QDebug>
 #include <QObject>
 
-#include "JoinRoomDialog.h"
-#include "LeaveRoomDialog.h"
+#include "dialogs/JoinRoomDialog.h"
+#include "dialogs/LeaveRoomDialog.h"
+
 #include "MainWindow.h"
 #include "MatrixClient.h"
 #include "OverlayModal.h"
diff --git a/src/TopRoomBar.cc b/src/TopRoomBar.cc
index d852ae32..3418e6f1 100644
--- a/src/TopRoomBar.cc
+++ b/src/TopRoomBar.cc
@@ -21,13 +21,14 @@
 #include "Config.h"
 #include "FlatButton.h"
 #include "Label.h"
-#include "LeaveRoomDialog.h"
 #include "MainWindow.h"
 #include "Menu.h"
 #include "OverlayModal.h"
 #include "RoomSettings.h"
 #include "TopRoomBar.h"
 
+#include "dialogs/LeaveRoomDialog.h"
+
 TopRoomBar::TopRoomBar(QWidget *parent)
   : QWidget(parent)
   , buttonSize_{32}
diff --git a/src/UserInfoWidget.cc b/src/UserInfoWidget.cc
index 3dc1bc89..98977bb3 100644
--- a/src/UserInfoWidget.cc
+++ b/src/UserInfoWidget.cc
@@ -20,11 +20,12 @@
 #include "Avatar.h"
 #include "Config.h"
 #include "FlatButton.h"
-#include "LogoutDialog.h"
 #include "MainWindow.h"
 #include "OverlayModal.h"
 #include "UserInfoWidget.h"
 
+#include "dialogs/LogoutDialog.h"
+
 UserInfoWidget::UserInfoWidget(QWidget *parent)
   : QWidget(parent)
   , display_name_("User")
diff --git a/src/ImageOverlayDialog.cc b/src/dialogs/ImageOverlayDialog.cc
index 7dd4a226..ad87d144 100644
--- a/src/ImageOverlayDialog.cc
+++ b/src/dialogs/ImageOverlayDialog.cc
@@ -19,7 +19,7 @@
 #include <QDesktopWidget>
 #include <QPainter>
 
-#include "ImageOverlayDialog.h"
+#include "dialogs/ImageOverlayDialog.h"
 
 ImageOverlayDialog::ImageOverlayDialog(QPixmap image, QWidget *parent)
   : QWidget{parent}
diff --git a/src/JoinRoomDialog.cc b/src/dialogs/JoinRoomDialog.cc
index a4d241c0..2cee7ef6 100644
--- a/src/JoinRoomDialog.cc
+++ b/src/dialogs/JoinRoomDialog.cc
@@ -3,9 +3,10 @@
 
 #include "Config.h"
 #include "FlatButton.h"
-#include "JoinRoomDialog.h"
 #include "Theme.h"
 
+#include "dialogs/JoinRoomDialog.h"
+
 JoinRoomDialog::JoinRoomDialog(QWidget *parent)
   : QFrame(parent)
 {
diff --git a/src/LeaveRoomDialog.cc b/src/dialogs/LeaveRoomDialog.cc
index e9877a24..b0d1679f 100644
--- a/src/LeaveRoomDialog.cc
+++ b/src/dialogs/LeaveRoomDialog.cc
@@ -4,9 +4,10 @@
 
 #include "Config.h"
 #include "FlatButton.h"
-#include "LeaveRoomDialog.h"
 #include "Theme.h"
 
+#include "dialogs/LeaveRoomDialog.h"
+
 LeaveRoomDialog::LeaveRoomDialog(QWidget *parent)
   : QFrame(parent)
 {
diff --git a/src/LogoutDialog.cc b/src/dialogs/LogoutDialog.cc
index cda52016..73e09745 100644
--- a/src/LogoutDialog.cc
+++ b/src/dialogs/LogoutDialog.cc
@@ -22,9 +22,10 @@
 
 #include "Config.h"
 #include "FlatButton.h"
-#include "LogoutDialog.h"
 #include "Theme.h"
 
+#include "dialogs/LogoutDialog.h"
+
 LogoutDialog::LogoutDialog(QWidget *parent)
   : QFrame(parent)
 {
diff --git a/src/EmojiCategory.cc b/src/emoji/EmojiCategory.cc
index 98d79cc0..42f09409 100644
--- a/src/EmojiCategory.cc
+++ b/src/emoji/EmojiCategory.cc
@@ -20,7 +20,8 @@
 #include <QStyleOption>
 
 #include "Config.h"
-#include "EmojiCategory.h"
+
+#include "emoji/EmojiCategory.h"
 
 EmojiCategory::EmojiCategory(QString category, QList<Emoji> emoji, QWidget *parent)
   : QWidget(parent)
diff --git a/src/EmojiItemDelegate.cc b/src/emoji/EmojiItemDelegate.cc
index 691bee17..547d3b4c 100644
--- a/src/EmojiItemDelegate.cc
+++ b/src/emoji/EmojiItemDelegate.cc
@@ -18,7 +18,7 @@
 #include <QDebug>
 #include <QPainter>
 
-#include "EmojiItemDelegate.h"
+#include "emoji/EmojiItemDelegate.h"
 
 EmojiItemDelegate::EmojiItemDelegate(QObject *parent)
   : QStyledItemDelegate(parent)
diff --git a/src/EmojiPanel.cc b/src/emoji/EmojiPanel.cc
index 0daaad68..9df6f193 100644
--- a/src/EmojiPanel.cc
+++ b/src/emoji/EmojiPanel.cc
@@ -20,10 +20,11 @@
 #include <QVBoxLayout>
 
 #include "DropShadow.h"
-#include "EmojiCategory.h"
-#include "EmojiPanel.h"
 #include "FlatButton.h"
 
+#include "emoji/EmojiCategory.h"
+#include "emoji/EmojiPanel.h"
+
 EmojiPanel::EmojiPanel(QWidget *parent)
   : QWidget(parent)
   , shadowMargin_{2}
diff --git a/src/EmojiPickButton.cc b/src/emoji/EmojiPickButton.cc
index a4f83c46..44955a8c 100644
--- a/src/EmojiPickButton.cc
+++ b/src/emoji/EmojiPickButton.cc
@@ -15,8 +15,8 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "EmojiPickButton.h"
-#include "EmojiPanel.h"
+#include "emoji/EmojiPickButton.h"
+#include "emoji/EmojiPanel.h"
 
 EmojiPickButton::EmojiPickButton(QWidget *parent)
   : FlatButton(parent)
diff --git a/src/EmojiProvider.cc b/src/emoji/EmojiProvider.cc
index ec053046..838c0340 100644
--- a/src/EmojiProvider.cc
+++ b/src/emoji/EmojiProvider.cc
@@ -17,7 +17,7 @@
 
 #include <QByteArray>
 
-#include "EmojiProvider.h"
+#include "emoji/EmojiProvider.h"
 
 const QList<Emoji> EmojiProvider::people = {
   Emoji{QString::fromUtf8("\xf0\x9f\x98\x80"), ":grinning:"},
diff --git a/src/TimelineItem.cc b/src/timeline/TimelineItem.cc
index 7297abc3..f7dd0f6e 100644
--- a/src/TimelineItem.cc
+++ b/src/timeline/TimelineItem.cc
@@ -22,10 +22,11 @@
 
 #include "Avatar.h"
 #include "Config.h"
-#include "FileItem.h"
-#include "ImageItem.h"
 #include "Sync.h"
-#include "TimelineItem.h"
+
+#include "timeline/TimelineItem.h"
+#include "timeline/widgets/FileItem.h"
+#include "timeline/widgets/ImageItem.h"
 
 static const QRegExp URL_REGEX("((?:https?|ftp)://\\S+)");
 static const QString URL_HTML = "<a href=\"\\1\">\\1</a>";
diff --git a/src/TimelineView.cc b/src/timeline/TimelineView.cc
index 7bbda051..8ccff85a 100644
--- a/src/TimelineView.cc
+++ b/src/timeline/TimelineView.cc
@@ -19,13 +19,14 @@
 #include <QFileInfo>
 #include <QTimer>
 
-#include "FileItem.h"
 #include "FloatingButton.h"
-#include "ImageItem.h"
 #include "RoomMessages.h"
 #include "ScrollBar.h"
 #include "Sync.h"
-#include "TimelineView.h"
+
+#include "timeline/TimelineView.h"
+#include "timeline/widgets/FileItem.h"
+#include "timeline/widgets/ImageItem.h"
 
 namespace events = matrix::events;
 namespace msgs   = matrix::events::messages;
diff --git a/src/TimelineViewManager.cc b/src/timeline/TimelineViewManager.cc
index daec481b..39f07639 100644
--- a/src/TimelineViewManager.cc
+++ b/src/timeline/TimelineViewManager.cc
@@ -22,12 +22,13 @@
 #include <QFileInfo>
 #include <QSettings>
 
-#include "FileItem.h"
-#include "ImageItem.h"
 #include "MatrixClient.h"
 #include "Sync.h"
-#include "TimelineView.h"
-#include "TimelineViewManager.h"
+
+#include "timeline/TimelineView.h"
+#include "timeline/TimelineViewManager.h"
+#include "timeline/widgets/FileItem.h"
+#include "timeline/widgets/ImageItem.h"
 
 TimelineViewManager::TimelineViewManager(QSharedPointer<MatrixClient> client, QWidget *parent)
   : QStackedWidget(parent)
diff --git a/src/FileItem.cc b/src/timeline/widgets/FileItem.cc
index 96fd9c07..8d0100c7 100644
--- a/src/FileItem.cc
+++ b/src/timeline/widgets/FileItem.cc
@@ -24,8 +24,7 @@
 #include <QPainter>
 #include <QPixmap>
 
-#include "FileItem.h"
-#include "ImageOverlayDialog.h"
+#include "timeline/widgets/FileItem.h"
 
 namespace events = matrix::events;
 namespace msgs   = matrix::events::messages;
diff --git a/src/ImageItem.cc b/src/timeline/widgets/ImageItem.cc
index 333fd296..106fc79b 100644
--- a/src/ImageItem.cc
+++ b/src/timeline/widgets/ImageItem.cc
@@ -22,8 +22,8 @@
 #include <QPainter>
 #include <QPixmap>
 
-#include "ImageItem.h"
-#include "ImageOverlayDialog.h"
+#include "dialogs/ImageOverlayDialog.h"
+#include "timeline/widgets/ImageItem.h"
 
 namespace events = matrix::events;
 namespace msgs   = matrix::events::messages;