* non-indexed files are shown in graph view and in code view * non-indexed files are ignored in search view, overview, stats and refresh dialog
57 lines
1.2 KiB
C++
57 lines
1.2 KiB
C++
#ifndef QT_CODE_FILE_TITLE_BAR_H
|
|
#define QT_CODE_FILE_TITLE_BAR_H
|
|
|
|
#include "qt/element/QtCodeFileTitleButton.h"
|
|
#include "qt/element/QtIconButton.h"
|
|
|
|
class QLabel;
|
|
class QtCodeFileTitleButton;
|
|
class QtIconStateButton;
|
|
|
|
class QtCodeFileTitleBar
|
|
: public QtHoverButton
|
|
{
|
|
Q_OBJECT
|
|
|
|
signals:
|
|
void minimize();
|
|
void snippet();
|
|
void maximize();
|
|
|
|
public:
|
|
QtCodeFileTitleBar(QWidget* parent = nullptr, bool isHovering = false, bool isSingle = false);
|
|
|
|
QtCodeFileTitleButton* getTitleButton() const;
|
|
|
|
void setIsComplete(bool isComplete);
|
|
void setIsIndexed(bool isIndexed);
|
|
void updateRefCount(int refCount, bool hasErrors, size_t fatalErrorCount);
|
|
|
|
void setMinimized();
|
|
void setSnippets();
|
|
void setMaximized();
|
|
|
|
void updateFromOther(const QtCodeFileTitleBar* other);
|
|
|
|
private slots:
|
|
void clickedTitleBar();
|
|
|
|
void enteredTitleBar(QPushButton* button);
|
|
void leftTitleBar(QPushButton* button);
|
|
|
|
void clickedMinimizeButton();
|
|
void clickedSnippetButton();
|
|
void clickedMaximizeButton();
|
|
|
|
private:
|
|
QtCodeFileTitleButton* m_titleButton;
|
|
QPushButton* m_showErrorsButton;
|
|
QLabel* m_referenceCount;
|
|
|
|
QtIconStateButton* m_minimizeButton;
|
|
QtIconStateButton* m_snippetButton;
|
|
QtIconStateButton* m_maximizeButton;
|
|
};
|
|
|
|
#endif // QT_CODE_FILE_TITLE_BAR_H
|