src/dialogs.cpp

changeset 539
72ad83a67165
parent 526
b29b6fc45ba9
child 540
0334789cb4d7
--- a/src/dialogs.cpp	Thu Dec 05 13:51:52 2013 +0200
+++ b/src/dialogs.cpp	Thu Dec 05 23:20:50 2013 +0200
@@ -239,7 +239,7 @@
 	ui->setupUi (this);
 	ui->progressText->setText ("Parsing...");
 	setNumLines (0);
-	m_progress = 0;
+	m_Progress = 0;
 }
 
 // =============================================================================
@@ -250,29 +250,22 @@
 
 // =============================================================================
 // -----------------------------------------------------------------------------
-READ_ACCESSOR (int, OpenProgressDialog::numLines)
-{	return m_numLines;
-}
-
-// =============================================================================
-// -----------------------------------------------------------------------------
-SET_ACCESSOR (int, OpenProgressDialog::setNumLines)
-{	m_numLines = val;
-	ui->progressBar->setRange (0, numLines());
+void OpenProgressDialog::NumLinesChanged()
+{	ui->progressBar->setRange (0, getNumLines());
 	updateValues();
 }
 
 // =============================================================================
 // -----------------------------------------------------------------------------
 void OpenProgressDialog::updateValues()
-{	ui->progressText->setText (fmt ("Parsing... %1 / %2", progress(), numLines()));
-	ui->progressBar->setValue (progress());
+{	ui->progressText->setText (fmt ("Parsing... %1 / %2", getProgress(), getNumLines()));
+	ui->progressBar->setValue (getProgress());
 }
 
 // =============================================================================
 // -----------------------------------------------------------------------------
 void OpenProgressDialog::updateProgress (int progress)
-{	m_progress = progress;
+{	setProgress (progress);
 	updateValues();
 }
 

mercurial