aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstonedDiscord <stoned@derpymail.org>2018-07-05 19:32:51 +0200
committerstonedDiscord <stoned@derpymail.org>2018-07-05 19:32:51 +0200
commit30a87d23c9c63bed072b3460e7482075dc530b2c (patch)
tree73da046880abf88b47f4f79df10a7e151c203457
parentf5e0177b9e13c68fa960dc873cd62452943dac3f (diff)
moved includes to header files
-rw-r--r--aoapplication.cpp4
-rw-r--r--aoapplication.h3
-rw-r--r--aoblipplayer.cpp4
-rw-r--r--aoblipplayer.h2
-rw-r--r--aobutton.cpp2
-rw-r--r--aobutton.h1
-rw-r--r--aocharbutton.cpp2
-rw-r--r--aocharbutton.h3
-rw-r--r--aocharmovie.cpp3
-rw-r--r--aocharmovie.h2
-rw-r--r--aoemotebutton.cpp1
-rw-r--r--aoemotebutton.h5
-rw-r--r--aoevidencebutton.cpp2
-rw-r--r--aoevidencebutton.h1
-rw-r--r--aoevidencedisplay.cpp2
-rw-r--r--aoevidencedisplay.h7
-rw-r--r--aoimage.cpp2
-rw-r--r--aoimage.h1
-rw-r--r--aomusicplayer.cpp4
-rw-r--r--aomusicplayer.h2
-rw-r--r--aopacket.cpp2
-rw-r--r--aopacket.h1
-rw-r--r--aoscene.cpp4
-rw-r--r--aoscene.h1
-rw-r--r--aosfxplayer.cpp4
-rw-r--r--aosfxplayer.h2
-rw-r--r--aotextarea.cpp5
-rw-r--r--aotextarea.h4
-rw-r--r--courtroom.cpp14
-rw-r--r--courtroom.h14
-rw-r--r--debug_functions.cpp2
-rw-r--r--debug_functions.h1
-rw-r--r--discord_rich_presence.cpp5
-rw-r--r--discord_rich_presence.h3
34 files changed, 46 insertions, 69 deletions
diff --git a/aoapplication.cpp b/aoapplication.cpp
index 12e540cd..73a72cc1 100644
--- a/aoapplication.cpp
+++ b/aoapplication.cpp
@@ -5,10 +5,6 @@
#include "networkmanager.h"
#include "debug_functions.h"
-#include <QDebug>
-#include <QRect>
-#include <QDesktopWidget>
-
AOApplication::AOApplication(int &argc, char **argv) : QApplication(argc, argv)
{
net_manager = new NetworkManager(this);
diff --git a/aoapplication.h b/aoapplication.h
index 2a5c4369..8c0e741b 100644
--- a/aoapplication.h
+++ b/aoapplication.h
@@ -8,6 +8,9 @@
#include <QApplication>
#include <QVector>
#include <QFile>
+#include <QDebug>
+#include <QRect>
+#include <QDesktopWidget>
class NetworkManager;
class Lobby;
diff --git a/aoblipplayer.cpp b/aoblipplayer.cpp
index f2124533..726c73f8 100644
--- a/aoblipplayer.cpp
+++ b/aoblipplayer.cpp
@@ -1,9 +1,5 @@
#include "aoblipplayer.h"
-#include <string.h>
-
-#include <QDebug>
-
AOBlipPlayer::AOBlipPlayer(QWidget *parent, AOApplication *p_ao_app)
{
m_parent = parent;
diff --git a/aoblipplayer.h b/aoblipplayer.h
index 430f702f..aebba77d 100644
--- a/aoblipplayer.h
+++ b/aoblipplayer.h
@@ -5,6 +5,8 @@
#include "aoapplication.h"
#include <QWidget>
+#include <string.h>
+#include <QDebug>
class AOBlipPlayer
{
diff --git a/aobutton.cpp b/aobutton.cpp
index 370eca99..ded35af0 100644
--- a/aobutton.cpp
+++ b/aobutton.cpp
@@ -3,8 +3,6 @@
#include "debug_functions.h"
#include "file_functions.h"
-#include <QDebug>
-
AOButton::AOButton(QWidget *parent, AOApplication *p_ao_app) : QPushButton(parent)
{
ao_app = p_ao_app;
diff --git a/aobutton.h b/aobutton.h
index 04923755..4b7209ae 100644
--- a/aobutton.h
+++ b/aobutton.h
@@ -4,6 +4,7 @@
#include "aoapplication.h"
#include <QPushButton>
+#include <QDebug>
class AOButton : public QPushButton
{
diff --git a/aocharbutton.cpp b/aocharbutton.cpp
index b32be010..550e819d 100644
--- a/aocharbutton.cpp
+++ b/aocharbutton.cpp
@@ -2,8 +2,6 @@
#include "file_functions.h"
-#include <QFile>
-
AOCharButton::AOCharButton(QWidget *parent, AOApplication *p_ao_app, int x_pos, int y_pos) : QPushButton(parent)
{
m_parent = parent;
diff --git a/aocharbutton.h b/aocharbutton.h
index f7154169..6b80460c 100644
--- a/aocharbutton.h
+++ b/aocharbutton.h
@@ -2,11 +2,12 @@
#define AOCHARBUTTON_H
#include "aoapplication.h"
+#include "aoimage.h"
#include <QPushButton>
#include <QString>
#include <QWidget>
-#include "aoimage.h"
+#include <QFile>
class AOCharButton : public QPushButton
{
diff --git a/aocharmovie.cpp b/aocharmovie.cpp
index 6ad2969c..b591c224 100644
--- a/aocharmovie.cpp
+++ b/aocharmovie.cpp
@@ -4,9 +4,6 @@
#include "file_functions.h"
#include "aoapplication.h"
-#include <QDebug>
-#include <QImageReader>
-
AOCharMovie::AOCharMovie(QWidget *p_parent, AOApplication *p_ao_app) : QLabel(p_parent)
{
ao_app = p_ao_app;
diff --git a/aocharmovie.h b/aocharmovie.h
index 8bc0bc18..b26bada5 100644
--- a/aocharmovie.h
+++ b/aocharmovie.h
@@ -4,6 +4,8 @@
#include <QMovie>
#include <QLabel>
#include <QTimer>
+#include <QDebug>
+#include <QImageReader>
class AOApplication;
diff --git a/aoemotebutton.cpp b/aoemotebutton.cpp
index d8f10c9a..9e3c446e 100644
--- a/aoemotebutton.cpp
+++ b/aoemotebutton.cpp
@@ -1,7 +1,6 @@
#include "aoemotebutton.h"
#include "file_functions.h"
-#include <QDebug>
AOEmoteButton::AOEmoteButton(QWidget *p_parent, AOApplication *p_ao_app, int p_x, int p_y) : QPushButton(p_parent)
{
diff --git a/aoemotebutton.h b/aoemotebutton.h
index cc3dfacd..c99a73b0 100644
--- a/aoemotebutton.h
+++ b/aoemotebutton.h
@@ -1,10 +1,11 @@
#ifndef AOEMOTEBUTTON_H
#define AOEMOTEBUTTON_H
-#include <QPushButton>
-
#include "aoapplication.h"
+#include <QPushButton>
+#include <QDebug>
+
class AOEmoteButton : public QPushButton
{
Q_OBJECT
diff --git a/aoevidencebutton.cpp b/aoevidencebutton.cpp
index 96bf5534..573b8ef9 100644
--- a/aoevidencebutton.cpp
+++ b/aoevidencebutton.cpp
@@ -2,8 +2,6 @@
#include "file_functions.h"
-#include <QDebug>
-
AOEvidenceButton::AOEvidenceButton(QWidget *p_parent, AOApplication *p_ao_app, int p_x, int p_y) : QPushButton(p_parent)
{
ao_app = p_ao_app;
diff --git a/aoevidencebutton.h b/aoevidencebutton.h
index ee0a0f64..27fb84b3 100644
--- a/aoevidencebutton.h
+++ b/aoevidencebutton.h
@@ -6,6 +6,7 @@
#include <QPushButton>
#include <QString>
+#include <QDebug>
class AOEvidenceButton : public QPushButton
{
diff --git a/aoevidencedisplay.cpp b/aoevidencedisplay.cpp
index cbe37c0e..5364ffb4 100644
--- a/aoevidencedisplay.cpp
+++ b/aoevidencedisplay.cpp
@@ -1,5 +1,3 @@
-#include <QDebug>
-
#include "aoevidencedisplay.h"
#include "file_functions.h"
diff --git a/aoevidencedisplay.h b/aoevidencedisplay.h
index b973a296..13ca00d5 100644
--- a/aoevidencedisplay.h
+++ b/aoevidencedisplay.h
@@ -1,12 +1,13 @@
#ifndef AOEVIDENCEDISPLAY_H
#define AOEVIDENCEDISPLAY_H
-#include <QLabel>
-#include <QMovie>
-
#include "aoapplication.h"
#include "aosfxplayer.h"
+#include <QLabel>
+#include <QMovie>
+#include <QDebug>
+
class AOEvidenceDisplay : public QLabel
{
Q_OBJECT
diff --git a/aoimage.cpp b/aoimage.cpp
index 4710a1f0..935ba745 100644
--- a/aoimage.cpp
+++ b/aoimage.cpp
@@ -2,8 +2,6 @@
#include "aoimage.h"
-#include <QDebug>
-
AOImage::AOImage(QWidget *parent, AOApplication *p_ao_app) : QLabel(parent)
{
m_parent = parent;
diff --git a/aoimage.h b/aoimage.h
index 3e87b1ce..4713be0a 100644
--- a/aoimage.h
+++ b/aoimage.h
@@ -6,6 +6,7 @@
#include "aoapplication.h"
#include <QLabel>
+#include <QDebug>
class AOImage : public QLabel
{
diff --git a/aomusicplayer.cpp b/aomusicplayer.cpp
index a9a9baf1..bdb66327 100644
--- a/aomusicplayer.cpp
+++ b/aomusicplayer.cpp
@@ -1,9 +1,5 @@
#include "aomusicplayer.h"
-#include <string.h>
-
-#include <QDebug>
-
AOMusicPlayer::AOMusicPlayer(QWidget *parent, AOApplication *p_ao_app)
{
m_parent = parent;
diff --git a/aomusicplayer.h b/aomusicplayer.h
index af8452be..560a7f90 100644
--- a/aomusicplayer.h
+++ b/aomusicplayer.h
@@ -5,6 +5,8 @@
#include "aoapplication.h"
#include <QWidget>
+#include <string.h>
+#include <QDebug>
class AOMusicPlayer
{
diff --git a/aopacket.cpp b/aopacket.cpp
index fa8f5be1..b957efea 100644
--- a/aopacket.cpp
+++ b/aopacket.cpp
@@ -2,8 +2,6 @@
#include "encryption_functions.h"
-#include <QDebug>
-
AOPacket::AOPacket(QString p_packet_string)
{
QStringList packet_contents = p_packet_string.split("#");
diff --git a/aopacket.h b/aopacket.h
index 40dd3ec3..21f6e0f4 100644
--- a/aopacket.h
+++ b/aopacket.h
@@ -3,6 +3,7 @@
#include <QString>
#include <QStringList>
+#include <QDebug>
class AOPacket
{
diff --git a/aoscene.cpp b/aoscene.cpp
index 61cd342d..5fe83047 100644
--- a/aoscene.cpp
+++ b/aoscene.cpp
@@ -1,11 +1,7 @@
#include "aoscene.h"
-
#include "courtroom.h"
-
#include "file_functions.h"
-#include <QDebug>
-
AOScene::AOScene(QWidget *parent, AOApplication *p_ao_app) : QLabel(parent)
{
m_parent = parent;
diff --git a/aoscene.h b/aoscene.h
index 8c964451..08c286e1 100644
--- a/aoscene.h
+++ b/aoscene.h
@@ -2,6 +2,7 @@
#define AOSCENE_H
#include <QLabel>
+#include <QDebug>
class Courtroom;
class AOApplication;
diff --git a/aosfxplayer.cpp b/aosfxplayer.cpp
index 6ad59bae..35c7c4e1 100644
--- a/aosfxplayer.cpp
+++ b/aosfxplayer.cpp
@@ -1,9 +1,5 @@
#include "aosfxplayer.h"
-#include <string.h>
-
-#include <QDebug>
-
AOSfxPlayer::AOSfxPlayer(QWidget *parent, AOApplication *p_ao_app)
{
m_parent = parent;
diff --git a/aosfxplayer.h b/aosfxplayer.h
index 5065c617..4fd597c9 100644
--- a/aosfxplayer.h
+++ b/aosfxplayer.h
@@ -5,6 +5,8 @@
#include "aoapplication.h"
#include <QWidget>
+#include <string.h>
+#include <QDebug>
class AOSfxPlayer
{
diff --git a/aotextarea.cpp b/aotextarea.cpp
index 40cc3148..16add101 100644
--- a/aotextarea.cpp
+++ b/aotextarea.cpp
@@ -1,10 +1,5 @@
#include "aotextarea.h"
-#include <QScrollBar>
-#include <QTextCursor>
-#include <QRegExp>
-#include <QDebug>
-
AOTextArea::AOTextArea(QWidget *p_parent) : QTextBrowser(p_parent)
{
diff --git a/aotextarea.h b/aotextarea.h
index 32635fdb..9f01f15e 100644
--- a/aotextarea.h
+++ b/aotextarea.h
@@ -2,6 +2,10 @@
#define AOTEXTAREA_H
#include <QTextBrowser>
+#include <QScrollBar>
+#include <QTextCursor>
+#include <QRegExp>
+#include <QDebug>
class AOTextArea : public QTextBrowser
{
diff --git a/courtroom.cpp b/courtroom.cpp
index ca94f434..a15e4394 100644
--- a/courtroom.cpp
+++ b/courtroom.cpp
@@ -1,19 +1,5 @@
#include "courtroom.h"
-#include "aoapplication.h"
-#include "lobby.h"
-#include "hardware_functions.h"
-#include "file_functions.h"
-#include "datatypes.h"
-#include "debug_functions.h"
-
-#include <QDebug>
-#include <QScrollBar>
-#include <QRegExp>
-#include <QBrush>
-#include <QTextCharFormat>
-#include <QFont>
-
Courtroom::Courtroom(AOApplication *p_ao_app) : QMainWindow()
{
ao_app = p_ao_app;
diff --git a/courtroom.h b/courtroom.h
index 85554a0e..fe3895e5 100644
--- a/courtroom.h
+++ b/courtroom.h
@@ -18,7 +18,19 @@
#include "aotextedit.h"
#include "aoevidencedisplay.h"
#include "datatypes.h"
-
+#include "aoapplication.h"
+#include "lobby.h"
+#include "hardware_functions.h"
+#include "file_functions.h"
+#include "datatypes.h"
+#include "debug_functions.h"
+
+#include <QDebug>
+#include <QScrollBar>
+#include <QRegExp>
+#include <QBrush>
+#include <QTextCharFormat>
+#include <QFont>
#include <QMainWindow>
#include <QLineEdit>
#include <QPlainTextEdit>
diff --git a/debug_functions.cpp b/debug_functions.cpp
index 848667d2..77f2f35a 100644
--- a/debug_functions.cpp
+++ b/debug_functions.cpp
@@ -1,5 +1,3 @@
-#include <QMessageBox>
-
#include "debug_functions.h"
void call_error(QString p_message)
diff --git a/debug_functions.h b/debug_functions.h
index 6feaf90a..160274cc 100644
--- a/debug_functions.h
+++ b/debug_functions.h
@@ -2,6 +2,7 @@
#define DEBUG_FUNCTIONS_H
#include <QString>
+#include <QMessageBox>
void call_error(QString message);
void call_notice(QString message);
diff --git a/discord_rich_presence.cpp b/discord_rich_presence.cpp
index bcc0d2af..10f5833e 100644
--- a/discord_rich_presence.cpp
+++ b/discord_rich_presence.cpp
@@ -1,10 +1,5 @@
#include "discord_rich_presence.h"
-#include <cstring>
-#include <ctime>
-
-#include <QDebug>
-
namespace AttorneyOnline {
Discord::Discord()
diff --git a/discord_rich_presence.h b/discord_rich_presence.h
index 3c9f2bda..348d36fa 100644
--- a/discord_rich_presence.h
+++ b/discord_rich_presence.h
@@ -1,6 +1,9 @@
#ifndef DISCORD_RICH_PRESENCE_H
#define DISCORD_RICH_PRESENCE_H
+#include <cstring>
+#include <ctime>
+#include <QDebug>
#include <string>
#include <discord-rpc.h>