-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtabeditor.h
More file actions
30 lines (26 loc) · 722 Bytes
/
Copy pathtabeditor.h
File metadata and controls
30 lines (26 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef TABEDITOR_H
#define TABEDITOR_H
#include<QTabWidget>
#include"editor.h"
class tabEditor:public QTabWidget
{
Q_OBJECT
public:
tabEditor(QWidget* parent=nullptr);
void add(Editor *editor);
public slots:
void openFile(QString filePath);
void on_tabClose(int index);
void on_tabChange(int index);
void on_tabNameChange(int,QString);
void code_formatChange(const QString& format);
void code_formatIndexChange(int comboxIndex);
void saveFile();
void saveFileAs();
void on_langChanged(QString);
private:
QString getFileName(QString filePath);
signals:
void tabChanged(int);//change the index of combox list to show curfile's codec name
};
#endif // TABEDITOR_H