summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2014-01-21 22:51:57 (GMT)
committerChristoph Cullmann <cullmann@kde.org>2014-01-21 22:51:57 (GMT)
commit52eb91b02483c3d14283379e7183a4aa9a980503 (patch)
treedb7c7b7a46e83ea66734976eddae6cab2f2c4e95
parent79e713b4c20a77473282f0c009dd36db4355b609 (diff)
remove unused functions
-rw-r--r--kate/app/kateviewmanager.cpp98
-rw-r--r--kate/app/kateviewmanager.h20
2 files changed, 0 insertions, 118 deletions
diff --git a/kate/app/kateviewmanager.cpp b/kate/app/kateviewmanager.cpp
index a128717..0ef2aa8 100644
--- a/kate/app/kateviewmanager.cpp
+++ b/kate/app/kateviewmanager.cpp
@@ -182,39 +182,6 @@ void KateViewManager::setupActions ()
connect(a, SIGNAL(triggered()), this, SLOT(moveSplitterDown()));
a->setWhatsThis(i18n("Move the splitter of the current view down"));
-
- /*
- * Status Bar Items menu
- */
- m_cursorPosToggle = new KToggleAction(i18n("Show Cursor Position"), this);
- m_mainWindow->actionCollection()->addAction( QStringLiteral("show_cursor_pos"), m_cursorPosToggle );
- connect(m_cursorPosToggle, SIGNAL(toggled(bool)),
- this, SIGNAL(cursorPositionItemVisibilityChanged(bool)));
-
- m_charCountToggle = new KToggleAction(i18n("Show Characters Count"), this);
- m_mainWindow->actionCollection()->addAction( QStringLiteral("show_char_count"), m_charCountToggle );
- connect(m_charCountToggle, SIGNAL(toggled(bool)),
- this, SIGNAL(charactersCountItemVisibilityChanged(bool)));
-
- m_insertModeToggle = new KToggleAction(i18n("Show Insertion Mode"), this);
- m_mainWindow->actionCollection()->addAction( QStringLiteral("show_insert_mode"), m_insertModeToggle );
- connect(m_insertModeToggle, SIGNAL(toggled(bool)),
- this, SIGNAL(insertModeItemVisibilityChanged(bool)));
-
- m_selectModeToggle = new KToggleAction(i18n("Show Selection Mode"), this);
- m_mainWindow->actionCollection()->addAction( QStringLiteral("show_select_mode"), m_selectModeToggle );
- connect(m_selectModeToggle, SIGNAL(toggled(bool)),
- this, SIGNAL(selectModeItemVisibilityChanged(bool)));
-
- m_encodingToggle = new KToggleAction(i18n("Show Encoding"), this);
- m_mainWindow->actionCollection()->addAction( QStringLiteral("show_encoding"), m_encodingToggle );
- connect(m_encodingToggle, SIGNAL(toggled(bool)),
- this, SIGNAL(encodingItemVisibilityChanged(bool)));
-
- m_docNameToggle = new KToggleAction(i18n("Show Document Name"), this);
- m_mainWindow->actionCollection()->addAction( QStringLiteral("show_doc_name"), m_docNameToggle );
- connect(m_docNameToggle, SIGNAL(toggled(bool)),
- this, SIGNAL(documentNameItemVisibilityChanged(bool)));
}
void KateViewManager::updateViewSpaceActions ()
@@ -362,38 +329,6 @@ KateMainWindow *KateViewManager::mainWindow()
return m_mainWindow;
}
-bool KateViewManager::isCursorPositionVisible() const
-{
- return m_cursorPosToggle->isChecked();
-}
-
-bool KateViewManager::isCharactersCountVisible() const
-{
- return m_charCountToggle->isChecked();
-}
-
-bool KateViewManager::isInsertModeVisible() const
-{
- return m_insertModeToggle->isChecked();
-}
-
-bool KateViewManager::isSelectModeVisible() const
-{
- return m_selectModeToggle->isChecked();
-}
-
-bool KateViewManager::isEncodingVisible() const
-{
- return m_encodingToggle->isChecked();
-}
-
-bool KateViewManager::isDocumentNameVisible() const
-{
- return m_docNameToggle->isChecked();
-}
-
-// VIEWSPACE
-
void KateViewManager::documentCreated (KTextEditor::Document *doc)
{
// to update open recent files on saving
@@ -870,14 +805,6 @@ void KateViewManager::saveViewConfiguration(KConfigGroup& config)
m_splitterIndex = 0;
saveSplitterConfig(this, config.config(), config.name());
-
- // Status Bar Items
- config.writeEntry("Cursor Position Visible", m_cursorPosToggle->isChecked());
- config.writeEntry("Characters Count Visible", m_charCountToggle->isChecked());
- config.writeEntry("Insertion Mode Visible", m_insertModeToggle->isChecked());
- config.writeEntry("Selection Mode Visible", m_selectModeToggle->isChecked());
- config.writeEntry("Encoding Visible", m_encodingToggle->isChecked());
- config.writeEntry("Document Name Visible", m_docNameToggle->isChecked());
}
void KateViewManager::restoreViewConfiguration (const KConfigGroup& config)
@@ -928,31 +855,6 @@ void KateViewManager::restoreViewConfiguration (const KConfigGroup& config)
m_viewSpaceList.append(vs);
}
- // Status Bar Items
- bool cursorPosVisible = config.readEntry("Cursor Position Visible", true);
- m_cursorPosToggle->setChecked(cursorPosVisible);
- emit cursorPositionItemVisibilityChanged(cursorPosVisible);
-
- bool charCountVisible = config.readEntry("Characters Count Visible", false);
- m_charCountToggle->setChecked(charCountVisible);
- emit charactersCountItemVisibilityChanged(charCountVisible);
-
- bool insertModeVisible = config.readEntry("Insertion Mode Visible", true);
- m_insertModeToggle->setChecked(insertModeVisible);
- emit insertModeItemVisibilityChanged(insertModeVisible);
-
- bool selectModeVisible = config.readEntry("Selection Mode Visible", true);
- m_selectModeToggle->setChecked(selectModeVisible);
- emit selectModeItemVisibilityChanged(selectModeVisible);
-
- bool encodingVisible = config.readEntry("Encoding Visible", true);
- m_encodingToggle->setChecked(encodingVisible);
- emit encodingItemVisibilityChanged(encodingVisible);
-
- bool docNameVisible = config.readEntry("Document Name Visible", true);
- m_docNameToggle->setChecked(docNameVisible);
- emit documentNameItemVisibilityChanged(docNameVisible);
-
updateViewSpaceActions();
}
diff --git a/kate/app/kateviewmanager.h b/kate/app/kateviewmanager.h
index c56020b..25097e4 100644
--- a/kate/app/kateviewmanager.h
+++ b/kate/app/kateviewmanager.h
@@ -91,13 +91,6 @@ class KateViewManager : public QSplitter
void closeViews(KTextEditor::Document *doc);
KateMainWindow *mainWindow();
- bool isCursorPositionVisible() const;
- bool isCharactersCountVisible() const;
- bool isInsertModeVisible() const;
- bool isSelectModeVisible() const;
- bool isEncodingVisible() const;
- bool isDocumentNameVisible() const;
-
private Q_SLOTS:
void activateView ( KTextEditor::View *view );
void activateSpace ( KTextEditor::View* v );
@@ -123,13 +116,6 @@ class KateViewManager : public QSplitter
void viewChanged (KTextEditor::View *);
void viewCreated (KTextEditor::View *);
- void cursorPositionItemVisibilityChanged(bool);
- void charactersCountItemVisibilityChanged(bool);
- void insertModeItemVisibilityChanged(bool);
- void selectModeItemVisibilityChanged(bool);
- void encodingItemVisibilityChanged(bool);
- void documentNameItemVisibilityChanged(bool);
-
public:
inline QList<KTextEditor::View*> &viewList ()
{
@@ -265,12 +251,6 @@ class KateViewManager : public QSplitter
QAction *m_closeOtherViews;
QAction *goNext;
QAction *goPrev;
- QAction *m_cursorPosToggle;
- QAction *m_charCountToggle;
- QAction *m_insertModeToggle;
- QAction *m_selectModeToggle;
- QAction *m_encodingToggle;
- QAction *m_docNameToggle;
QList<KateViewSpace*> m_viewSpaceList;
QList<KTextEditor::View*> m_viewList;