CVesselContainerDeviceCreateView::CVesselContainerDeviceCreateView( CVesselContainerDevice** _ppoVesselContainerDevice )
  : QDialog( 0 )
  , ppoVesselContainerDevice( _ppoVesselContainerDevice )
{
  QDialog::setWindowTitle( tr("Create Device")+"..." );
  *ppoVesselContainerDevice = 0;
  constructLayout();
}
CVesselCockpitGeneralAviation::CVesselCockpitGeneralAviation( QWidget* _pqParent )
  : CVesselCockpit( "QVCT - "+tr("General Aviation Cockpit"), _pqParent )
{
  QPalette __qPalette( QWidget::palette() );
  __qPalette.setColor( QPalette::Background, Qt::black );
  QWidget::setPalette( __qPalette );
  QWidget::setAutoFillBackground(true);
  constructLayout();
  QWidget::resize( 600, 400 );
}
Exemplo n.º 3
0
void EcgArea::contextResized(int w, int h){
    int deleteX=calculateUnalignedArea(w, pixelDensity.x);
    int deleteY=calculateUnalignedArea(h, pixelDensity.y);

    screenSize.w=w;
    screenSize.h=h;

    activeArea=Rect(deleteX/2, deleteY/2, w-deleteX+1, h+1-deleteY);

    redraw();
    DrawableGroup::contextResized(w,h);
    constructLayout();
}
void SplitPaneLayout::setCameraBottomRight(bool newState)
{
	if (_cameraPosition == QuadrantBottomRight && newState) return; // nop

	// Only react to "activate" events
	if (newState || _cameraPosition == QuadrantBottomRight)
	{
		_cameraPosition = QuadrantBottomRight;

		deconstructLayout();
		constructLayout();

		updateCameraPositionToggles();
	}
}
void SplitPaneLayout::setCameraTopLeft(bool newState)
{
	if (_cameraPosition == QuadrantTopLeft && newState) return; // nop

	// Only react to "activate" events or same type
	if (newState || _cameraPosition == QuadrantTopLeft)
	{
		_cameraPosition = QuadrantTopLeft;

		deconstructLayout();
		constructLayout();

		updateCameraPositionToggles();
	}
}
Exemplo n.º 6
0
CChartTable::CChartTable( QWidget* _pqParent )
  : QTabWidget( _pqParent )
  , bProjectModified( false )
  , oGeoPositionReference()
  , fdScaleReference( -1.0 )
  , iDpi( 96 )
  , bIgnoreUpdate( true )
  , bMousePressed( false )
  , bMouseDrag( false )
  , fdGestureTimeLast( 0.0 )
  , fdGestureZoomReference( 0.0 )
  , bPointerTarget( false )
  , bPointerPath( false )
  , bPointerPathSingle( false )
  , poOverlayPointMove( 0 )
  , poVesselPointSynchronize( 0 )
{
  constructLayout();
  QWidget::setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
  tabBar()->installEventFilter( this );

  iDpi = QVCTRuntime::useSettings()->getScreenDpi();
}
Exemplo n.º 7
0
CDeviceTcpSbs1EditView::CDeviceTcpSbs1EditView( CDeviceTcpSbs1* _poDeviceTcpSbs1 )
  : COverlayObjectEditView( _poDeviceTcpSbs1 )
{
  constructLayout();
}
Exemplo n.º 8
0
CRoutePointEditView::CRoutePointEditView( CRoutePoint* _poRoutePoint )
  : COverlayObjectEditView( _poRoutePoint )
{
  constructLayout();
}
Exemplo n.º 9
0
CDeviceDetailView::CDeviceDetailView( QWidget* _pqParent )
  : COverlayObjectDetailView( _pqParent )
  , bIgnoreUpdate( true )
{
  constructLayout();
}
Exemplo n.º 10
0
void SplitPaneLayout::activate()
{
	constructLayout();
	constructMenus();
}
Exemplo n.º 11
0
CSettingsUnitsEditView::CSettingsUnitsEditView( QWidget* _pqParent )
  : QWidget( _pqParent )
{
  constructLayout();
}
Exemplo n.º 12
0
CPointerPointDetailView::CPointerPointDetailView( QWidget* _pqParent )
  : COverlayObjectDetailView( _pqParent )
{
  constructLayout();
}
Exemplo n.º 13
0
CSettingsEditView::CSettingsEditView( QWidget* _pqParent )
  : QDialog( _pqParent )
{
  QDialog::setWindowTitle( tr("Settings")+"..." );
  constructLayout();
}