]> Shamusworld >> Repos - architektonas/blobdiff - src/widgets/recentfiles.cpp
Refactoring: Moved RS_GraphicView to GraphicView.
[architektonas] / src / widgets / recentfiles.cpp
similarity index 82%
rename from src/widgets/qg_recentfiles.cpp
rename to src/widgets/recentfiles.cpp
index b8ad1cdb75e546dda0df1c2e4f67e2331701cd2a..e5e6bc9ff4d49322ed21fc58698ae2e02867864c 100644 (file)
@@ -1,4 +1,4 @@
-// qg_recentfiles.cpp
+// recentfiles.cpp
 //
 // Part of the Architektonas Project
 // Originally part of QCad Community Edition by Andrew Mustun
 // JLH  05/11/2010  Added this text. :-)
 //
 
-#include "qg_recentfiles.h"
+#include "recentfiles.h"
 
-#include "qc_applicationwindow.h"
+#include "applicationwindow.h"
 #include "rs_debug.h"
 
 /**
  * Constructor
  * @param number Number of files that can be stored in the list at maximum
  */
-QG_RecentFiles::QG_RecentFiles(QWidget * parent, QMenu * menu, int num/*= 9*/):
+RecentFiles::RecentFiles(QWidget * parent, QMenu * menu, int num/*= 9*/):
        QObject(), number(num)
 {
        // We make a separator that we can control the visibility of...
@@ -43,7 +43,7 @@ QG_RecentFiles::QG_RecentFiles(QWidget * parent, QMenu * menu, int num/*= 9*/):
 /**
  * Destructor
  */
-QG_RecentFiles::~QG_RecentFiles()
+RecentFiles::~RecentFiles()
 {
        while (!actionList.isEmpty())
                delete actionList.takeFirst();
@@ -53,9 +53,9 @@ QG_RecentFiles::~QG_RecentFiles()
  * Adds a file to the list of recently loaded files if
  * it's not already in the list.
  */
-void QG_RecentFiles::add(const QString & filename)
+void RecentFiles::add(const QString & filename)
 {
-       RS_DEBUG->print("QG_RecentFiles::add");
+       RS_DEBUG->print("RecentFiles::add");
 
        // Is the file already in the list? Bail out if so...
        if (files.indexOf(filename) != -1)
@@ -67,14 +67,14 @@ void QG_RecentFiles::add(const QString & filename)
        if ((int)files.count() > number)
                files.pop_front();
 
-       RS_DEBUG->print("QG_RecentFiles::add: OK");
+       RS_DEBUG->print("RecentFiles::add: OK");
 }
 
 /**
  * @return complete path and name of the file stored in the
  * list at index i
  */
-QString QG_RecentFiles::get(int i)
+QString RecentFiles::get(int i)
 {
        if (i < (int)files.count())
                return files[i];
@@ -83,18 +83,18 @@ QString QG_RecentFiles::get(int i)
 }
 
 /** @return number of files currently stored in the list */
-int QG_RecentFiles::count(void)
+int RecentFiles::count(void)
 {
        return files.count();
 }
 
 /** @return number of files that can be stored in the list at maximum */
-int QG_RecentFiles::Maximum(void)
+int RecentFiles::Maximum(void)
 {
        return number;
 }
 
-void QG_RecentFiles::UpdateGUI(void)
+void RecentFiles::UpdateGUI(void)
 {
        int numRecentFiles = count();