added the courtroom class
This commit is contained in:
		
							parent
							
								
									ee0b796ff8
								
							
						
					
					
						commit
						f42417f9e2
					
				@ -27,7 +27,8 @@ SOURCES += main.cpp\
 | 
				
			|||||||
    aopacket.cpp \
 | 
					    aopacket.cpp \
 | 
				
			||||||
    packet_distribution.cpp \
 | 
					    packet_distribution.cpp \
 | 
				
			||||||
    hex_functions.cpp \
 | 
					    hex_functions.cpp \
 | 
				
			||||||
    encryption_functions.cpp
 | 
					    encryption_functions.cpp \
 | 
				
			||||||
 | 
					    courtroom.cpp
 | 
				
			||||||
 | 
					
 | 
				
			||||||
HEADERS  += lobby.h \
 | 
					HEADERS  += lobby.h \
 | 
				
			||||||
    text_file_functions.h \
 | 
					    text_file_functions.h \
 | 
				
			||||||
@ -42,4 +43,5 @@ HEADERS  += lobby.h \
 | 
				
			|||||||
    datatypes.h \
 | 
					    datatypes.h \
 | 
				
			||||||
    aopacket.h \
 | 
					    aopacket.h \
 | 
				
			||||||
    hex_functions.h \
 | 
					    hex_functions.h \
 | 
				
			||||||
    encryption_functions.h
 | 
					    encryption_functions.h \
 | 
				
			||||||
 | 
					    courtroom.h
 | 
				
			||||||
 | 
				
			|||||||
@ -5,11 +5,11 @@
 | 
				
			|||||||
#include "datatypes.h"
 | 
					#include "datatypes.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <QApplication>
 | 
					#include <QApplication>
 | 
				
			||||||
#include <QMainWindow>
 | 
					 | 
				
			||||||
#include <QVector>
 | 
					#include <QVector>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class NetworkManager;
 | 
					class NetworkManager;
 | 
				
			||||||
class Lobby;
 | 
					class Lobby;
 | 
				
			||||||
 | 
					class Courtroom;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class AOApplication : public QApplication
 | 
					class AOApplication : public QApplication
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										8
									
								
								courtroom.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								courtroom.cpp
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,8 @@
 | 
				
			|||||||
 | 
					#include "courtroom.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "aoapplication.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Courtroom::Courtroom(AOApplication *parent) : QMainWindow(parent)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										19
									
								
								courtroom.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								courtroom.h
									
									
									
									
									
										Normal 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
 | 
				
			||||||
							
								
								
									
										8
									
								
								lobby.h
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								lobby.h
									
									
									
									
									
								
							@ -1,16 +1,16 @@
 | 
				
			|||||||
#ifndef LOBBY_H
 | 
					#ifndef LOBBY_H
 | 
				
			||||||
#define LOBBY_H
 | 
					#define LOBBY_H
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include "aoimage.h"
 | 
				
			||||||
 | 
					#include "aobutton.h"
 | 
				
			||||||
 | 
					#include "aopacket.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <QMainWindow>
 | 
					#include <QMainWindow>
 | 
				
			||||||
#include <QListWidget>
 | 
					#include <QListWidget>
 | 
				
			||||||
#include <QLabel>
 | 
					#include <QLabel>
 | 
				
			||||||
#include <QPlainTextEdit>
 | 
					#include <QPlainTextEdit>
 | 
				
			||||||
#include <QLineEdit>
 | 
					#include <QLineEdit>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "aoimage.h"
 | 
					 | 
				
			||||||
#include "aobutton.h"
 | 
					 | 
				
			||||||
#include "aopacket.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
class AOApplication;
 | 
					class AOApplication;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Lobby : public QMainWindow
 | 
					class Lobby : public QMainWindow
 | 
				
			||||||
 | 
				
			|||||||
@ -1,9 +1,10 @@
 | 
				
			|||||||
#include <QDir>
 | 
					#include "path_functions.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "global_variables.h"
 | 
					#include "global_variables.h"
 | 
				
			||||||
#include "text_file_functions.h"
 | 
					#include "text_file_functions.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "path_functions.h"
 | 
					#include <QDir>
 | 
				
			||||||
 | 
					#include <QDebug>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
QString get_base_path(){
 | 
					QString get_base_path(){
 | 
				
			||||||
  return (QDir::currentPath() + "/base/");
 | 
					  return (QDir::currentPath() + "/base/");
 | 
				
			||||||
@ -18,5 +19,3 @@ QString get_default_theme_path()
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  return get_base_path() + "themes/default/";
 | 
					  return get_base_path() + "themes/default/";
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user