mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
refs #745, improved own model set dialog
* allow to consolidate data * display either preferences or all distributors * builder can consolidate * get model set from mapping component
This commit is contained in:
@@ -7,9 +7,10 @@
|
|||||||
* contained in the LICENSE file.
|
* contained in the LICENSE file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "blackcore/application.h"
|
#include "application.h"
|
||||||
#include "blackcore/modelsetbuilder.h"
|
#include "modelsetbuilder.h"
|
||||||
#include "blackcore/webdataservices.h"
|
#include "webdataservices.h"
|
||||||
|
#include "db/databaseutils.h"
|
||||||
#include "blackmisc/aviation/aircrafticaocodelist.h"
|
#include "blackmisc/aviation/aircrafticaocodelist.h"
|
||||||
#include "blackmisc/simulation/aircraftmodel.h"
|
#include "blackmisc/simulation/aircraftmodel.h"
|
||||||
|
|
||||||
@@ -18,6 +19,7 @@
|
|||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
|
|
||||||
using namespace BlackMisc::Simulation;
|
using namespace BlackMisc::Simulation;
|
||||||
|
using namespace BlackCore::Db;
|
||||||
|
|
||||||
namespace BlackCore
|
namespace BlackCore
|
||||||
{
|
{
|
||||||
@@ -31,8 +33,9 @@ namespace BlackCore
|
|||||||
if (models.isEmpty()) { return CAircraftModelList(); }
|
if (models.isEmpty()) { return CAircraftModelList(); }
|
||||||
CAircraftModelList modelSet;
|
CAircraftModelList modelSet;
|
||||||
|
|
||||||
// I avoid and empty distributor set wipes out everything
|
// Select by distributor:
|
||||||
if (oprions.testFlag(FilterDistributos) && !distributors.isEmpty())
|
// I avoid an empty distributor set because it wipes out everything
|
||||||
|
if (oprions.testFlag(GivenDistributorsOnly) && !distributors.isEmpty())
|
||||||
{
|
{
|
||||||
modelSet = models.findByDistributors(distributors);
|
modelSet = models.findByDistributors(distributors);
|
||||||
}
|
}
|
||||||
@@ -41,6 +44,7 @@ namespace BlackCore
|
|||||||
modelSet = models;
|
modelSet = models;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Only DB data?
|
||||||
if (oprions.testFlag(OnlyDbData))
|
if (oprions.testFlag(OnlyDbData))
|
||||||
{
|
{
|
||||||
modelSet.removeObjectsWithoutDbKey();
|
modelSet.removeObjectsWithoutDbKey();
|
||||||
@@ -57,16 +61,22 @@ namespace BlackCore
|
|||||||
modelSet = modelSet.findWithKnownAircraftDesignator();
|
modelSet = modelSet.findWithKnownAircraftDesignator();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Include only
|
||||||
modelSet = modelSet.matchesSimulator(simulator);
|
modelSet = modelSet.matchesSimulator(simulator);
|
||||||
modelSet.setModelMode(CAircraftModel::Include); // in sets we only include, exclude means not present in set
|
modelSet.setModelMode(CAircraftModel::Include); // in sets we only include, exclude means not present in set
|
||||||
|
|
||||||
if (oprions.testFlag(Incremental))
|
if (oprions.testFlag(Incremental))
|
||||||
{
|
{
|
||||||
if (currentSet.isEmpty()) { return modelSet; }
|
if (!currentSet.isEmpty())
|
||||||
CAircraftModelList copy(currentSet);
|
{
|
||||||
copy.replaceOrAddModelsWithString(modelSet, Qt::CaseInsensitive); // incremental
|
// update in full set
|
||||||
|
CAircraftModelList copy(currentSet);
|
||||||
|
copy.replaceOrAddModelsWithString(modelSet, Qt::CaseInsensitive);
|
||||||
|
modelSet = copy;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// sort by preferences if applicable
|
||||||
modelSet.resetOrder();
|
modelSet.resetOrder();
|
||||||
if (oprions.testFlag(SortByDistributors))
|
if (oprions.testFlag(SortByDistributors))
|
||||||
{
|
{
|
||||||
@@ -74,6 +84,13 @@ namespace BlackCore
|
|||||||
modelSet.sortBy(&CAircraftModel::getDistributorOrder);
|
modelSet.sortBy(&CAircraftModel::getDistributorOrder);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DB consolidation
|
||||||
|
if (oprions.testFlag(ConsolidateWithDb))
|
||||||
|
{
|
||||||
|
CDatabaseUtils::consolidateModelsWithDbData(modelSet, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
// result
|
||||||
return modelSet;
|
return modelSet;
|
||||||
}
|
}
|
||||||
} // ns
|
} // ns
|
||||||
|
|||||||
@@ -35,11 +35,12 @@ namespace BlackCore
|
|||||||
enum BuilderFlag
|
enum BuilderFlag
|
||||||
{
|
{
|
||||||
NoOptions = 0,
|
NoOptions = 0,
|
||||||
FilterDistributos = 1 << 0,
|
GivenDistributorsOnly = 1 << 0,
|
||||||
OnlyDbData = 1 << 1,
|
OnlyDbData = 1 << 1,
|
||||||
OnlyDbIcaoCodes = 1 << 2,
|
OnlyDbIcaoCodes = 1 << 2,
|
||||||
Incremental = 1 << 3,
|
Incremental = 1 << 3,
|
||||||
SortByDistributors = 1 << 4
|
SortByDistributors = 1 << 4,
|
||||||
|
ConsolidateWithDb = 1 << 5
|
||||||
};
|
};
|
||||||
Q_DECLARE_FLAGS(Builder, BuilderFlag)
|
Q_DECLARE_FLAGS(Builder, BuilderFlag)
|
||||||
|
|
||||||
@@ -51,7 +52,7 @@ namespace BlackCore
|
|||||||
const BlackMisc::Simulation::CSimulatorInfo &simulator,
|
const BlackMisc::Simulation::CSimulatorInfo &simulator,
|
||||||
const BlackMisc::Simulation::CAircraftModelList &models,
|
const BlackMisc::Simulation::CAircraftModelList &models,
|
||||||
const BlackMisc::Simulation::CAircraftModelList ¤tSet, Builder oprions,
|
const BlackMisc::Simulation::CAircraftModelList ¤tSet, Builder oprions,
|
||||||
const BlackMisc::Simulation::CDistributorList &onlyByDistributors = {}) const;
|
const BlackMisc::Simulation::CDistributorList &distributors = {}) const;
|
||||||
};
|
};
|
||||||
} // ns
|
} // ns
|
||||||
|
|
||||||
|
|||||||
@@ -814,6 +814,11 @@ namespace BlackGui
|
|||||||
ui->comp_OwnModelSet->setModelSetSimulator(simulator);
|
ui->comp_OwnModelSet->setModelSetSimulator(simulator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CAircraftModelList CDbMappingComponent::getOwnModelSet() const
|
||||||
|
{
|
||||||
|
return ui->comp_OwnModelSet->getModelSet();
|
||||||
|
}
|
||||||
|
|
||||||
CStatusMessage CDbMappingComponent::stashModel(const CAircraftModel &model, bool replace)
|
CStatusMessage CDbMappingComponent::stashModel(const CAircraftModel &model, bool replace)
|
||||||
{
|
{
|
||||||
return ui->comp_StashAircraft->stashModel(model, replace);
|
return ui->comp_StashAircraft->stashModel(model, replace);
|
||||||
|
|||||||
@@ -148,11 +148,14 @@ namespace BlackGui
|
|||||||
int getOwnModelsCount() const;
|
int getOwnModelsCount() const;
|
||||||
//! @}
|
//! @}
|
||||||
|
|
||||||
// ---------------- own models -----------------
|
// ---------------- own model set -----------------
|
||||||
|
|
||||||
//! Set simulator for own models
|
//! Set simulator for own models
|
||||||
void setOwnModelSetSimulator(const BlackMisc::Simulation::CSimulatorInfo &simulator);
|
void setOwnModelSetSimulator(const BlackMisc::Simulation::CSimulatorInfo &simulator);
|
||||||
|
|
||||||
|
//! Own model set
|
||||||
|
BlackMisc::Simulation::CAircraftModelList getOwnModelSet() const;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
//! \copydoc CDbStashComponent::stashModel
|
//! \copydoc CDbStashComponent::stashModel
|
||||||
BlackMisc::CStatusMessage stashModel(const BlackMisc::Simulation::CAircraftModel &model, bool replace = false);
|
BlackMisc::CStatusMessage stashModel(const BlackMisc::Simulation::CAircraftModel &model, bool replace = false);
|
||||||
|
|||||||
@@ -31,6 +31,5 @@ namespace BlackGui
|
|||||||
if (!m) { return; }
|
if (!m) { return; }
|
||||||
m_mappingComponent = m;
|
m_mappingComponent = m;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // ns
|
} // ns
|
||||||
} // ns
|
} // ns
|
||||||
|
|||||||
@@ -57,7 +57,8 @@ namespace BlackGui
|
|||||||
this->m_simulatorInfo = this->getMappingComponent()->getOwnModelsSimulator();
|
this->m_simulatorInfo = this->getMappingComponent()->getOwnModelsSimulator();
|
||||||
Q_ASSERT_X(this->m_simulatorInfo.isSingleSimulator(), Q_FUNC_INFO, "Need single simulator");
|
Q_ASSERT_X(this->m_simulatorInfo.isSingleSimulator(), Q_FUNC_INFO, "Need single simulator");
|
||||||
ui->form_OwnModelSet->setSimulator(this->m_simulatorInfo);
|
ui->form_OwnModelSet->setSimulator(this->m_simulatorInfo);
|
||||||
this->ui->form_OwnModelSet->reloadData();
|
ui->form_OwnModelSet->reloadData();
|
||||||
|
this->m_modelSet = this->getMappingComponent()->getOwnModelSet();
|
||||||
}
|
}
|
||||||
|
|
||||||
int CDbOwnModelSetDialog::exec()
|
int CDbOwnModelSetDialog::exec()
|
||||||
@@ -118,22 +119,30 @@ namespace BlackGui
|
|||||||
CAircraftModelList CDbOwnModelSetDialog::buildSet(const CSimulatorInfo &simulator, const CAircraftModelList ¤tSet)
|
CAircraftModelList CDbOwnModelSetDialog::buildSet(const CSimulatorInfo &simulator, const CAircraftModelList ¤tSet)
|
||||||
{
|
{
|
||||||
Q_ASSERT_X(this->getMappingComponent(), Q_FUNC_INFO, "missing mapping component");
|
Q_ASSERT_X(this->getMappingComponent(), Q_FUNC_INFO, "missing mapping component");
|
||||||
const bool selectedProviders = this->ui->form_OwnModelSet->useSelectedDistributors();
|
const bool givenDistributorsOnly = !ui->form_OwnModelSet->optionUseAllDistributors();
|
||||||
const bool dbDataOnly = this->ui->form_OwnModelSet->dbDataOnly();
|
const bool dbDataOnly = ui->form_OwnModelSet->optionDbDataOnly();
|
||||||
const bool dbIcaoOnly = this->ui->form_OwnModelSet->dbIcaoCodesOnly();
|
const bool dbIcaoOnly = ui->form_OwnModelSet->optionDbIcaoCodesOnly();
|
||||||
const bool incremnental = this->ui->form_OwnModelSet->incrementalBuild();
|
const bool incremnental = ui->form_OwnModelSet->optionIncrementalBuild();
|
||||||
|
const bool sortByDistributor = ui->form_OwnModelSet->optionSortByDistributorPreferences();
|
||||||
|
const bool consolidateWithDb = ui->form_OwnModelSet->optionConsolidateModelSetWithDbData();
|
||||||
|
|
||||||
const CAircraftModelList models = this->getMappingComponent()->getOwnModels();
|
|
||||||
this->m_simulatorInfo = this->getMappingComponent()->getOwnModelsSimulator();
|
this->m_simulatorInfo = this->getMappingComponent()->getOwnModelsSimulator();
|
||||||
const CDistributorList distributors = selectedProviders ?
|
const CAircraftModelList models = this->getMappingComponent()->getOwnModels();
|
||||||
ui->form_OwnModelSet->getSelectedDistributors() :
|
const CDistributorList distributors = ui->form_OwnModelSet->getDistributorsBasedOnOptions();
|
||||||
ui->form_OwnModelSet->getDistributorsFromPreferences();
|
|
||||||
|
if (givenDistributorsOnly && distributors.isEmpty())
|
||||||
|
{
|
||||||
|
// nothing to do, keep current set
|
||||||
|
return currentSet;
|
||||||
|
}
|
||||||
|
|
||||||
const CModelSetBuilder builder(this);
|
const CModelSetBuilder builder(this);
|
||||||
CModelSetBuilder::Builder options = selectedProviders ? CModelSetBuilder::FilterDistributos : CModelSetBuilder::NoOptions;
|
CModelSetBuilder::Builder options = givenDistributorsOnly ? CModelSetBuilder::GivenDistributorsOnly : CModelSetBuilder::NoOptions;
|
||||||
if (dbDataOnly) { options |= CModelSetBuilder::OnlyDbData; }
|
if (dbDataOnly) { options |= CModelSetBuilder::OnlyDbData; }
|
||||||
if (dbIcaoOnly) { options |= CModelSetBuilder::OnlyDbIcaoCodes; }
|
if (dbIcaoOnly) { options |= CModelSetBuilder::OnlyDbIcaoCodes; }
|
||||||
if (incremnental) { options |= CModelSetBuilder::Incremental; }
|
if (incremnental) { options |= CModelSetBuilder::Incremental; }
|
||||||
if (ui->form_OwnModelSet->hasDistributorPreferences()) { options |= CModelSetBuilder::SortByDistributors; }
|
if (sortByDistributor) { options |= CModelSetBuilder::SortByDistributors; }
|
||||||
|
if (consolidateWithDb) { options |= CModelSetBuilder::ConsolidateWithDb; }
|
||||||
return builder.buildModelSet(simulator, models, currentSet, options, distributors);
|
return builder.buildModelSet(simulator, models, currentSet, options, distributors);
|
||||||
}
|
}
|
||||||
} // ns
|
} // ns
|
||||||
|
|||||||
@@ -51,10 +51,13 @@ namespace BlackGui
|
|||||||
//! Last build set
|
//! Last build set
|
||||||
const BlackMisc::Simulation::CAircraftModelList &getModelSet() const { return m_modelSet; }
|
const BlackMisc::Simulation::CAircraftModelList &getModelSet() const { return m_modelSet; }
|
||||||
|
|
||||||
|
//! Init last set
|
||||||
|
void setModelSet(const BlackMisc::Simulation::CAircraftModelList &models) { m_modelSet = models; }
|
||||||
|
|
||||||
//! Simulator info
|
//! Simulator info
|
||||||
const BlackMisc::Simulation::CSimulatorInfo &getSimulatorInfo() const { return m_simulatorInfo; }
|
const BlackMisc::Simulation::CSimulatorInfo &getSimulatorInfo() const { return m_simulatorInfo; }
|
||||||
|
|
||||||
//! Reload data
|
//! Reload data e.g. current model set and simulator
|
||||||
void reloadData();
|
void reloadData();
|
||||||
|
|
||||||
//! Exec and display simulator
|
//! Exec and display simulator
|
||||||
|
|||||||
@@ -58,21 +58,36 @@ namespace BlackGui
|
|||||||
this->initDistributorDisplay();
|
this->initDistributorDisplay();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool COwnModelSetForm::useSelectedDistributors() const
|
bool COwnModelSetForm::optionUseSelectedDistributors() const
|
||||||
{
|
{
|
||||||
return this->ui->rb_SelectedDistributors->isChecked();
|
return ui->rb_DistributorsSelected->isChecked();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool COwnModelSetForm::dbDataOnly() const
|
bool COwnModelSetForm::optionUseAllDistributors() const
|
||||||
{
|
{
|
||||||
return this->ui->rb_DbDataOnly->isChecked();
|
return ui->rb_DistributorsAll->isChecked();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool COwnModelSetForm::incrementalBuild() const
|
bool COwnModelSetForm::optionDbDataOnly() const
|
||||||
|
{
|
||||||
|
return ui->rb_DbDataOnly->isChecked();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool COwnModelSetForm::optionIncrementalBuild() const
|
||||||
{
|
{
|
||||||
return ui->rb_Incremental->isChecked();
|
return ui->rb_Incremental->isChecked();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool COwnModelSetForm::optionSortByDistributorPreferences() const
|
||||||
|
{
|
||||||
|
return ui->cb_SortByPreferences->isChecked() && this->hasDistributorPreferences();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool COwnModelSetForm::optionConsolidateModelSetWithDbData() const
|
||||||
|
{
|
||||||
|
return ui->cb_ConsolidateModelSet->isChecked();
|
||||||
|
}
|
||||||
|
|
||||||
void COwnModelSetForm::ps_preferencesChanged()
|
void COwnModelSetForm::ps_preferencesChanged()
|
||||||
{
|
{
|
||||||
// void
|
// void
|
||||||
@@ -120,6 +135,14 @@ namespace BlackGui
|
|||||||
{
|
{
|
||||||
ui->tvp_Distributors->setDistributorMode(hasPreferences ? CDistributorListModel::MinimalWithOrder : CDistributorListModel::Minimal);
|
ui->tvp_Distributors->setDistributorMode(hasPreferences ? CDistributorListModel::MinimalWithOrder : CDistributorListModel::Minimal);
|
||||||
ui->tvp_Distributors->fullResizeToContents();
|
ui->tvp_Distributors->fullResizeToContents();
|
||||||
|
if (hasPreferences)
|
||||||
|
{
|
||||||
|
ui->tvp_Distributors->setSorting(CDistributor::IndexOrder);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ui->tvp_Distributors->setSorting(CDistributor::IndexDbStringKey);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CDistributorList COwnModelSetForm::getDistributorsFromPreferences() const
|
CDistributorList COwnModelSetForm::getDistributorsFromPreferences() const
|
||||||
@@ -137,9 +160,18 @@ namespace BlackGui
|
|||||||
return sGui->getWebDataServices()->getDistributors().matchesSimulator(this->m_simulator);
|
return sGui->getWebDataServices()->getDistributors().matchesSimulator(this->m_simulator);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool COwnModelSetForm::dbIcaoCodesOnly() const
|
CDistributorList COwnModelSetForm::getDistributorsBasedOnOptions() const
|
||||||
{
|
{
|
||||||
return this->ui->rb_DbIcaoCodesOnly->isChecked();
|
if (ui->rb_DistributorsAll->isChecked()) { return this->getAllDistributors(); }
|
||||||
|
if (ui->rb_DistributorsSelected->isChecked()) { return this->getSelectedDistributors(); }
|
||||||
|
if (ui->rb_DistributorsFromBelow->isChecked()) { return this->getShownDistributors(); }
|
||||||
|
Q_ASSERT_X(false, Q_FUNC_INFO, "Wrong option");
|
||||||
|
return CDistributorList();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool COwnModelSetForm::optionDbIcaoCodesOnly() const
|
||||||
|
{
|
||||||
|
return ui->rb_DbIcaoCodesOnly->isChecked();
|
||||||
}
|
}
|
||||||
|
|
||||||
CDistributorList COwnModelSetForm::getSelectedDistributors() const
|
CDistributorList COwnModelSetForm::getSelectedDistributors() const
|
||||||
@@ -147,6 +179,11 @@ namespace BlackGui
|
|||||||
return ui->tvp_Distributors->selectedObjects();
|
return ui->tvp_Distributors->selectedObjects();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CDistributorList COwnModelSetForm::getShownDistributors() const
|
||||||
|
{
|
||||||
|
return ui->tvp_Distributors->containerOrFilteredContainer();
|
||||||
|
}
|
||||||
|
|
||||||
void COwnModelSetForm::setSimulator(const CSimulatorInfo &simulator)
|
void COwnModelSetForm::setSimulator(const CSimulatorInfo &simulator)
|
||||||
{
|
{
|
||||||
Q_ASSERT_X(simulator.isSingleSimulator(), Q_FUNC_INFO, "Need single simulator");
|
Q_ASSERT_X(simulator.isSingleSimulator(), Q_FUNC_INFO, "Need single simulator");
|
||||||
|
|||||||
@@ -41,23 +41,35 @@ namespace BlackGui
|
|||||||
//! Reload data
|
//! Reload data
|
||||||
void reloadData();
|
void reloadData();
|
||||||
|
|
||||||
//! Selected providers?
|
|
||||||
bool useSelectedDistributors() const;
|
|
||||||
|
|
||||||
//! Get selected providers
|
|
||||||
BlackMisc::Simulation::CDistributorList getSelectedDistributors() const;
|
|
||||||
|
|
||||||
//! Current simulator
|
//! Current simulator
|
||||||
void setSimulator(const BlackMisc::Simulation::CSimulatorInfo &simulator);
|
void setSimulator(const BlackMisc::Simulation::CSimulatorInfo &simulator);
|
||||||
|
|
||||||
|
//! Selected distributors?
|
||||||
|
bool optionUseSelectedDistributors() const;
|
||||||
|
|
||||||
|
//! All distributors?
|
||||||
|
bool optionUseAllDistributors() const;
|
||||||
|
|
||||||
//! Only DB data
|
//! Only DB data
|
||||||
bool dbDataOnly() const;
|
bool optionDbDataOnly() const;
|
||||||
|
|
||||||
//! DB ICAO codes
|
//! DB ICAO codes
|
||||||
bool dbIcaoCodesOnly() const;
|
bool optionDbIcaoCodesOnly() const;
|
||||||
|
|
||||||
//! Request incremental build
|
//! Request incremental build
|
||||||
bool incrementalBuild() const;
|
bool optionIncrementalBuild() const;
|
||||||
|
|
||||||
|
//! Sort by distributor preferences
|
||||||
|
bool optionSortByDistributorPreferences() const;
|
||||||
|
|
||||||
|
//! Consolidate with DB data?
|
||||||
|
bool optionConsolidateModelSetWithDbData() const;
|
||||||
|
|
||||||
|
//! Get selected distributors
|
||||||
|
BlackMisc::Simulation::CDistributorList getSelectedDistributors() const;
|
||||||
|
|
||||||
|
//! Get shown distributors
|
||||||
|
BlackMisc::Simulation::CDistributorList getShownDistributors() const;
|
||||||
|
|
||||||
//! Distributors from preferences
|
//! Distributors from preferences
|
||||||
BlackMisc::Simulation::CDistributorList getDistributorsFromPreferences() const;
|
BlackMisc::Simulation::CDistributorList getDistributorsFromPreferences() const;
|
||||||
@@ -65,6 +77,9 @@ namespace BlackGui
|
|||||||
//! All distributors
|
//! All distributors
|
||||||
BlackMisc::Simulation::CDistributorList getAllDistributors() const;
|
BlackMisc::Simulation::CDistributorList getAllDistributors() const;
|
||||||
|
|
||||||
|
//! Get distributors based on options
|
||||||
|
BlackMisc::Simulation::CDistributorList getDistributorsBasedOnOptions() const;
|
||||||
|
|
||||||
//! Preferences for given simulator?
|
//! Preferences for given simulator?
|
||||||
bool hasDistributorPreferences() const;
|
bool hasDistributorPreferences() const;
|
||||||
|
|
||||||
|
|||||||
@@ -74,19 +74,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="2">
|
|
||||||
<widget class="QRadioButton" name="rb_AllDistributors">
|
|
||||||
<property name="text">
|
|
||||||
<string>all</string>
|
|
||||||
</property>
|
|
||||||
<property name="checked">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<attribute name="buttonGroup">
|
|
||||||
<string notr="true">bg_Distributors</string>
|
|
||||||
</attribute>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QLabel" name="lbl_Mode">
|
<widget class="QLabel" name="lbl_Mode">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@@ -140,7 +127,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="1">
|
<item row="3" column="1">
|
||||||
<widget class="QRadioButton" name="rb_SelectedDistributors">
|
<widget class="QRadioButton" name="rb_DistributorsSelected">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>selected</string>
|
<string>selected</string>
|
||||||
</property>
|
</property>
|
||||||
@@ -209,6 +196,29 @@
|
|||||||
</attribute>
|
</attribute>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="3" column="3">
|
||||||
|
<widget class="QRadioButton" name="rb_DistributorsAll">
|
||||||
|
<property name="text">
|
||||||
|
<string>all</string>
|
||||||
|
</property>
|
||||||
|
<property name="checked">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<attribute name="buttonGroup">
|
||||||
|
<string notr="true">bg_Distributors</string>
|
||||||
|
</attribute>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="2">
|
||||||
|
<widget class="QRadioButton" name="rb_DistributorsFromBelow">
|
||||||
|
<property name="text">
|
||||||
|
<string>all from below</string>
|
||||||
|
</property>
|
||||||
|
<attribute name="buttonGroup">
|
||||||
|
<string notr="true">bg_Distributors</string>
|
||||||
|
</attribute>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@@ -245,16 +255,15 @@
|
|||||||
<tabstop>rb_DbDataOnly</tabstop>
|
<tabstop>rb_DbDataOnly</tabstop>
|
||||||
<tabstop>rb_DbIcaoCodesOnly</tabstop>
|
<tabstop>rb_DbIcaoCodesOnly</tabstop>
|
||||||
<tabstop>rb_WithIcaoData</tabstop>
|
<tabstop>rb_WithIcaoData</tabstop>
|
||||||
<tabstop>rb_SelectedDistributors</tabstop>
|
<tabstop>rb_DistributorsSelected</tabstop>
|
||||||
<tabstop>rb_AllDistributors</tabstop>
|
|
||||||
<tabstop>tvp_Distributors</tabstop>
|
<tabstop>tvp_Distributors</tabstop>
|
||||||
</tabstops>
|
</tabstops>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections/>
|
<connections/>
|
||||||
<buttongroups>
|
<buttongroups>
|
||||||
<buttongroup name="bg_Distributors"/>
|
|
||||||
<buttongroup name="bg_Mode"/>
|
<buttongroup name="bg_Mode"/>
|
||||||
<buttongroup name="bg_SourceSet"/>
|
|
||||||
<buttongroup name="bg_DisplayedDistributors"/>
|
<buttongroup name="bg_DisplayedDistributors"/>
|
||||||
|
<buttongroup name="bg_Distributors"/>
|
||||||
|
<buttongroup name="bg_SourceSet"/>
|
||||||
</buttongroups>
|
</buttongroups>
|
||||||
</ui>
|
</ui>
|
||||||
|
|||||||
Reference in New Issue
Block a user