mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-25 16:13:54 -07:00
Clang-format (#3028)
* 1/3 Add .clang-format file and travis compilation check * 2/3 Run clang-format * 3/3 Fix compilation problems due to include reordering * 3bis/3 AfterControlStatement: false
This commit is contained in:
parent
8dbdd24c8e
commit
b29bd9e070
272 changed files with 13378 additions and 9535 deletions
|
|
@ -1,10 +1,10 @@
|
|||
#ifndef TAB_SERVER_H
|
||||
#define TAB_SERVER_H
|
||||
|
||||
#include <QGroupBox>
|
||||
#include <QTreeWidget>
|
||||
#include <QTextBrowser>
|
||||
#include "tab.h"
|
||||
#include <QGroupBox>
|
||||
#include <QTextBrowser>
|
||||
#include <QTreeWidget>
|
||||
|
||||
class AbstractClient;
|
||||
class QTextEdit;
|
||||
|
|
@ -18,7 +18,8 @@ class Response;
|
|||
class ServerInfo_Room;
|
||||
class CommandContainer;
|
||||
|
||||
class RoomSelector : public QGroupBox {
|
||||
class RoomSelector : public QGroupBox
|
||||
{
|
||||
Q_OBJECT
|
||||
private:
|
||||
QTreeWidget *roomList;
|
||||
|
|
@ -30,12 +31,14 @@ private slots:
|
|||
void joinClicked();
|
||||
signals:
|
||||
void joinRoomRequest(int, bool setCurrent);
|
||||
|
||||
public:
|
||||
RoomSelector(AbstractClient *_client, QWidget *parent = 0);
|
||||
void retranslateUi();
|
||||
};
|
||||
|
||||
class TabServer : public Tab {
|
||||
class TabServer : public Tab
|
||||
{
|
||||
Q_OBJECT
|
||||
signals:
|
||||
void roomJoined(const ServerInfo_Room &info, bool setCurrent);
|
||||
|
|
@ -43,15 +46,20 @@ private slots:
|
|||
void processServerMessageEvent(const Event_ServerMessage &event);
|
||||
void joinRoom(int id, bool setCurrent);
|
||||
void joinRoomFinished(const Response &resp, const CommandContainer &commandContainer, const QVariant &extraData);
|
||||
|
||||
private:
|
||||
AbstractClient *client;
|
||||
RoomSelector *roomSelector;
|
||||
QTextBrowser *serverInfoBox;
|
||||
bool shouldEmitUpdate = false;
|
||||
|
||||
public:
|
||||
TabServer(TabSupervisor *_tabSupervisor, AbstractClient *_client, QWidget *parent = 0);
|
||||
void retranslateUi();
|
||||
QString getTabText() const { return tr("Server"); }
|
||||
QString getTabText() const
|
||||
{
|
||||
return tr("Server");
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue