]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/WorkAreaManager.cpp
add progress widget
[lyx.git] / src / frontends / WorkAreaManager.cpp
index e3c8d3e2a774a307994f4cb935dcac7ff1567ab3..b0eaaac6b1270f539671d005ba6cd5550aceee69 100644 (file)
 
 #include <config.h>
 
-#include "WorkArea.h"
-
 #include "WorkAreaManager.h"
 
-using std::list;
-
-namespace lyx {
+#include "WorkArea.h"
 
-extern bool quitting;
 
+namespace lyx {
 namespace frontend {
 
 void WorkAreaManager::add(WorkArea * wa)
@@ -37,11 +33,8 @@ void WorkAreaManager::remove(WorkArea * wa)
 
 void WorkAreaManager::redrawAll()
 {
-       for (list<WorkArea *>::iterator it = work_areas_.begin();
-               it != work_areas_.end(); ) {
+       for (iterator it = work_areas_.begin(); it != work_areas_.end(); ++it)
                (*it)->redraw();
-               ++it;
-       }
 }
 
 
@@ -55,21 +48,15 @@ void WorkAreaManager::closeAll()
 
 void WorkAreaManager::setReadOnly(bool on)
 {
-       for (list<WorkArea *>::iterator it = work_areas_.begin();
-               it != work_areas_.end(); ) {
+       for (iterator it = work_areas_.begin(); it != work_areas_.end(); ++it)
                (*it)->setReadOnly(on);
-               ++it;
-       }
 }
 
 
 void WorkAreaManager::updateTitles()
 {
-       for (list<WorkArea *>::iterator it = work_areas_.begin();
-               it != work_areas_.end(); ) {
+       for (iterator it = work_areas_.begin(); it != work_areas_.end(); ++it)
                (*it)->updateWindowTitle();
-               ++it;
-       }
 }
 
 } // namespace frontend