Skip to content

Commit

Permalink
UI|Client: Added stub for ServerInfoDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jan 29, 2017
1 parent 96baa72 commit e06eccb
Show file tree
Hide file tree
Showing 9 changed files with 82 additions and 7 deletions.
39 changes: 39 additions & 0 deletions doomsday/apps/client/include/ui/dialogs/serverinfodialog.h
@@ -0,0 +1,39 @@
/** @file serverinfodialog.h Information about a multiplayer server.
*
* @authors Copyright (c) 2017 Jaakko Keränen <jaakko.keranen@iki.fi>
*
* @par License
* GPL: http://www.gnu.org/licenses/gpl.html
*
* <small>This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version. This program is distributed in the hope that it
* will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details. You should have received a copy of the GNU
* General Public License along with this program; if not, see:
* http://www.gnu.org/licenses</small>
*/

#ifndef DENG_CLIENT_UI_SERVERINFODIALOG_H
#define DENG_CLIENT_UI_SERVERINFODIALOG_H

#include <de/DialogWidget>
#include <de/shell/ServerInfo>

/**
* Multiplayer server information and a mini-Shell connection.
*/
class ServerInfoDialog : public de::DialogWidget
{
Q_OBJECT

public:
ServerInfoDialog(de::shell::ServerInfo const &serverInfo);

private:
DENG2_PRIVATE(d)
};

#endif // DENG_CLIENT_UI_SERVERINFODIALOG_H
Expand Up @@ -17,7 +17,7 @@
*/

#include "ui/dialogs/packagecompatibilitydialog.h"
#include "ui/widgets/packageinfodialog.h"
#include "ui/dialogs/packageinfodialog.h"
#include "ui/widgets/packageswidget.h"

#include <doomsday/DoomsdayApp>
Expand Down
Expand Up @@ -16,7 +16,7 @@
* http://www.gnu.org/licenses</small>
*/

#include "ui/widgets/packageinfodialog.h"
#include "ui/dialogs/packageinfodialog.h"
#include "ui/widgets/packagecontentoptionswidget.h"
#include "resource/idtech1image.h"
#include "dd_main.h"
Expand Down
2 changes: 1 addition & 1 deletion doomsday/apps/client/src/ui/dialogs/packagesdialog.cpp
Expand Up @@ -20,7 +20,7 @@
#include "ui/widgets/packageswidget.h"
#include "ui/widgets/homeitemwidget.h"
#include "ui/widgets/homemenuwidget.h"
#include "ui/widgets/packageinfodialog.h"
#include "ui/dialogs/packageinfodialog.h"
#include "resource/idtech1image.h"
#include "ui/clientwindow.h"
#include "clientapp.h"
Expand Down
37 changes: 37 additions & 0 deletions doomsday/apps/client/src/ui/dialogs/serverinfodialog.cpp
@@ -0,0 +1,37 @@
/** @file serverinfodialog.cpp Information about a multiplayer server.
*
* @authors Copyright (c) 2017 Jaakko Keränen <jaakko.keranen@iki.fi>
*
* @par License
* GPL: http://www.gnu.org/licenses/gpl.html
*
* <small>This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version. This program is distributed in the hope that it
* will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details. You should have received a copy of the GNU
* General Public License along with this program; if not, see:
* http://www.gnu.org/licenses</small>
*/

#include "ui/dialogs/serverinfodialog.h"

using namespace de;

DENG_GUI_PIMPL(ServerInfoDialog)
{
shell::ServerInfo serverInfo;

Impl(Public *i, shell::ServerInfo const &sv)
: Base(i)
, serverInfo(sv)
{}
};

ServerInfoDialog::ServerInfoDialog(shell::ServerInfo const &serverInfo)
: d(new Impl(this, serverInfo))
{

}
2 changes: 1 addition & 1 deletion doomsday/apps/client/src/ui/home/packagescolumnwidget.cpp
Expand Up @@ -18,7 +18,7 @@

#include "ui/home/packagescolumnwidget.h"
#include "ui/widgets/packageswidget.h"
#include "ui/widgets/packageinfodialog.h"
#include "ui/dialogs/packageinfodialog.h"
#include "ui/widgets/homeitemwidget.h"
#include "ui/widgets/homemenuwidget.h"

Expand Down
Expand Up @@ -18,7 +18,7 @@

#include "ui/widgets/packagessidebarwidget.h"
#include "ui/widgets/packageswidget.h"
#include "ui/widgets/packageinfodialog.h"
#include "ui/dialogs/packageinfodialog.h"
#include "ui/widgets/homeitemwidget.h"

#include <de/CallbackAction>
Expand Down
3 changes: 1 addition & 2 deletions doomsday/apps/client/src/ui/widgets/packageswidget.cpp
Expand Up @@ -20,7 +20,7 @@
#include "ui/widgets/homeitemwidget.h"
#include "ui/widgets/homemenuwidget.h"
#include "ui/widgets/panelbuttonwidget.h"
#include "ui/widgets/packageinfodialog.h"
#include "ui/dialogs/packageinfodialog.h"
#include "ui/widgets/packagecontentoptionswidget.h"
#include "clientapp.h"

Expand Down Expand Up @@ -66,7 +66,6 @@ PackagesWidget::IPackageStatus::~IPackageStatus() {}

DENG_GUI_PIMPL(PackagesWidget)
, DENG2_OBSERVES(res::Bundles, Identify)
//, DENG2_OBSERVES(DoomsdayApp, FileRefresh)
, public ChildWidgetOrganizer::IWidgetFactory
{
/**
Expand Down

0 comments on commit e06eccb

Please sign in to comment.