src/dialogs.cpp

changeset 550
d97594e3fc54
parent 540
0334789cb4d7
child 553
2418d5955421
equal deleted inserted replaced
549:715d9a7f6598 550:d97594e3fc54
53 OverlayDialog::OverlayDialog (QWidget* parent, Qt::WindowFlags f) : QDialog (parent, f) 53 OverlayDialog::OverlayDialog (QWidget* parent, Qt::WindowFlags f) : QDialog (parent, f)
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 { { ui->top, GL::Top }, 58 { { ui->top, GL::ETopCamera },
59 { ui->bottom, GL::Bottom }, 59 { ui->bottom, GL::EBottomCamera },
60 { ui->front, GL::Front }, 60 { ui->front, GL::EFrontCamera },
61 { ui->back, GL::Back }, 61 { ui->back, GL::EBackCamera },
62 { ui->left, GL::Left }, 62 { ui->left, GL::ELeftCamera },
63 { ui->right, GL::Right } 63 { ui->right, GL::ERightCamera }
64 }; 64 };
65 65
66 GL::Camera cam = g_win->R()->camera(); 66 GL::EFixedCamera cam = g_win->R()->camera();
67 67
68 if (cam == GL::Free) 68 if (cam == GL::EFreeCamera)
69 cam = GL::Top; 69 cam = GL::ETopCamera;
70 70
71 connect (ui->width, SIGNAL (valueChanged (double)), this, SLOT (slot_dimensionsChanged())); 71 connect (ui->width, SIGNAL (valueChanged (double)), this, SLOT (slot_dimensionsChanged()));
72 connect (ui->height, SIGNAL (valueChanged (double)), this, SLOT (slot_dimensionsChanged())); 72 connect (ui->height, SIGNAL (valueChanged (double)), this, SLOT (slot_dimensionsChanged()));
73 connect (ui->buttonBox, SIGNAL (helpRequested()), this, SLOT (slot_help())); 73 connect (ui->buttonBox, SIGNAL (helpRequested()), this, SLOT (slot_help()));
74 connect (ui->fileSearchButton, SIGNAL (clicked (bool)), this, SLOT (slot_fpath())); 74 connect (ui->fileSearchButton, SIGNAL (clicked (bool)), this, SLOT (slot_fpath()));
126 double OverlayDialog::lheight() const 126 double OverlayDialog::lheight() const
127 { return ui->height->value(); 127 { return ui->height->value();
128 } 128 }
129 129
130 int OverlayDialog::camera() const 130 int OverlayDialog::camera() const
131 { return radioSwitch<int> (GL::Top, m_cameraArgs); 131 { return radioSwitch<int> (GL::ETopCamera, m_cameraArgs);
132 } 132 }
133 133
134 void OverlayDialog::slot_fpath() 134 void OverlayDialog::slot_fpath()
135 { ui->filename->setText (QFileDialog::getOpenFileName (null, "Overlay image")); 135 { ui->filename->setText (QFileDialog::getOpenFileName (null, "Overlay image"));
136 } 136 }

mercurial