• R/O
  • SSH
  • HTTPS

ruviedit: Commit


Commit MetaInfo

Revision462 (tree)
Time2012-09-12 07:56:27
Authorvivisuke

Log Message

TabbedMainWindow.cpp TabbedMainWindow.h 削除

Change Summary

  • delete: trunk/ruviedit/TabbedMainWindow.h
  • delete: trunk/ruviedit/TabbedMainWindow.cpp

Incremental Difference

--- trunk/ruviedit/TabbedMainWindow.h (revision 461)
+++ trunk/ruviedit/TabbedMainWindow.h (nonexistent)
@@ -1,27 +0,0 @@
1-#ifndef TABBEDMAINWINDOW_H
2-#define TABBEDMAINWINDOW_H
3-
4-#include <QMainWindow>
5-
6-class QTabWidget;
7-class EditView;
8-
9-class TabbedMainWindow : public QMainWindow
10-{
11- Q_OBJECT
12-
13-public:
14- TabbedMainWindow(QWidget *parent = 0, Qt::WFlags flags = 0);
15- ~TabbedMainWindow();
16-
17-protected:
18- void init();
19-
20-protected:
21- QTabWidget *m_tabWidget;
22-
23-private:
24-
25-};
26-
27-#endif // TABBEDMAINWINDOW_H
--- trunk/ruviedit/TabbedMainWindow.cpp (revision 461)
+++ trunk/ruviedit/TabbedMainWindow.cpp (nonexistent)
@@ -1,43 +0,0 @@
1-#include <QtGui>
2-#include "TabbedMainWindow.h"
3-
4-QHash<QString, uint> g_cmdStatistics;
5-void incCmdStatistics(const QString &keyText)
6-{
7- if( keyText.isEmpty() ) return;
8- if( g_cmdStatistics.find(keyText) == g_cmdStatistics.end() ) {
9- g_cmdStatistics.insert(keyText, 1);
10- } else {
11- g_cmdStatistics[keyText] += 1;
12- }
13-}
14-
15-TabbedMainWindow::TabbedMainWindow(QWidget *parent, Qt::WFlags flags)
16- : QMainWindow(parent, flags)
17-{
18- init();
19-}
20-
21-TabbedMainWindow::~TabbedMainWindow()
22-{
23-
24-}
25-void TabbedMainWindow::init()
26-{
27- QSettings settings;
28- QStringList lst = settings.value("cmdStatistics").toStringList();
29- foreach(const QString &text, lst) {
30- QStringList kv = text.split(":");
31- if( kv.size() == 2 )
32- g_cmdStatistics.insert(kv[0], (uint)kv[1].toInt());
33- }
34- setAcceptDrops(true);
35- m_settings = new Settings();
36-
37- m_tabWidget = new QTabWidget;
38- m_tabWidget->setMovable(true);
39- m_tabWidget->setTabsClosable(true);
40- connect(m_tabWidget, SIGNAL(tabCloseRequested(int)), this, SLOT(tabCloseRequested(int)));
41- connect(m_tabWidget, SIGNAL(currentChanged(int)), this, SLOT(onTabChanged(int)));
42- setCentralWidget(m_tabWidget);
43-}
Show on old repository browser