mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
refs #432 Doxygen, formatting, added new file types in *.pro
Minor tweaks: * GUI infobar minimum size * toogle lock protected * removed unused function * ASSERT_X * object name
This commit is contained in:
@@ -28,7 +28,6 @@ namespace BlackGui
|
||||
{
|
||||
CAudioSetupComponent::CAudioSetupComponent(QWidget *parent) :
|
||||
QFrame(parent),
|
||||
CEnableForRuntime(nullptr, false),
|
||||
ui(new Ui::CAudioSetupComponent)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
@@ -45,11 +44,11 @@ namespace BlackGui
|
||||
|
||||
void CAudioSetupComponent::runtimeHasBeenSet()
|
||||
{
|
||||
if (!this->getIContextSettings()) qFatal("Settings missing");
|
||||
Q_ASSERT_X(this->getIContextSettings(), Q_FUNC_INFO, "missing settings");
|
||||
this->connect(this->getIContextSettings(), &IContextSettings::changedSettings, this, &CAudioSetupComponent::ps_changedSettings);
|
||||
|
||||
// based on audio context
|
||||
Q_ASSERT(this->getIContextAudio());
|
||||
Q_ASSERT_X(this->getIContextAudio(), Q_FUNC_INFO, "missing audio");
|
||||
if (this->getIContextAudio())
|
||||
{
|
||||
this->initAudioDeviceLists();
|
||||
|
||||
@@ -53,7 +53,6 @@ namespace BlackGui
|
||||
void ps_onToggleFloating(bool floating);
|
||||
|
||||
private:
|
||||
|
||||
// toggle area on show/hide details
|
||||
void toggleShowHideDetails(bool show, bool considerCurrentSize);
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ namespace BlackGui
|
||||
ui->setupUi(this);
|
||||
this->initInfoArea();
|
||||
this->ps_setTabBarPosition(QTabWidget::North);
|
||||
this->ps_toggleTabBarLocked(true);
|
||||
}
|
||||
|
||||
CCockpitInfoAreaComponent::~CCockpitInfoAreaComponent()
|
||||
|
||||
@@ -66,7 +66,6 @@ namespace BlackGui
|
||||
|
||||
private:
|
||||
BlackGui::CDockWidgetInfoArea *m_parentDockableInfoArea = nullptr; //!< my parent dockable widget
|
||||
|
||||
};
|
||||
}
|
||||
} // namespace
|
||||
|
||||
@@ -34,12 +34,10 @@ namespace BlackGui
|
||||
namespace Components
|
||||
{
|
||||
|
||||
/*!
|
||||
* \brief Component, which provides references to runtime objects
|
||||
* \details Access to runtime allows to encapsualate many aspects of data access and makes
|
||||
* the component widely independent from a central data provideer
|
||||
* \sa BlackCore::CRuntime
|
||||
*/
|
||||
//! Component, which provides references to runtime objects
|
||||
//! \details Access to runtime allows to encapsualate many aspects of data access and makes
|
||||
//! the component widely independent from a central data provideer
|
||||
//! \sa BlackCore::CRuntime
|
||||
class BLACKGUI_EXPORT CEnableForRuntime
|
||||
{
|
||||
public:
|
||||
@@ -119,9 +117,6 @@ namespace BlackGui
|
||||
//! \copydoc CRuntime::hasRemoteApplicationContext
|
||||
bool hasRemoteApplicationContext() const { return this->m_runtime->hasRemoteApplicationContext(); }
|
||||
|
||||
//! \copydoc CRuntime::canPingApplicationContext
|
||||
bool canPingApplicationContext() const { return this->m_runtime->canPingApplicationContext(); }
|
||||
|
||||
//! Play a given notification sound
|
||||
void playNotifcationSound(BlackSound::CNotificationSounds::Notification notification) const;
|
||||
|
||||
|
||||
@@ -6,10 +6,16 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>415</width>
|
||||
<width>184</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Info status bar</string>
|
||||
</property>
|
||||
|
||||
Reference in New Issue
Block a user