ui: switch to single file mode with snippet maximize
* switch back to snippet view with snippet button in file title bar * use new title bar widget in single view as well * restore view mode on undo, store current view mode for every message id (added id to message) * treat view mode switch as adapt message on undo stack * fixed crash after snippet expansion * fixed hatching in file title not shown
This commit is contained in:
@@ -19,15 +19,15 @@ signals:
|
||||
void maximize();
|
||||
|
||||
public:
|
||||
QtCodeFileTitleBar(QWidget* parent = nullptr, bool isHovering = false);
|
||||
QtCodeFileTitleBar(QWidget* parent = nullptr, bool isHovering = false, bool isSingle = false);
|
||||
|
||||
QtCodeFileTitleButton* getTitleButton() const;
|
||||
|
||||
void setRefString(const QString& refString);
|
||||
void updateRefCount(int refCount, bool hasErrors, size_t fatalErrorCount);
|
||||
|
||||
void setMinimized(bool hasSnippets);
|
||||
void setMinimized();
|
||||
void setSnippets();
|
||||
void setMaximized(bool hasSnippets);
|
||||
void setMaximized();
|
||||
|
||||
void updateFromOther(const QtCodeFileTitleBar* other);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user