Files
Sourcetrail/src/lib_gui/qt/element/QtCodeFileTitleBar.h
T
mlangkabel f08f27717f logic: record and display include edges for non-indexed files
* 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
2018-04-23 12:13:49 +02:00

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