Example #1
0
void TMyPrinterAreaWindow::SetupWindow()
   {

   /* if active area display active parameters */

   ResetWindow();
   TDialog::SetupWindow();

   }
Example #2
0
void Window::CreateConnections()
{
    connect(m_pTimer, SIGNAL(timeout()), m_pDisplay, SLOT(Animate()));

    connect(m_pDisplay, SIGNAL(MiddleButtonMove(float, float)), m_pImageWindowingDock, SLOT(UpdateWindowLevel(float, float)));
    connect(m_pImageWindowingDock->GetSliderWC(), SIGNAL(valueChanged(int)), this, SLOT(UpdateImage()));
    connect(m_pImageWindowingDock->GetSliderWW(), SIGNAL(valueChanged(int)), this, SLOT(UpdateImage()));
    connect(m_pImageWindowingDock->GetResetButton(), SIGNAL(clicked()), this, SLOT(ResetWindow()));
    connect(m_pDisplay, SIGNAL(MiddleButtonDoubleClick()), this, SLOT(ResetWindow()));
    connect(m_pDisplay, SIGNAL(WheelMovement(int,int)), this, SLOT(UpdateActiveSlice(int,int)));

    connect(m_pDisplay, SIGNAL(RightButtonMove(float)), this, SLOT(Pan(float)));

    connect(m_pResizeToolbar->GetActionZoomIn(), SIGNAL(triggered()), this, SLOT(ZoomIn25Present()));
    connect(m_pResizeToolbar->GetActionZoomOut(), SIGNAL(triggered()), this, SLOT(ZoomOut25Present()));
    connect(m_pResizeToolbar->GetActionOriginalSize(), SIGNAL(triggered()), this, SLOT(ZoomOriginalSize()));
    connect(m_pResizeToolbar->GetActionFitToHeight(), SIGNAL(triggered()), this, SLOT(ZoomFitToHeight()));
    connect(m_pResizeToolbar->GetComboResize(), SIGNAL(currentIndexChanged(int)), this, SLOT(ZoomComboResize(int)));
    connect(m_pResizeToolbar->GetComboResize()->lineEdit(), SIGNAL(editingFinished()), this, SLOT(ZoomCustomSize()));

    connect(m_pImageListDock, SIGNAL(SelectionChanged(int)), this, SLOT(UpdateImage(int)));

    m_bConnected = true;
}
Example #3
0
void TMyPrinterAreaWindow::DoReset(UINT)
   {

   /* hack to init things */

   TPrinterAreaXLow  = -BitMapWidth / 2;
   TPrinterAreaXHigh = +BitMapWidth / 2;
   TPrinterAreaYLow  = -BitMapHeight / 2;
   TPrinterAreaYHigh = +BitMapHeight / 2;

   TPrinterAreaPixels = max(BitMapWidth, BitMapHeight) / 8;

   ResetWindow();

   }