54 ui = new Ui_OverlayUI; |
54 ui = new Ui_OverlayUI; |
55 ui->setupUi (this); |
55 ui->setupUi (this); |
56 |
56 |
57 m_cameraArgs = |
57 m_cameraArgs = |
58 { |
58 { |
59 { ui->top, GL::ETopCamera }, |
59 { ui->top, ETopCamera }, |
60 { ui->bottom, GL::EBottomCamera }, |
60 { ui->bottom, EBottomCamera }, |
61 { ui->front, GL::EFrontCamera }, |
61 { ui->front, EFrontCamera }, |
62 { ui->back, GL::EBackCamera }, |
62 { ui->back, EBackCamera }, |
63 { ui->left, GL::ELeftCamera }, |
63 { ui->left, ELeftCamera }, |
64 { ui->right, GL::ERightCamera } |
64 { ui->right, ERightCamera } |
65 }; |
65 }; |
66 |
66 |
67 GL::EFixedCamera cam = g_win->R()->camera(); |
67 ECamera cam = g_win->R()->camera(); |
68 |
68 |
69 if (cam == GL::EFreeCamera) |
69 if (cam == EFreeCamera) |
70 cam = GL::ETopCamera; |
70 cam = ETopCamera; |
71 |
71 |
72 connect (ui->width, SIGNAL (valueChanged (double)), this, SLOT (slot_dimensionsChanged())); |
72 connect (ui->width, SIGNAL (valueChanged (double)), this, SLOT (slot_dimensionsChanged())); |
73 connect (ui->height, SIGNAL (valueChanged (double)), this, SLOT (slot_dimensionsChanged())); |
73 connect (ui->height, SIGNAL (valueChanged (double)), this, SLOT (slot_dimensionsChanged())); |
74 connect (ui->buttonBox, SIGNAL (helpRequested()), this, SLOT (slot_help())); |
74 connect (ui->buttonBox, SIGNAL (helpRequested()), this, SLOT (slot_help())); |
75 connect (ui->fileSearchButton, SIGNAL (clicked (bool)), this, SLOT (slot_fpath())); |
75 connect (ui->fileSearchButton, SIGNAL (clicked (bool)), this, SLOT (slot_fpath())); |
137 return ui->height->value(); |
137 return ui->height->value(); |
138 } |
138 } |
139 |
139 |
140 int OverlayDialog::camera() const |
140 int OverlayDialog::camera() const |
141 { |
141 { |
142 return radioSwitch<int> (GL::ETopCamera, m_cameraArgs); |
142 return radioSwitch<int> (ETopCamera, m_cameraArgs); |
143 } |
143 } |
144 |
144 |
145 void OverlayDialog::slot_fpath() |
145 void OverlayDialog::slot_fpath() |
146 { |
146 { |
147 ui->filename->setText (QFileDialog::getOpenFileName (null, "Overlay image")); |
147 ui->filename->setText (QFileDialog::getOpenFileName (null, "Overlay image")); |