added the courtroom class

This commit is contained in:
David Skoland 2017-01-15 20:43:14 +01:00
parent ee0b796ff8
commit f42417f9e2
6 changed files with 39 additions and 11 deletions

View File

@ -27,7 +27,8 @@ SOURCES += main.cpp\
aopacket.cpp \
packet_distribution.cpp \
hex_functions.cpp \
encryption_functions.cpp
encryption_functions.cpp \
courtroom.cpp
HEADERS += lobby.h \
text_file_functions.h \
@ -42,4 +43,5 @@ HEADERS += lobby.h \
datatypes.h \
aopacket.h \
hex_functions.h \
encryption_functions.h
encryption_functions.h \
courtroom.h

View File

@ -5,11 +5,11 @@
#include "datatypes.h"
#include <QApplication>
#include <QMainWindow>
#include <QVector>
class NetworkManager;
class Lobby;
class Courtroom;
class AOApplication : public QApplication
{

8
courtroom.cpp Normal file
View File

@ -0,0 +1,8 @@
#include "courtroom.h"
#include "aoapplication.h"
Courtroom::Courtroom(AOApplication *parent) : QMainWindow(parent)
{
}

19
courtroom.h Normal file
View File

@ -0,0 +1,19 @@
#ifndef COURTROOM_H
#define COURTROOM_H
#include <QMainWindow>
class AOApplication;
class Courtroom : public QMainWindow
{
Q_OBJECT
public:
explicit Courtroom(AOApplication *parent = 0);
signals:
public slots:
};
#endif // COURTROOM_H

View File

@ -1,16 +1,16 @@
#ifndef LOBBY_H
#define LOBBY_H
#include "aoimage.h"
#include "aobutton.h"
#include "aopacket.h"
#include <QMainWindow>
#include <QListWidget>
#include <QLabel>
#include <QPlainTextEdit>
#include <QLineEdit>
#include "aoimage.h"
#include "aobutton.h"
#include "aopacket.h"
class AOApplication;
class Lobby : public QMainWindow

View File

@ -1,9 +1,10 @@
#include <QDir>
#include "path_functions.h"
#include "global_variables.h"
#include "text_file_functions.h"
#include "path_functions.h"
#include <QDir>
#include <QDebug>
QString get_base_path(){
return (QDir::currentPath() + "/base/");
@ -18,5 +19,3 @@ QString get_default_theme_path()
{
return get_base_path() + "themes/default/";
}