Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI|Client: Removed old Control Panel, settings now in the Appearance …
…editor Added a new panel-derived widget called FoldPanelWidget that supports embedded, folding groups. This is used for settings groups in the Renderer Appearance editor.
- Loading branch information
Showing
31 changed files
with
1,013 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
doomsday/client/include/ui/editors/rendererappearanceeditor.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/** @file rendererappearanceeditor.h | ||
* | ||
* @authors Copyright (c) 2013 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_RENDERERAPPEARANCEEDITOR_H | ||
#define DENG_CLIENT_RENDERERAPPEARANCEEDITOR_H | ||
|
||
#include "ui/widgets/panelwidget.h" | ||
|
||
/** | ||
* Editor for modifying the settings for the renderer's visual appearance. | ||
* | ||
* Automatically installs itself into the main window's right sidebar. | ||
* | ||
* @see ClientApp::rendererAppearanceSettings() | ||
*/ | ||
class RendererAppearanceEditor : public PanelWidget | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
RendererAppearanceEditor(); | ||
|
||
public slots: | ||
void showRendererSettings(); | ||
|
||
protected: | ||
void preparePanelForOpening(); | ||
void panelDismissed(); | ||
|
||
private: | ||
DENG2_PRIVATE(d) | ||
}; | ||
|
||
#endif // DENG_CLIENT_RENDERERAPPEARANCEEDITOR_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/** @file foldpanelwidget.h Folding panel. | ||
* | ||
* @authors Copyright (c) 2013 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_FOLDPANELWIDGET_H | ||
#define DENG_CLIENT_FOLDPANELWIDGET_H | ||
|
||
#include "panelwidget.h" | ||
#include "buttonwidget.h" | ||
|
||
/** | ||
* Folding panel. | ||
* | ||
* You should first set the container of the folding panel with setContent(). | ||
* This ensures that widgets added to the panel use the appropriate stylist. | ||
* | ||
* When dismissed, the panel contents are GL-deinitialized and removed from | ||
* the widget tree entirely. | ||
* | ||
* FoldPanelWidget creates a title button for toggling the panel open and | ||
* closed. It is the user's responsibility to lay out this button | ||
* appropriately. | ||
*/ | ||
class FoldPanelWidget : public PanelWidget | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
FoldPanelWidget(de::String const &name = ""); | ||
|
||
ButtonWidget &title(); | ||
|
||
void setContent(GuiWidget *content); | ||
|
||
public slots: | ||
void toggleFold(); | ||
|
||
protected: | ||
void preparePanelForOpening(); | ||
void panelDismissed(); | ||
|
||
private: | ||
DENG2_PRIVATE(d) | ||
}; | ||
|
||
#endif // DENG_CLIENT_FOLDPANELWIDGET_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** @file icvarwidget.h Interface for console variable widgets. | ||
* | ||
* @authors Copyright (c) 2013 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_ICVARWIDGET_H | ||
#define DENG_CLIENT_ICVARWIDGET_H | ||
|
||
/** | ||
* Interface for console variable widgets. | ||
*/ | ||
class ICVarWidget | ||
{ | ||
public: | ||
virtual ~ICVarWidget() {} | ||
|
||
virtual void updateFromCVar() = 0; | ||
}; | ||
|
||
#endif // DENG_CLIENT_ICVARWIDGET_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.