* removed paths in include directives * changed cmake to provide necessary header search paths * changed name of version.h to productVersion.h due to name conflict
66 lines
1.8 KiB
C++
66 lines
1.8 KiB
C++
#ifndef QT_CODE_VIEW_H
|
|
#define QT_CODE_VIEW_H
|
|
|
|
#include "CodeView.h"
|
|
#include "QtThreadedFunctor.h"
|
|
|
|
class QtCodeNavigator;
|
|
|
|
class QtCodeView
|
|
: public CodeView
|
|
{
|
|
public:
|
|
QtCodeView(ViewLayout* viewLayout);
|
|
~QtCodeView();
|
|
|
|
// View implementation
|
|
virtual void createWidgetWrapper();
|
|
virtual void initView();
|
|
virtual void refreshView();
|
|
|
|
// ScreenSearchResponder implementation
|
|
virtual bool isVisible() const;
|
|
virtual void findMatches(ScreenSearchSender* sender, const std::wstring& query);
|
|
virtual void activateMatch(size_t matchIndex);
|
|
virtual void deactivateMatch(size_t matchIndex);
|
|
virtual void clearMatches();
|
|
|
|
// CodeView implementation
|
|
virtual void clear();
|
|
|
|
virtual void showCodeSnippets(const std::vector<CodeSnippetParams>& snippets, const CodeParams params);
|
|
virtual void updateCodeSnippets(const std::vector<CodeSnippetParams>& snippets);
|
|
virtual void scrollTo(const ScrollParams params);
|
|
|
|
virtual bool showsErrors() const;
|
|
|
|
virtual void setFileState(const FilePath filePath, FileState state);
|
|
|
|
virtual void showActiveSnippet(
|
|
const std::vector<Id>& activeTokenIds, std::shared_ptr<SourceLocationCollection> collection, bool scrollTo);
|
|
virtual void showActiveTokenIds(const std::vector<Id>& activeTokenIds);
|
|
virtual void showActiveLocalSymbolIds(const std::vector<Id>& activeLocalSymbolIds);
|
|
|
|
virtual void focusTokenIds(const std::vector<Id>& focusedTokenIds);
|
|
virtual void defocusTokenIds();
|
|
|
|
virtual void showContents();
|
|
|
|
virtual bool isInListMode() const;
|
|
virtual void setMode(bool listMode);
|
|
|
|
virtual bool hasSingleFileCached(const FilePath& filePath) const;
|
|
|
|
private:
|
|
void performScroll();
|
|
void setStyleSheet() const;
|
|
|
|
QtThreadedLambdaFunctor m_onQtThread;
|
|
|
|
QtCodeNavigator* m_widget;
|
|
|
|
ScrollParams m_scrollParams;
|
|
};
|
|
|
|
# endif // QT_CODE_VIEW_H
|