mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 18:55:38 +08:00
@@ -8,9 +8,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "aircrafticaofilterbar.h"
|
#include "aircrafticaofilterbar.h"
|
||||||
|
#include "blackgui/uppercasevalidator.h"
|
||||||
#include "ui_aircrafticaofilterbar.h"
|
#include "ui_aircrafticaofilterbar.h"
|
||||||
|
|
||||||
using namespace BlackMisc::Aviation;
|
using namespace BlackMisc::Aviation;
|
||||||
|
using namespace BlackGui;
|
||||||
using namespace BlackGui::Models;
|
using namespace BlackGui::Models;
|
||||||
|
|
||||||
namespace BlackGui
|
namespace BlackGui
|
||||||
@@ -26,6 +28,10 @@ namespace BlackGui
|
|||||||
connect(ui->le_Designator, &QLineEdit::returnPressed, this, &CFilterWidget::triggerFilter);
|
connect(ui->le_Designator, &QLineEdit::returnPressed, this, &CFilterWidget::triggerFilter);
|
||||||
connect(ui->le_Manufacturer, &QLineEdit::returnPressed, this, &CFilterWidget::triggerFilter);
|
connect(ui->le_Manufacturer, &QLineEdit::returnPressed, this, &CFilterWidget::triggerFilter);
|
||||||
connect(ui->le_Description, &QLineEdit::returnPressed, this, &CFilterWidget::triggerFilter);
|
connect(ui->le_Description, &QLineEdit::returnPressed, this, &CFilterWidget::triggerFilter);
|
||||||
|
|
||||||
|
CUpperCaseValidator *ucv = new CUpperCaseValidator(this);
|
||||||
|
this->ui->le_Designator->setValidator(ucv);
|
||||||
|
this->ui->le_Manufacturer->setValidator(ucv);
|
||||||
}
|
}
|
||||||
|
|
||||||
CAircraftIcaoFilterBar::~CAircraftIcaoFilterBar()
|
CAircraftIcaoFilterBar::~CAircraftIcaoFilterBar()
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="maxLength">
|
<property name="maxLength">
|
||||||
<number>4</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="placeholderText">
|
<property name="placeholderText">
|
||||||
<string>ICAO</string>
|
<string>ICAO</string>
|
||||||
@@ -115,7 +115,11 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="6">
|
<item row="0" column="6">
|
||||||
<widget class="QLineEdit" name="le_Description"/>
|
<widget class="QLineEdit" name="le_Description">
|
||||||
|
<property name="placeholderText">
|
||||||
|
<string>Descriptive text</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" colspan="5">
|
<item row="1" column="0" colspan="5">
|
||||||
<widget class="BlackGui::CAircraftCombinedTypeSelector" name="combinedtype_Selector">
|
<widget class="BlackGui::CAircraftCombinedTypeSelector" name="combinedtype_Selector">
|
||||||
|
|||||||
@@ -9,7 +9,9 @@
|
|||||||
|
|
||||||
#include "aircraftmodelfilterbar.h"
|
#include "aircraftmodelfilterbar.h"
|
||||||
#include "ui_aircraftmodelfilterbar.h"
|
#include "ui_aircraftmodelfilterbar.h"
|
||||||
|
#include "blackgui/uppercasevalidator.h"
|
||||||
|
|
||||||
|
using namespace BlackGui;
|
||||||
using namespace BlackGui::Models;
|
using namespace BlackGui::Models;
|
||||||
|
|
||||||
namespace BlackGui
|
namespace BlackGui
|
||||||
@@ -30,6 +32,12 @@ namespace BlackGui
|
|||||||
connect(ui->le_LiveryCode, &QLineEdit::returnPressed, this, &CFilterWidget::triggerFilter);
|
connect(ui->le_LiveryCode, &QLineEdit::returnPressed, this, &CFilterWidget::triggerFilter);
|
||||||
connect(ui->le_ModelDescription, &QLineEdit::returnPressed, this, &CFilterWidget::triggerFilter);
|
connect(ui->le_ModelDescription, &QLineEdit::returnPressed, this, &CFilterWidget::triggerFilter);
|
||||||
connect(ui->le_ModelKey, &QLineEdit::returnPressed, this, &CFilterWidget::triggerFilter);
|
connect(ui->le_ModelKey, &QLineEdit::returnPressed, this, &CFilterWidget::triggerFilter);
|
||||||
|
|
||||||
|
CUpperCaseValidator *ucv = new CUpperCaseValidator(this);
|
||||||
|
this->ui->le_AircraftIcao->setValidator(ucv);
|
||||||
|
this->ui->le_AirlineIcao->setValidator(ucv);
|
||||||
|
this->ui->le_ModelKey->setValidator(ucv);
|
||||||
|
this->ui->le_AircraftManufacturer->setValidator(ucv);
|
||||||
}
|
}
|
||||||
|
|
||||||
CAircraftModelFilterBar::~CAircraftModelFilterBar()
|
CAircraftModelFilterBar::~CAircraftModelFilterBar()
|
||||||
|
|||||||
@@ -1,6 +1,17 @@
|
|||||||
|
/* Copyright (C) 2015
|
||||||
|
* swift project Community / Contributors
|
||||||
|
*
|
||||||
|
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||||
|
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
||||||
|
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
||||||
|
* contained in the LICENSE file.
|
||||||
|
*/
|
||||||
|
|
||||||
#include "countryfilterbar.h"
|
#include "countryfilterbar.h"
|
||||||
#include "ui_countryfilterbar.h"
|
#include "ui_countryfilterbar.h"
|
||||||
|
#include "blackgui/uppercasevalidator.h"
|
||||||
|
|
||||||
|
using namespace BlackGui;
|
||||||
using namespace BlackGui::Models;
|
using namespace BlackGui::Models;
|
||||||
using namespace BlackMisc;
|
using namespace BlackMisc;
|
||||||
using namespace BlackMisc::Network;
|
using namespace BlackMisc::Network;
|
||||||
@@ -17,6 +28,9 @@ namespace BlackGui
|
|||||||
this->setButtonsAndCount(this->ui->filter_Buttons);
|
this->setButtonsAndCount(this->ui->filter_Buttons);
|
||||||
connect(ui->le_IsoCode, &QLineEdit::returnPressed, this, &CFilterWidget::triggerFilter);
|
connect(ui->le_IsoCode, &QLineEdit::returnPressed, this, &CFilterWidget::triggerFilter);
|
||||||
connect(ui->le_Name, &QLineEdit::returnPressed, this, &CFilterWidget::triggerFilter);
|
connect(ui->le_Name, &QLineEdit::returnPressed, this, &CFilterWidget::triggerFilter);
|
||||||
|
|
||||||
|
CUpperCaseValidator *ucv = new CUpperCaseValidator(this);
|
||||||
|
this->ui->le_IsoCode->setValidator(ucv);
|
||||||
}
|
}
|
||||||
|
|
||||||
CCountryFilterBar::~CCountryFilterBar()
|
CCountryFilterBar::~CCountryFilterBar()
|
||||||
@@ -46,5 +60,5 @@ namespace BlackGui
|
|||||||
ui->le_IsoCode->clear();
|
ui->le_IsoCode->clear();
|
||||||
ui->le_Name->clear();
|
ui->le_Name->clear();
|
||||||
}
|
}
|
||||||
}
|
} // ns
|
||||||
}
|
} // ns
|
||||||
|
|||||||
@@ -1,3 +1,14 @@
|
|||||||
|
/* Copyright (C) 2015
|
||||||
|
* swift project Community / Contributors
|
||||||
|
*
|
||||||
|
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||||
|
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
||||||
|
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
||||||
|
* contained in the LICENSE file.
|
||||||
|
*/
|
||||||
|
|
||||||
|
//! \file
|
||||||
|
|
||||||
#ifndef BLACKGUI_FILTERS_COUNTRYFILTERBAR_H
|
#ifndef BLACKGUI_FILTERS_COUNTRYFILTERBAR_H
|
||||||
#define BLACKGUI_FILTERS_COUNTRYFILTERBAR_H
|
#define BLACKGUI_FILTERS_COUNTRYFILTERBAR_H
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>140</width>
|
<width>140</width>
|
||||||
<height>24</height>
|
<height>25</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
@@ -69,23 +69,7 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item alignment="Qt::AlignLeft">
|
||||||
<spacer name="hs_FilterBarButtons">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeType">
|
|
||||||
<enum>QSizePolicy::Fixed</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>10</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QToolButton" name="tb_Filter">
|
<widget class="QToolButton" name="tb_Filter">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>filter</string>
|
<string>filter</string>
|
||||||
@@ -113,7 +97,7 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item alignment="Qt::AlignLeft">
|
||||||
<widget class="QToolButton" name="tb_ClearForm">
|
<widget class="QToolButton" name="tb_ClearForm">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>clear form</string>
|
<string>clear form</string>
|
||||||
@@ -130,6 +114,22 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="hs_FilterBarButtons">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeType">
|
||||||
|
<enum>QSizePolicy::Fixed</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>10</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<resources>
|
<resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user