107 // ----------------------------------------------------------------------------- |
107 // ----------------------------------------------------------------------------- |
108 str OverlayDialog::fpath() const |
108 str OverlayDialog::fpath() const |
109 { return ui->filename->text(); |
109 { return ui->filename->text(); |
110 } |
110 } |
111 |
111 |
112 ushort OverlayDialog::ofsx() const |
112 int OverlayDialog::ofsx() const |
113 { return ui->originX->value(); |
113 { return ui->originX->value(); |
114 } |
114 } |
115 |
115 |
116 ushort OverlayDialog::ofsy() const |
116 int OverlayDialog::ofsy() const |
117 { return ui->originY->value(); |
117 { return ui->originY->value(); |
118 } |
118 } |
119 |
119 |
120 double OverlayDialog::lwidth() const |
120 double OverlayDialog::lwidth() const |
121 { return ui->width->value(); |
121 { return ui->width->value(); |
247 { delete ui; |
247 { delete ui; |
248 } |
248 } |
249 |
249 |
250 // ============================================================================= |
250 // ============================================================================= |
251 // ----------------------------------------------------------------------------- |
251 // ----------------------------------------------------------------------------- |
252 READ_ACCESSOR (ulong, OpenProgressDialog::numLines) |
252 READ_ACCESSOR (int, OpenProgressDialog::numLines) |
253 { return m_numLines; |
253 { return m_numLines; |
254 } |
254 } |
255 |
255 |
256 // ============================================================================= |
256 // ============================================================================= |
257 // ----------------------------------------------------------------------------- |
257 // ----------------------------------------------------------------------------- |
258 SET_ACCESSOR (ulong, OpenProgressDialog::setNumLines) |
258 SET_ACCESSOR (int, OpenProgressDialog::setNumLines) |
259 { m_numLines = val; |
259 { m_numLines = val; |
260 ui->progressBar->setRange (0, numLines()); |
260 ui->progressBar->setRange (0, numLines()); |
261 updateValues(); |
261 updateValues(); |
262 } |
262 } |
263 |
263 |