Ver Fonte

Rename class: Fb2WebFrame => Fb2TextFrame

Kandrashin Denis há 13 anos atrás
pai
commit
ab0fcc1802
4 ficheiros alterados com 12 adições e 12 exclusões
  1. 2 2
      source/fb2main.cpp
  2. 2 2
      source/fb2main.hpp
  3. 5 5
      source/fb2view.cpp
  4. 3 3
      source/fb2view.hpp

+ 2 - 2
source/fb2main.cpp

@@ -660,7 +660,7 @@ void Fb2MainWindow::viewText()
     FB2DELETE(codeEdit);
     FB2DELETE(codeEdit);
     FB2DELETE(headTree);
     FB2DELETE(headTree);
     if (!textFrame) {
     if (!textFrame) {
-        textFrame = new Fb2WebFrame(this);
+        textFrame = new Fb2TextFrame(this);
     }
     }
     setCentralWidget(textFrame);
     setCentralWidget(textFrame);
     textFrame->view.setFocus();
     textFrame->view.setFocus();
@@ -738,7 +738,7 @@ void Fb2MainWindow::viewHead()
     FB2DELETE(toolEdit);
     FB2DELETE(toolEdit);
 
 
     if (!textFrame) {
     if (!textFrame) {
-        textFrame = new Fb2WebFrame(this);
+        textFrame = new Fb2TextFrame(this);
     }
     }
 
 
     if (!headTree) {
     if (!headTree) {

+ 2 - 2
source/fb2main.hpp

@@ -17,7 +17,7 @@ QT_END_NAMESPACE
 class Fb2CodeEdit;
 class Fb2CodeEdit;
 class Fb2TreeView;
 class Fb2TreeView;
 class Fb2HeadView;
 class Fb2HeadView;
-class Fb2WebFrame;
+class Fb2TextFrame;
 class Fb2WebView;
 class Fb2WebView;
 
 
 class Fb2MainWindow : public QMainWindow
 class Fb2MainWindow : public QMainWindow
@@ -79,7 +79,7 @@ private:
     void setCurrentFile(const QString &fileName = QString());
     void setCurrentFile(const QString &fileName = QString());
     Fb2MainWindow *findFb2MainWindow(const QString &fileName);
     Fb2MainWindow *findFb2MainWindow(const QString &fileName);
 
 
-    Fb2WebFrame *textFrame;
+    Fb2TextFrame *textFrame;
     QWebInspector *inspector;
     QWebInspector *inspector;
     Fb2HeadView *headTree;
     Fb2HeadView *headTree;
     QTextEdit *noteEdit;
     QTextEdit *noteEdit;

+ 5 - 5
source/fb2view.cpp

@@ -434,10 +434,10 @@ void Fb2WebView::insertSubtitle()
 }
 }
 
 
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------
-//  Fb2WebFrame
+//  Fb2TextFrame
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------
 
 
-Fb2WebFrame::Fb2WebFrame(QWidget* parent)
+Fb2TextFrame::Fb2TextFrame(QWidget* parent)
     : QFrame(parent)
     : QFrame(parent)
     , view(this)
     , view(this)
     , dock(0)
     , dock(0)
@@ -451,12 +451,12 @@ Fb2WebFrame::Fb2WebFrame(QWidget* parent)
     layout->addWidget(&view);
     layout->addWidget(&view);
 }
 }
 
 
-Fb2WebFrame::~Fb2WebFrame()
+Fb2TextFrame::~Fb2TextFrame()
 {
 {
     if (dock) dock->deleteLater();
     if (dock) dock->deleteLater();
 }
 }
 
 
-void Fb2WebFrame::showInspector()
+void Fb2TextFrame::showInspector()
 {
 {
     if (dock) {
     if (dock) {
         dock->show();
         dock->show();
@@ -475,7 +475,7 @@ void Fb2WebFrame::showInspector()
     dock->setWidget(inspector);
     dock->setWidget(inspector);
 }
 }
 
 
-void Fb2WebFrame::hideInspector()
+void Fb2TextFrame::hideInspector()
 {
 {
     if (dock) dock->hide();
     if (dock) dock->hide();
 }
 }

+ 3 - 3
source/fb2view.hpp

@@ -126,13 +126,13 @@ private:
     QPoint m_point;
     QPoint m_point;
 };
 };
 
 
-class Fb2WebFrame : public QFrame
+class Fb2TextFrame : public QFrame
 {
 {
     Q_OBJECT
     Q_OBJECT
 
 
 public:
 public:
-    explicit Fb2WebFrame(QWidget* parent = 0);
-    ~Fb2WebFrame();
+    explicit Fb2TextFrame(QWidget* parent = 0);
+    ~Fb2TextFrame();
     void hideInspector();
     void hideInspector();
     Fb2WebView view;
     Fb2WebView view;