id
int64
0
755k
file_name
stringlengths
3
109
file_path
stringlengths
13
185
content
stringlengths
31
9.38M
size
int64
31
9.38M
language
stringclasses
1 value
extension
stringclasses
11 values
total_lines
int64
1
340k
avg_line_length
float64
2.18
149k
max_line_length
int64
7
2.22M
alphanum_fraction
float64
0
1
repo_name
stringlengths
6
65
repo_stars
int64
100
47.3k
repo_forks
int64
0
12k
repo_open_issues
int64
0
3.4k
repo_license
stringclasses
9 values
repo_extraction_date
stringclasses
92 values
exact_duplicates_redpajama
bool
2 classes
near_duplicates_redpajama
bool
2 classes
exact_duplicates_githubcode
bool
2 classes
exact_duplicates_stackv2
bool
1 class
exact_duplicates_stackv1
bool
2 classes
near_duplicates_githubcode
bool
2 classes
near_duplicates_stackv1
bool
2 classes
near_duplicates_stackv2
bool
1 class
21,797
golanglint_global.h
visualfc_liteide/liteidex/src/plugins/golanglint/golanglint_global.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2014 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golanglint.cpp // Creator: Hai Thanh Nguyen <phaikawl@gmail.com> #ifndef GOLANGLINT_GLOBAL_H #define GOLANGLINT_GLOBAL_H #include <QtCore/qglobal.h> #if defined(GOLANGLINT_LIBRARY) # define GOLANGLINTSHARED_EXPORT Q_DECL_EXPORT #else # define GOLANGLINTSHARED_EXPORT Q_DECL_IMPORT #endif #define GOLANGLINT_CONFIDENCE "golanglint/confidence" #define GOLANGLINT_AUTOLINT "golanglint/confidence" #define GOLANGLINT_SYNCTIMEOUT "golanglint/synctimeout" #define GOLANGLINT_TAG "golanglint/navigatetag" #endif // GOLANGLINT_GLOBAL_H
1,553
C++
.h
35
43.228571
82
0.714475
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,798
golanglint.h
visualfc_liteide/liteidex/src/plugins/golanglint/golanglint.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2014 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golanglint.cpp // Creator: Hai Thanh Nguyen <phaikawl@gmail.com> #ifndef GOLANGLINT_H #define GOLANGLINT_H #include <QObject> #include <QTextCursor> #include "liteapi/liteapi.h" #include "liteenvapi/liteenvapi.h" class ProcessEx; class GolangLint : public QObject { Q_OBJECT public: explicit GolangLint(LiteApi::IApplication *app,QObject *parent = 0); public slots: void started(); void golint(); void currentEnvChanged(LiteApi::IEnv*); void lintOutput(QByteArray,bool); void lintFinish(bool,int,QString); void editorAboutToSave(LiteApi::IEditor*); void applyOption(QString); void lintEditor(LiteApi::IEditor*,bool); void syncLintEditor(LiteApi::IEditor *, bool save, bool check = true, int timeout = -1); protected: LiteApi::IApplication *m_liteApp; ProcessEx *m_process; LiteApi::IEnvManager *m_envManager; QString m_golintCmd; QByteArray m_data; QByteArray m_errData; bool m_autolint; bool m_synclint; int m_timeout; int m_confidence; }; #endif // GOLANGLINT_H
2,074
C++
.h
57
33.807018
92
0.695177
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,799
golanglintoption.h
visualfc_liteide/liteidex/src/plugins/golanglint/golanglintoption.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2014 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golanglintoption.h // Creator: Hai Thanh Nguyen <phaikawl@gmail.com> #ifndef GOLANGLINTOPTION_H #define GOLANGLINTOPTION_H #include "liteapi/liteapi.h" namespace Ui { class GolangLintOption; } class GolangLintOption : public LiteApi::IOption { Q_OBJECT public: explicit GolangLintOption(LiteApi::IApplication *app, QObject *parent = 0); ~GolangLintOption(); virtual QWidget *widget(); virtual QString name() const; virtual QString mimeType() const; virtual void apply(); private slots: void on_confidenceSlider_valueChanged(int value); private: LiteApi::IApplication *m_liteApp; QWidget *m_widget; Ui::GolangLintOption *ui; }; #endif // GOLANGLINTOPTION_H
1,741
C++
.h
46
35.652174
82
0.690166
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,800
golangastitem.h
visualfc_liteide/liteidex/src/plugins/golangast/golangastitem.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangastitem.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGASTITEM_H #define GOLANGASTITEM_H #include <QStandardItem> #include "golangastapi/golangastapi.h" struct AstItemPos { QString fileName; int line; int column; int endLine; int endColumn; }; class GolangAstItem : public QStandardItem { public: QList<AstItemPos> m_posList; QString m_tagName; QString m_tipInfo; LiteApi::ASTTAG_ENUM m_tagFlag; public: bool hasChildItem() const { switch (m_tagFlag) { case LiteApi::TagPackage: case LiteApi::TagConstFolder: case LiteApi::TagValueFolder: case LiteApi::TagImportFolder: case LiteApi::TagFuncFolder: case LiteApi::TagTodoFolder: case LiteApi::TagStruct: case LiteApi::TagInterface: case LiteApi::TagType: return true; default: return false; } return false; } bool isFolder() const { switch (m_tagFlag) { case LiteApi::TagConstFolder: case LiteApi::TagValueFolder: case LiteApi::TagImportFolder: case LiteApi::TagFuncFolder: case LiteApi::TagTodoFolder: return true; default: return false; } return false; } }; #endif // GOLANGASTITEM_H
2,393
C++
.h
73
27.931507
82
0.638013
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,801
golangasticon.h
visualfc_liteide/liteidex/src/plugins/golangast/golangasticon.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangasticon.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGASTICON_H #define GOLANGASTICON_H #include <QIcon> #include "golangastapi/golangastapi.h" class GolangAstIconPublic { public: GolangAstIconPublic(); QIcon iconFromTag(const QString &tag) const; QIcon iconFromTagEnum(LiteApi::ASTTAG_ENUM tag, bool pub = true) const; protected: QIcon iconPackage; QIcon iconImport; QIcon iconImports; QIcon iconType; QIcon iconStruct; QIcon iconInterface; QIcon iconFunc; QIcon iconFuncs; QIcon iconVar; QIcon iconVars; QIcon iconConst; QIcon iconConsts; QIcon iconTypeMethod; QIcon iconTypeFactor; QIcon iconTypeVar; QIcon iconTodo; QIcon iconTodos; public: QIcon iconGofile; QIcon iconMakefile; QIcon iconProfile; }; class GolangAstIconPrivate { public: GolangAstIconPrivate(); QIcon iconFromTag(const QString &tag) const; QIcon iconFromTagEnum(LiteApi::ASTTAG_ENUM tag, bool pub = true) const; protected: QIcon iconPackage; QIcon iconImport; QIcon iconImports; QIcon iconType; QIcon iconStruct; QIcon iconInterface; QIcon iconFunc; QIcon iconFuncs; QIcon iconVar; QIcon iconVars; QIcon iconConst; QIcon iconConsts; QIcon iconTypeMethod; QIcon iconTypeFactor; QIcon iconTypeVar; QIcon iconTodo; QIcon iconTodos; }; class GolangAstIcon { public: static GolangAstIcon *instance(); QIcon iconFromTag(const QString &tag, bool pub = true) const; QIcon iconFromTagEnum(LiteApi::ASTTAG_ENUM tag, bool pub = true) const; protected: GolangAstIcon(); GolangAstIconPrivate icons_p; GolangAstIconPublic icons; }; #endif // GOLANGASTICON_H
2,828
C++
.h
92
27.543478
82
0.692674
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,802
golangastplugin.h
visualfc_liteide/liteidex/src/plugins/golangast/golangastplugin.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangastplugin.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGASTPLUGIN_H #define GOLANGASTPLUGIN_H #include "golangast_global.h" #include "liteapi/liteapi.h" #include "golangast.h" #include <QtPlugin> class GolangAstPlugin : public LiteApi::IPlugin { Q_OBJECT public: GolangAstPlugin(); virtual bool load(LiteApi::IApplication *app); }; class PluginFactory : public LiteApi::PluginFactoryT<GolangAstPlugin> { Q_OBJECT Q_INTERFACES(LiteApi::IPluginFactory) #if QT_VERSION >= 0x050000 Q_PLUGIN_METADATA(IID "liteidex.GolangAstPlugin") #endif public: PluginFactory() { m_info->setId("plugin/golangast"); m_info->setName("GolangAst"); m_info->setAuthor("visualfc"); m_info->setVer("X35"); m_info->setInfo("Golang Ast View"); m_info->appendDepend("plugin/quickopen"); m_info->appendDepend("plugin/liteenv"); } }; #endif // GOLANGASTPLUGIN_H
1,960
C++
.h
54
33.574074
82
0.682272
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,803
golangast.h
visualfc_liteide/liteidex/src/plugins/golangast/golangast.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangast.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGAST_H #define GOLANGAST_H #include "liteapi/liteapi.h" #include "golangastapi/golangastapi.h" #include "symboltreeview/symboltreeview.h" #include <QProcess> #include <QStandardItemModel> #include <QSortFilterProxyModel> class QStackedWidget; class AstWidget; class QLabel; class GolangAst : public LiteApi::IGolangAst { Q_OBJECT public: explicit GolangAst(LiteApi::IApplication *app, QObject *parent = 0); ~GolangAst(); virtual QIcon iconFromTag(const QString &tag, bool pub) const; virtual QIcon iconFromTagEnum(LiteApi::ASTTAG_ENUM tag, bool pub) const; public: void setEnable(bool b); void loadProject(LiteApi::IProject *project); void loadProjectPath(const QString &path); public slots: void astProjectEnable(bool); void astFileEnable(bool); void projectReloaded(); void projectChanged(LiteApi::IProject*); void editorCreated(LiteApi::IEditor*); void editorAboutToClose(LiteApi::IEditor *editor); void editorChanged(LiteApi::IEditor*); void editorSaved(LiteApi::IEditor*); void finishedProcess(int,QProcess::ExitStatus); void finishedProcessFile(int,QProcess::ExitStatus); void updateAst(); void updateAstNow(); void updateAstFile(); void updateAstNowFile(); void syncClassView(bool b); void syncOutline(bool b); void editorPositionChanged(); protected: LiteApi::IApplication *m_liteApp; QTimer *m_timer; QTimer *m_timerFile; QProcess *m_process; QProcess *m_processFile; QStringList m_updateFileNames; QStringList m_updateFilePaths; QString m_editorFileName; QString m_editorFilePath; QString m_workPath; QStackedWidget *m_stackedWidget; QLabel *m_blankWidget; AstWidget *m_projectAstWidget; LiteApi::IEditor *m_currentEditor; QPlainTextEdit *m_currentPlainTextEditor; QMap<LiteApi::IEditor*,AstWidget*> m_editorAstWidgetMap; QAction *m_syncClassViewAct; QAction *m_syncOutlineAct; bool m_isSyncClassView; bool m_isSyncOutline; QByteArray m_astviewSep; QAction *m_classViewToolAct; QAction *m_outlineToolAct; }; #endif // GOLANGAST_H
3,235
C++
.h
89
33.134831
82
0.72079
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,804
golangsymbol.h
visualfc_liteide/liteidex/src/plugins/golangast/golangsymbol.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangsymbol.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGSYMBOL_H #define GOLANGSYMBOL_H #include <quickopenapi/quickopenapi.h> #include <QProcess> class QStandardItemModel; class QSortFilterProxyModel; class QProcess; class GolangSymbol : public LiteApi::IQuickOpen { Q_OBJECT public: GolangSymbol(LiteApi::IApplication *app, QObject *parent = 0); virtual QString id() const; virtual QString info() const; virtual QString placeholderText() const; virtual void activate(); virtual QAbstractItemModel *model() const; virtual QModelIndex rootIndex() const; virtual void updateModel(); virtual QModelIndex filterChanged(const QString &text); virtual void indexChanged(const QModelIndex &index); virtual bool selected(const QString &text, const QModelIndex &index); virtual void cancel(); bool gotoIndex(const QModelIndex &index, bool saveHistroy); public slots: void finished(int code,QProcess::ExitStatus status); protected: LiteApi::IApplication *m_liteApp; QStandardItemModel *m_model; QSortFilterProxyModel *m_proxy; QProcess *m_process; Qt::CaseSensitivity m_matchCase; QByteArray m_astviewSep; bool m_importPath; }; class GolangSymbolFactory : public LiteApi::IQuickOpenAdapter { public: GolangSymbolFactory(LiteApi::IApplication *app, QObject *parent = 0); virtual QStringList mimeTypes() const; virtual LiteApi::IQuickOpen *load(const QString &mimeType); protected: LiteApi::IApplication *m_liteApp; GolangSymbol *m_symbol; }; #endif // GOLANGSYMBOL_H
2,733
C++
.h
68
36.455882
83
0.689266
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,805
golangastoptionfactory.h
visualfc_liteide/liteidex/src/plugins/golangast/golangastoptionfactory.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangastoptionfactory.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGASTOPTIONFACTORY_H #define GOLANGASTOPTIONFACTORY_H #include "liteapi/liteapi.h" class GolangAstOptionFactory : public LiteApi::IOptionFactory { public: GolangAstOptionFactory(LiteApi::IApplication *app, QObject *parent); virtual QStringList mimeTypes() const; virtual LiteApi::IOption *create(const QString &mimeType); protected: LiteApi::IApplication *m_liteApp; }; #endif // GOLANGASTOPTIONFACTORY_H
1,561
C++
.h
35
41.914286
83
0.688406
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,806
astwidget.h
visualfc_liteide/liteidex/src/plugins/golangast/astwidget.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: astwidget.h // Creator: visualfc <visualfc@gmail.com> #ifndef ASTWIDGET_H #define ASTWIDGET_H #include "liteapi/liteapi.h" #include "symboltreeview/symboltreeview.h" #include "qtc_editutil/filterlineedit.h" class GolangAstItem; class QStandardItemModel; class QSortFilterProxyModel; class AstWidget : public QWidget { Q_OBJECT public: explicit AstWidget(bool outline, LiteApi::IApplication *app, QWidget *parent = 0); public: void clear(); void updateModel(const QByteArray &data, const QByteArray &sep); void setWorkPath(const QString &path) { m_workPath = path; } QString workPath() const { return m_workPath; } GolangAstItem *astItemFromIndex(QModelIndex index); SymbolTreeView *tree() { return m_tree; } static void parserModel(QStandardItemModel *model, const QByteArray &data, const QByteArray &sep, bool flatMode, bool skipimport); bool trySyncIndex(const QString &filePath, int line, int column); void findModelIndex(const QModelIndex &parent, const QString &fileName, int line, int column, QModelIndexList &finds); public slots: bool filterModel(QString filter, QModelIndex parent, QModelIndex &first); void clearFilter(QModelIndex parent); void filterChanged(QString); void treeContextMenuRequested(QPoint); void gotoDefinition(); void viewImportDoc(); void doubleClicked(QModelIndex); void enterKeyPressed(const QModelIndex &index); protected: void gotoItemDefinition(GolangAstItem *item); bool m_bOutline; bool m_bFirst; SymbolTreeView *m_tree; Utils::FilterLineEdit *m_filterEdit; QStandardItemModel *m_model; QSortFilterProxyModel *proxyModel; LiteApi::IApplication *m_liteApp; QAction *m_gotoPosAct; QAction *m_importDocAct; QMenu *m_contextMenu; GolangAstItem *m_contextItem; QString m_workPath; }; #endif // ASTWIDGET_H
3,006
C++
.h
74
37.445946
134
0.696959
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,807
golangast_global.h
visualfc_liteide/liteidex/src/plugins/golangast/golangast_global.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangast_global.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGAST_GLOBAL_H #define GOLANGAST_GLOBAL_H #include <QtCore/qglobal.h> #if defined(GOLANGAST_LIBRARY) # define GOLANGASTSHARED_EXPORT Q_DECL_EXPORT #else # define GOLANGASTSHARED_EXPORT Q_DECL_IMPORT #endif #define OPTION_GOLANGAST "option/golangast" #define GOLANGAST_QUICKOPEN_SYMBOL_MATCHCASE "golangast/quickopensymbolmatchcase" #define GOLANGAST_QUICKOPNE_SYMBOL_IMPORTPATH "golangast/quickopensymbolimportpath" #define GOLANGAST_CLASSVIEW_SYNCEDITOR "golangast/classviewsynceditor" #define GOLANGAST_OUTLINE_SYNCEDITOR "golangast/outlinesynceditor" #endif // GOLANGAST_GLOBAL_H
1,691
C++
.h
36
45.805556
83
0.725288
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,808
golangastoption.h
visualfc_liteide/liteidex/src/plugins/golangast/golangastoption.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangastoption.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGASTOPTION_H #define GOLANGASTOPTION_H #include "liteapi/liteapi.h" namespace Ui { class GolangAstOption; } class GolangAstOption : public LiteApi::IOption { Q_OBJECT public: explicit GolangAstOption(LiteApi::IApplication *app, QObject *parent = 0); ~GolangAstOption(); virtual QWidget *widget(); virtual QString name() const; virtual QString mimeType() const; virtual void load(); virtual void save(); private: LiteApi::IApplication *m_liteApp; QWidget *m_widget; Ui::GolangAstOption *ui; }; #endif // GOLANGASTOPTION_H
1,729
C++
.h
45
35.088889
83
0.663876
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,809
finddocwidget.h
visualfc_liteide/liteidex/src/plugins/golangdoc/finddocwidget.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: finddocwidget.h // Creator: visualfc <visualfc@gmail.com> #ifndef FINDDOCWIDGET_H #define FINDDOCWIDGET_H #include "liteapi/liteapi.h" #include "qtc_editutil/filterlineedit.h" #include "qtc_editutil/fancylineedit.h" #include "qt_browser/chasewidget.h" #include "processex/processex.h" class SearchEdit; class QTextBrowser; class FindDocWidget : public QWidget { Q_OBJECT public: explicit FindDocWidget(LiteApi::IApplication *app, QWidget *parent = 0); ~FindDocWidget(); protected slots: void findDoc(); void extOutput(QByteArray,bool); void extFinish(bool,int,QString); void abortFind(); void stateChanged(QProcess::ProcessState); void openUrl(QUrl); void showHelp(); protected: QStringList docToHtml(const QString &url,const QString &file,const QStringList &comment); QStringList parserDoc(QString findText); QStringList parserPkgDoc(QString findText); LiteApi::IApplication *m_liteApp; SearchEdit *m_findEdit; ChaseWidget *m_chaseWidget; QAction* m_matchWordCheckAct; QAction* m_matchCaseCheckAct; QAction* m_useRegexpCheckAct; ProcessEx *m_process; LiteApi::IHtmlWidget *m_browser; QString m_findFlag; QString m_templateData; QString m_htmlData; }; #endif // FINDDOCWIDGET_H
2,335
C++
.h
62
34.903226
93
0.70194
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,810
golangdocoptionfactory.h
visualfc_liteide/liteidex/src/plugins/golangdoc/golangdocoptionfactory.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangdocoptionfactory.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGDOCOPTIONFACTORY_H #define GOLANGDOCOPTIONFACTORY_H #include "liteapi/liteapi.h" class GolangDocOptionFactory : public LiteApi::IOptionFactory { public: GolangDocOptionFactory(LiteApi::IApplication *app, QObject *parent); virtual QStringList mimeTypes() const; virtual LiteApi::IOption *create(const QString &mimeType); protected: LiteApi::IApplication *m_liteApp; }; #endif // GOLANGDOCOPTIONFACTORY_H
1,522
C++
.h
35
41.914286
82
0.704653
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,811
golangdocoption.h
visualfc_liteide/liteidex/src/plugins/golangdoc/golangdocoption.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangdocoption.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGDOCOPTION_H #define GOLANGDOCOPTION_H #include "liteapi/liteapi.h" namespace Ui { class GolangDocOption; } class GolangDocOption : public LiteApi::IOption { Q_OBJECT public: explicit GolangDocOption(LiteApi::IApplication *app, QObject *parent = 0); ~GolangDocOption(); virtual QWidget *widget(); virtual QString name() const; virtual QString mimeType() const; virtual void load(); virtual void save(); private: LiteApi::IApplication *m_liteApp; QWidget *m_widget; Ui::GolangDocOption *ui; }; #endif // GOLANGDOCOPTION_H
1,678
C++
.h
45
35.088889
82
0.682237
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,812
golangdoc.h
visualfc_liteide/liteidex/src/plugins/golangdoc/golangdoc.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangdoc.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGDOC_H #define GOLANGDOC_H #include "liteapi/liteapi.h" #include "litebuildapi/litebuildapi.h" #include "liteenvapi/liteenvapi.h" #include "liteeditorapi/liteeditorapi.h" #include "golangdocapi/golangdocapi.h" #include "qtc_editutil/fancylineedit.h" #include <QUrl> #include <QModelIndex> #include <QListView> class QLabel; class QListView; class QLineEdit; class QStringListModel; class QComboBox; class QPushButton; class ProcessEx; class DocumentBrowser; class QSortFilterProxyModel; class GolangApi; class FindDocWidget; class FindApiWidget; class ListViewEx : public QListView { Q_OBJECT public: void currentChanged(const QModelIndex &current, const QModelIndex &previous); signals: void currentIndexChanged(QModelIndex); }; class GolangDoc : public LiteApi::IGolangDoc { Q_OBJECT public: explicit GolangDoc(LiteApi::IApplication *app, QObject *parent = 0); ~GolangDoc(); public slots: virtual void openUrl(const QUrl &url, const QVariant &addin = QVariant()); virtual void activeBrowser(); public slots: //void rebuildApiData(); void appLoaded(); void toggledApiSearchWindow(bool); void toggledDocSearchWindow(bool); void loadEnv(); void loadGoroot(); void currentEnvChanged(LiteApi::IEnv*); void listCmd(); void listPkg(); void findOutput(QByteArray,bool); void findFinish(bool,int,QString); void godocFindPackage(QString name); void godocOutput(QByteArray,bool); void godocFinish(bool,int,QString); void highlighted(const QUrl &url); void documentLoaded(); void anchorChanged(const QString &anchor); void openApiUrl(QStringList); protected: QUrl parserUrl(const QUrl &url); void openUrlList(const QUrl &url); void openUrlFind(const QUrl &url); void openUrlPdoc(const QUrl &url); void openUrlFile(const QUrl &url); void updateTextDoc(const QUrl &url, const QByteArray &ba, const QString &header); void updateHtmlDoc(const QUrl &url, const QByteArray &ba, const QString &header = QString(), bool toNav = true); protected: LiteApi::IApplication *m_liteApp; QUrl m_openUrl; QVariant m_openUrlAddin; QUrl m_lastUrl; QString m_lastPath; FindDocWidget *m_findDocWidget; FindApiWidget *m_findApiWidget; DocumentBrowser *m_docBrowser; QComboBox *m_godocFindComboBox; ProcessEx *m_findProcess; ProcessEx *m_godocProcess; QAction *m_browserAct; QString m_goroot; QByteArray m_godocData; QByteArray m_findData; QString m_templateData; LiteApi::IEnvManager *m_envManager; //QString m_godocCmd; QStringList m_targetList; QMap<QString,QString> m_pathFileMap; QAction *m_apiSearchWindowAct; QAction *m_docSearchWindowAct; QMenu *m_configMenu; QString m_docFind; }; #endif // GOLANGDOC_H
3,914
C++
.h
116
30.715517
116
0.726721
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,813
golangdoc_global.h
visualfc_liteide/liteidex/src/plugins/golangdoc/golangdoc_global.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangdoc_global.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGDOC_GLOBAL_H #define GOLANGDOC_GLOBAL_H #include <QtCore/qglobal.h> #if defined(GOLANGDOC_LIBRARY) # define GOLANGDOCSHARED_EXPORT Q_DECL_EXPORT #else # define GOLANGDOCSHARED_EXPORT Q_DECL_IMPORT #endif #define GODOCFIND_MATCHWORD "godocfind/matchword" #define GODOCFIND_MATCHCASE "godocfind/matchcase" #define GODOCFIND_USEREGEXP "godocfind/useregexp" #endif // GOLANGDOC_GLOBAL_H
1,483
C++
.h
34
42.470588
82
0.706371
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,814
findapiwidget.h
visualfc_liteide/liteidex/src/plugins/golangdoc/findapiwidget.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: findapiwidget.h // Creator: visualfc <visualfc@gmail.com> #ifndef FINDAPIWIDGET_H #define FINDAPIWIDGET_H #include "liteapi/liteapi.h" #include "qtc_editutil/fancylineedit.h" #include "qt_browser/chasewidget.h" #include "processex/processex.h" #include <QWidget> #include <QThread> #include <QModelIndex> #include <QSet> class QListView; class QTreeView; class QStandardItemModel; class FindApiThread : public QThread { Q_OBJECT public: FindApiThread(QObject *parent); ~FindApiThread(); signals: void findApiOut(const QString &text, const QString &baseName, const QString &tipInfo, const QStringList &url); public: void setRootPath(const QString &rootPath); void findApi(const QString &text); void stopFind(); void setMatchCase(bool b); void findInFile(const QString &filePath, const QString &baseName); protected: virtual void run (); QString m_text; QString m_rootPath; bool m_bMatchCase; }; class FindApiEdit : public Utils::FancyLineEdit { Q_OBJECT public: FindApiEdit(QWidget *parent = 0) : Utils::FancyLineEdit(parent) { QIcon icon = QIcon::fromTheme(layoutDirection() == Qt::LeftToRight ? QLatin1String("edit-clear-locationbar-rtl") : QLatin1String("edit-clear-locationbar-ltr"), QIcon::fromTheme(QLatin1String("edit-clear"), QIcon(QLatin1String("icon:images/editclear.png")))); setButtonPixmap(Right, icon.pixmap(16)); setPlaceholderText(tr("Search")); setButtonToolTip(Right, tr("Stop Search")); } void showStopButton(bool b) { this->setButtonVisible(Right,b); } }; class FindApiWidget : public QWidget { Q_OBJECT public: explicit FindApiWidget(LiteApi::IApplication *app,QWidget *parent = 0); ~FindApiWidget(); signals: void openApiUrl(QStringList); public slots: void findApi(); void findApiOut(const QString &text, const QString &baseName, const QString &tipInfo, const QStringList &url); void findApiFinished(); void doubleClickedApi(QModelIndex); // void rebuildApiData(); //QString apiDataFile() const; protected: FindApiThread *m_findThread; LiteApi::IApplication *m_liteApp; FindApiEdit *m_findEdit; ChaseWidget *m_chaseWidget; QTreeView *m_apiView; QStandardItemModel *m_model; //ProcessEx *m_rebuildThread; QAction *m_findAct; QAction *m_caseCheckAct; //QAction *m_rebuildAct; }; #endif // FINDAPIWIDGET_H
3,734
C++
.h
103
31.378641
124
0.657451
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,815
golangdocplugin.h
visualfc_liteide/liteidex/src/plugins/golangdoc/golangdocplugin.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangdocplugin.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGDOCPLUGIN_H #define GOLANGDOCPLUGIN_H #include "golangdoc_global.h" #include "liteapi/liteapi.h" #include <QtPlugin> class GolangDoc; class GolangDocPlugin : public LiteApi::IPlugin { Q_OBJECT public: GolangDocPlugin(); ~GolangDocPlugin(); virtual bool load(LiteApi::IApplication *app); protected slots: void currentEditorChanged(LiteApi::IEditor*); protected: GolangDoc *m_golangDoc; }; class PluginFactory : public LiteApi::PluginFactoryT<GolangDocPlugin> { Q_OBJECT Q_INTERFACES(LiteApi::IPluginFactory) #if QT_VERSION >= 0x050000 Q_PLUGIN_METADATA(IID "liteidex.GolangDocPlugin") #endif public: PluginFactory() { m_info->setId("plugin/golangdoc"); m_info->setName("GolangDoc"); m_info->setAuthor("visualfc"); m_info->setVer("X36.1"); m_info->setInfo("Golang Documents Browser"); m_info->appendDepend("plugin/liteenv"); m_info->appendDepend("plugin/liteeditor"); } }; #endif // GOLANGDOCPLUGIN_H
2,096
C++
.h
59
32.745763
82
0.688976
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,816
golangcodeoption.h
visualfc_liteide/liteidex/src/plugins/golangcode/golangcodeoption.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangcodeoption.h // Creator: Nik-U <niku@vaxxine.com> #ifndef GOLANGCODEOPTION_H #define GOLANGCODEOPTION_H #include "liteapi/liteapi.h" namespace Ui { class GolangCodeOption; } class GolangCodeOption : public LiteApi::IOption { Q_OBJECT public: explicit GolangCodeOption(LiteApi::IApplication *app, QObject *parent = 0); ~GolangCodeOption(); virtual QWidget *widget(); virtual QString name() const; virtual QString mimeType() const; virtual void load(); virtual void save(); private: LiteApi::IApplication *m_liteApp; QWidget *m_widget; Ui::GolangCodeOption *ui; }; #endif // GOLANGCODEOPTION_H
1,682
C++
.h
45
35.177778
82
0.682403
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,817
golangcode.h
visualfc_liteide/liteidex/src/plugins/golangcode/golangcode.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangcode.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGCODE_H #define GOLANGCODE_H #include "liteapi/liteapi.h" #include "liteeditorapi/liteeditorapi.h" #include "liteenvapi/liteenvapi.h" #include "golangastapi/golangastapi.h" #include "processex/processex.h" class QProcess; class QLabel; class ImportPkgTip : public QObject { Q_OBJECT public: explicit ImportPkgTip(LiteApi::IApplication *app, QObject *parent = 0); ~ImportPkgTip(); void showPkgHint(int startpos, const QStringList &pkg, QPlainTextEdit *ed); void setWidget(QWidget *widget); void hide(); signals: void import(QString,int); protected: bool eventFilter(QObject *obj, QEvent *e); LiteApi::IApplication *m_liteApp; QWidget *m_editWidget; QWidget *m_popup; QLabel *m_infoLabel; QLabel *m_pkgLabel; QStringList m_pkg; int m_startPos; int m_pkgIndex; bool m_escapePressed; bool m_enterPressed; }; class GolangCode : public QObject { Q_OBJECT public: explicit GolangCode(LiteApi::IApplication *app, QObject *parent = 0); ~GolangCode(); void setCompleter(LiteApi::ICompleter *completer); void gocodeUpdataLibpath(const QProcessEnvironment &env); void gocodeReset(const QProcessEnvironment &env); void cgoComplete(); void loadPkgList(); // void loadImportsList(const QProcessEnvironment &env); public slots: void currentEditorChanged(LiteApi::IEditor*); void currentEnvChanged(LiteApi::IEnv*); void prefixChanged(QTextCursor,QString,bool froce); void wordCompleted(QString,QString,QString); void started(); void finished(int,QProcess::ExitStatus); void gocodeImportStarted(); void gocodeImportFinished(int,QProcess::ExitStatus); // void importFinished(int,QProcess::ExitStatus); void broadcast(QString,QString,QString); void applyOption(QString); void appLoaded(); void import(const QString &import, int startPos); bool findImport(const QString &id); void customGOPATHChanged(const QString &buildPath); void globalGOPATHChanged(); protected: QStringList parserCgoInEditor(int nmax = 1024); void updateEditorGOPATH(); static int g_gocodeInstCount; LiteApi::IApplication *m_liteApp; LiteApi::ITextEditor *m_editor; LiteApi::ICompleter *m_completer; QWidget *m_pkgWidget; ImportPkgTip *m_pkgImportTip; QMultiMap<QString,QString> m_pkgListMap; QStringList m_importList; QStringList m_allImportList; QMultiMap<QString,QString> m_extraPkgListMap; QString m_gobinCmd; QString m_preWord; QString m_prefix; QString m_lastPrefix; QFileInfo m_fileInfo; Process *m_gocodeProcess; Process *m_gocodeSetProcess; Process *m_gocodeImportProcess; // Process *m_importProcess; QByteArray m_writeData; LiteApi::IEnvManager *m_envManager; LiteApi::IGolangAst *m_golangAst; QString m_gocodeCmd; QString m_lastGopathEnv; bool m_closeOnExit; bool m_allImportHint; }; #endif // GOLANGCODE_H
4,107
C++
.h
115
32.295652
82
0.71149
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,818
golangcodeoptionfactory.h
visualfc_liteide/liteidex/src/plugins/golangcode/golangcodeoptionfactory.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangcodeoptionfactory.h // Creator: Nik-U <niku@vaxxine.com> #ifndef GOLANGCODEOPTIONFACTORY_H #define GOLANGCODEOPTIONFACTORY_H #include "liteapi/liteapi.h" class GolangCodeOptionFactory : public LiteApi::IOptionFactory { public: GolangCodeOptionFactory(LiteApi::IApplication *app, QObject *parent); virtual QStringList mimeTypes() const; virtual LiteApi::IOption *create(const QString &mimeType); protected: LiteApi::IApplication *m_liteApp; }; #endif // GOLANGCODEOPTIONFACTORY_H
1,523
C++
.h
35
41.942857
82
0.704178
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,819
golangcode_global.h
visualfc_liteide/liteidex/src/plugins/golangcode/golangcode_global.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangcode_global.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGCODE_GLOBAL_H #define GOLANGCODE_GLOBAL_H #include <QtCore/qglobal.h> #if defined(GOLANGCODE_LIBRARY) # define GOLANGCODESHARED_EXPORT Q_DECL_EXPORT #else # define GOLANGCODESHARED_EXPORT Q_DECL_IMPORT #endif #define GOLANGCODE_EXITCLOSE "golangcode/exitclose" #define GOLANGCODE_AUTOBUILD "golangcode/gocodeautobuild" #define GOLANGCODE_IMPORTHINT_GOPATH "golangcode/importhintgopath" #endif // GOLANGCODE_GLOBAL_H
1,517
C++
.h
34
43.470588
82
0.712449
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,820
golangcodeplugin.h
visualfc_liteide/liteidex/src/plugins/golangcode/golangcodeplugin.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangcodeplugin.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGCODEPLUGIN_H #define GOLANGCODEPLUGIN_H #include "golangcode_global.h" #include "liteapi/liteapi.h" #include <QtPlugin> class GolangCode; class GolangCodePlugin : public LiteApi::IPlugin { Q_OBJECT public: GolangCodePlugin(); virtual bool load(LiteApi::IApplication *app); virtual QStringList dependPluginList() const; protected slots: void appLoaded(); void editorCreated(LiteApi::IEditor*); void currentEditorChanged(LiteApi::IEditor*); protected: LiteApi::IApplication *m_liteApp; GolangCode *m_code; }; class PluginFactory : public LiteApi::PluginFactoryT<GolangCodePlugin> { Q_OBJECT Q_INTERFACES(LiteApi::IPluginFactory) #if QT_VERSION >= 0x050000 Q_PLUGIN_METADATA(IID "liteidex.GolangCodePlugin") #endif public: PluginFactory() { m_info->setId("plugin/golangcode"); m_info->appendDepend("plugin/golangast"); m_info->setName("GolangCode"); m_info->setAuthor("visualfc"); m_info->setVer("X38.1"); m_info->setInfo("Golang Gocode Support"); m_info->appendDepend("plugin/liteenv"); } }; #endif // GOLANGCODEPLUGIN_H
2,229
C++
.h
62
33.064516
82
0.69334
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,821
qsqleditor.h
visualfc_liteide/liteidex/src/plugins/qsqleditor/qsqleditor.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2013 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: qsqleditor.h // Creator: visualfc <visualfc@gmail.com> #ifndef QSQLEDITOR_H #define QSQLEDITOR_H #include "liteapi.h" #include "qsqldbfile.h" #include <QModelIndex> #include <QtSql/qsql.h> namespace Ui { class QSqlEditor; } class QStandardItemModel; class QSqlEditor : public LiteApi::IEditor { Q_OBJECT public: explicit QSqlEditor(LiteApi::IApplication *app); ~QSqlEditor(); public: virtual QWidget *widget(); virtual QString name() const; public: virtual bool open(const QString &fileName,const QString &mimeType); virtual bool reload(); virtual bool save(); virtual bool saveAs(const QString &fileName); virtual void setReadOnly(bool b); virtual bool isReadOnly() const; virtual bool isModified() const; virtual QString fileName() const; virtual QString mimeType() const; virtual LiteApi::IFile *file(); public: void setFile(QSqlDbFile *file); void loadDatabase(); protected slots: void dbTreeContextMenuRequested(const QPoint& pt); void editorTable(); protected: void appendTableItems(QSql::TableType type); QString tableTypeNames(int type) const; QString tableTypeName(int type) const; protected: LiteApi::IApplication *m_liteApp; QSqlDbFile *m_file; QWidget *m_widget; Ui::QSqlEditor *ui; bool m_bReadOnly; QStandardItemModel *m_dbModel; QMenu *m_tableMenu; QAction *m_infoAct; QAction *m_editorAct; QModelIndex m_contextIndex; }; #endif // QSQLEDITOR_H
2,527
C++
.h
75
30.853333
82
0.700327
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,822
sqlitefile.h
visualfc_liteide/liteidex/src/plugins/qsqleditor/sqlitefile.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2013 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: sqlitefile.h // Creator: visualfc <visualfc@gmail.com> #ifndef SQLITEFILE #define SQLITEFILE #include "qsqldbfile.h" class SQLiteFile : public QSqlDbFile { Q_OBJECT public: SQLiteFile(LiteApi::IApplication *app, QObject *parent = 0); public: virtual bool open(const QString &fileName, const QString &mimeType); virtual QString mimeType() const; protected: LiteApi::IApplication *m_liteApp; }; #endif // SQLITEFILE
1,456
C++
.h
37
37.702703
82
0.686926
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,823
sqltablemodel.h
visualfc_liteide/liteidex/src/plugins/qsqleditor/sqltablemodel.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2013 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: sqltablemodel.h // Creator: visualfc <visualfc@gmail.com> #ifndef SQLTABLEMODEL_H #define SQLTABLEMODEL_H #include <QSqlTableModel> #include <QColor> class SqlTableModel : public QSqlTableModel { Q_OBJECT public: explicit SqlTableModel(QObject *parent = 0,QSqlDatabase db = QSqlDatabase()); QVariant data(const QModelIndex &idx, int role = Qt::DisplayRole) const; signals: public slots: protected: QColor m_blobColor; }; #endif // SQLTABLEMODEL_H
1,486
C++
.h
38
37.552632
82
0.693001
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,824
qsqleditorplugin.h
visualfc_liteide/liteidex/src/plugins/qsqleditor/qsqleditorplugin.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2013 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: qsqleditorplugin.h // Creator: visualfc <visualfc@gmail.com> #ifndef QSQLEDITORPLUGIN_H #define QSQLEDITORPLUGIN_H #include "qsqleditor_global.h" #include "liteapi.h" #include <QtPlugin> class QSqlEditorPlugin : public LiteApi::IPlugin { Q_OBJECT Q_INTERFACES(LiteApi::IPlugin) public: QSqlEditorPlugin(); virtual bool initWithApp(LiteApi::IApplication *app); }; #endif // QSQLEDITORPLUGIN_H
1,430
C++
.h
36
38.166667
82
0.690647
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,825
qsqleditor_global.h
visualfc_liteide/liteidex/src/plugins/qsqleditor/qsqleditor_global.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2013 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: qsqleditor_global.h // Creator: visualfc <visualfc@gmail.com> #ifndef QSQLEDITOR_GLOBAL_H #define QSQLEDITOR_GLOBAL_H #include <QtCore/qglobal.h> #if defined(QSQLEDITOR_LIBRARY) # define QSQLEDITORSHARED_EXPORT Q_DECL_EXPORT #else # define QSQLEDITORSHARED_EXPORT Q_DECL_IMPORT #endif #endif // QSQLEDITOR_GLOBAL_H
1,339
C++
.h
31
42.064516
82
0.690951
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,826
tableviewwidget.h
visualfc_liteide/liteidex/src/plugins/qsqleditor/tableviewwidget.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2013 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: tableviewwidget.h // Creator: visualfc <visualfc@gmail.com> #ifndef TABLEVIEWWIDGET_H #define TABLEVIEWWIDGET_H #include <QWidget> #include <QSqlDatabase> namespace Ui { class TableViewWidget; } class SqlTableModel; class SqlItemDelegate; class TableViewWidget : public QWidget { Q_OBJECT public: explicit TableViewWidget(QSqlDatabase &db, QWidget *parent = 0); ~TableViewWidget(); void setTable(const QString &table); private: Ui::TableViewWidget *ui; SqlTableModel *m_model; SqlItemDelegate *m_delegate; }; #endif // TABLEVIEWWIDGET_H
1,601
C++
.h
44
34.522727
82
0.693101
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,827
qsqlfilefactory.h
visualfc_liteide/liteidex/src/plugins/qsqleditor/qsqlfilefactory.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2013 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: qsqlfilefactory.h // Creator: visualfc <visualfc@gmail.com> #ifndef QSQLFILEFACTORY_H #define QSQLFILEFACTORY_H #include "liteapi.h" class QSqlFileFactory : public LiteApi::IEditorFactory { public: QSqlFileFactory(LiteApi::IApplication *app, QObject *parent); virtual QStringList mimeTypes() const; virtual LiteApi::IEditor *open(const QString &fileName, const QString &mimeType); virtual bool targetInfo(const QString &fileName, const QString &mimetype, QString &target, QString &targetPath, QString &workPath) const; protected: LiteApi::IApplication *m_liteApp; }; #endif // QSQLFILEFACTORY_H
1,638
C++
.h
36
43.805556
141
0.704446
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,828
qsqldbfile.h
visualfc_liteide/liteidex/src/plugins/qsqleditor/qsqldbfile.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2013 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: qsqldbfile.h // Creator: visualfc <visualfc@gmail.com> #ifndef QSQLDBFILE_H #define QSQLDBFILE_H #include "liteapi.h" #include <QSqlDatabase> class QSqlDbFile : public LiteApi::IFile { public: QSqlDbFile(LiteApi::IApplication *app, QObject *parent); ~QSqlDbFile(); public: virtual bool open(const QString &fileName, const QString &mimeType); virtual bool reload(); virtual bool save(const QString &fileName); virtual bool isReadOnly() const; virtual QString fileName() const; virtual QString mimeType() const; public: QSqlDatabase & db(); protected: LiteApi::IApplication *m_liteApp; QSqlDatabase m_db; }; #endif // QSQLDBFILE_H
1,698
C++
.h
45
35.666667
82
0.688296
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,830
filebrowser_global.h
visualfc_liteide/liteidex/src/plugins/filebrowser/filebrowser_global.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: filebrowser_global.h // Creator: visualfc <visualfc@gmail.com> #ifndef FILEBROWSER_GLOBAL_H #define FILEBROWSER_GLOBAL_H #include <QtCore/qglobal.h> #if defined(FILEBROWSER_LIBRARY) # define FILEBROWSERSHARED_EXPORT Q_DECL_EXPORT #else # define FILEBROWSERSHARED_EXPORT Q_DECL_IMPORT #endif #define FILEBROWSER_SHOWHIDDENFILES "FileBrowser/ShowHiddenFiles" #define FILEBROWSER_SHOWDETAILS "FileBrowser/ShowDetails" #endif // FILEBROWSER_GLOBAL_H
1,471
C++
.h
33
43.424242
82
0.709002
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,831
filebrowserplugin.h
visualfc_liteide/liteidex/src/plugins/filebrowser/filebrowserplugin.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: filebrowserplugin.h // Creator: visualfc <visualfc@gmail.com> #ifndef FILEBROWSERPLUGIN_H #define FILEBROWSERPLUGIN_H #include "filebrowser_global.h" #include "liteapi/liteapi.h" #include <QtPlugin> class FileBrowser; class FileBrowserPlugin : public LiteApi::IPlugin { Q_OBJECT public: FileBrowserPlugin(); virtual bool load(LiteApi::IApplication *app); protected: FileBrowser *m_browser; }; class PluginFactory : public LiteApi::PluginFactoryT<FileBrowserPlugin> { Q_OBJECT Q_INTERFACES(LiteApi::IPluginFactory) #if QT_VERSION >= 0x050000 Q_PLUGIN_METADATA(IID "liteidex.FileBrowserPlugin") #endif public: PluginFactory() { m_info->setId("plugin/filebrowser"); m_info->setName("FileBrowser"); m_info->setAuthor("visualfc"); m_info->setVer("X37.1"); m_info->setInfo("File System Browser"); } }; #endif // FILEBROWSERPLUGIN_H
1,929
C++
.h
55
32.527273
82
0.689674
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,832
filebrowser.h
visualfc_liteide/liteidex/src/plugins/filebrowser/filebrowser.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: filebrowser.h // Creator: visualfc <visualfc@gmail.com> #ifndef FILEBROWSER_H #define FILEBROWSER_H #include "liteapi/liteapi.h" #include "folderview/folderview.h" #include <QModelIndex> class QComboBox; class QLineEdit; class FileBrowser : public QObject { Q_OBJECT public: explicit FileBrowser(LiteApi::IApplication *app,QObject *parent = 0); virtual ~FileBrowser(); public slots: void showHideFiles(bool b); bool isShowHideFiles() const; void visibilityChanged(bool); void activatedRoot(QString); void syncFileModel(bool); void reloadFileModel(); void currentEditorChanged(LiteApi::IEditor*); void aboutToShowContextMenu(QMenu* menu,LiteApi::FILESYSTEM_CONTEXT_FLAG flag,const QFileInfo &fileInfo); protected slots: void setFolderToRoot(); void cdUp(); void openFolderInNewWindow(); void addToFolders(); void executeFile(); void debugFile(); void enterKeyPressedFolderView(const QModelIndex &index); void doubleClickedFolderView(const QModelIndex &index); protected: void addFolderToRoot(const QString &path); protected: LiteApi::IApplication *m_liteApp; QWidget *m_widget; FolderView *m_folderView; QComboBox *m_rootCombo; //QComboBox *m_filterCombo; //QToolBar *m_filterToolBar; QToolBar *m_rootToolBar; QAction *m_syncAct; QAction *m_showHideFilesAct; QAction *m_showDetailsAct; QAction *m_reloadAct; QMenu *m_filterMenu; protected: QAction *m_toolWindowAct; QAction *m_cdupAct; QAction *m_setRootAct; QAction *m_openExplorerAct; QAction *m_openFolderInNewWindowAct; QAction *m_addToFoldersAct; QAction *m_executeFileAct; QAction *m_debugFileAct; }; #endif // FILEBROWSER_H
2,800
C++
.h
79
32.35443
109
0.704345
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,833
filebrowseroption.h
visualfc_liteide/liteidex/src/plugins/filebrowser/filebrowseroption.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: filebrowseroption.h // Creator: visualfc <visualfc@gmail.com> #ifndef FILEBROWSEROPTION_H #define FILEBROWSEROPTION_H #include "liteapi/liteapi.h" namespace Ui { class FileBrowserOption; } class FileBrowserOption : public LiteApi::IOption { Q_OBJECT public: explicit FileBrowserOption(LiteApi::IApplication *app, QObject *parent = 0); ~FileBrowserOption(); virtual QWidget *widget(); virtual QString name() const; virtual QString mimeType() const; virtual void load(); virtual void save(); private: LiteApi::IApplication *m_liteApp; QWidget *m_widget; Ui::FileBrowserOption *ui; }; #endif // FILEBROWSEROPTION_H
1,696
C++
.h
45
35.488889
82
0.685714
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,834
filebrowseroptionfactory.h
visualfc_liteide/liteidex/src/plugins/filebrowser/filebrowseroptionfactory.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: filebrowseroptionfactory.h // Creator: visualfc <visualfc@gmail.com> #ifndef FILEBROWSEROPTIONFACTORY_H #define FILEBROWSEROPTIONFACTORY_H #include "liteapi/liteapi.h" class FileBrowserOptionFactory : public LiteApi::IOptionFactory { public: FileBrowserOptionFactory(LiteApi::IApplication *app, QObject *parent); virtual QStringList mimeTypes() const; virtual LiteApi::IOption *create(const QString &mimeType); protected: LiteApi::IApplication *m_liteApp; }; #endif // FILEBROWSEROPTIONFACTORY_H
1,534
C++
.h
35
42.257143
82
0.707023
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,835
golangeditoptionfactory.h
visualfc_liteide/liteidex/src/plugins/golangedit/golangeditoptionfactory.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangeditoptionfactory.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGEDITOPTIONFACTORY_H #define GOLANGEDITOPTIONFACTORY_H #include "liteapi/liteapi.h" class GolangEditOptionFactory : public LiteApi::IOptionFactory { public: GolangEditOptionFactory(LiteApi::IApplication *app, QObject *parent); virtual QStringList mimeTypes() const; virtual LiteApi::IOption *create(const QString &mimeType); protected: LiteApi::IApplication *m_liteApp; }; #endif // GOLANGEDITOPTIONFACTORY_H
1,528
C++
.h
35
42.085714
82
0.705843
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,836
golangeditoption.h
visualfc_liteide/liteidex/src/plugins/golangedit/golangeditoption.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangeditoption.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGEDITOPTION_H #define GOLANGEDITOPTION_H #include "liteapi/liteapi.h" namespace Ui { class GolangEditOption; } class GolangEditOption : public LiteApi::IOption { Q_OBJECT public: explicit GolangEditOption(LiteApi::IApplication *app, QObject *parent = 0); ~GolangEditOption(); virtual QWidget *widget(); virtual QString name() const; virtual QString mimeType() const; virtual void load(); virtual void save(); private: LiteApi::IApplication *m_liteApp; QWidget *m_widget; Ui::GolangEditOption *ui; }; #endif // GOLANGEDITOPTION_H
1,687
C++
.h
45
35.288889
82
0.683985
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,837
golangedit_global.h
visualfc_liteide/liteidex/src/plugins/golangedit/golangedit_global.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangedit_global.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGEDIT_GLOBAL_H #define GOLANGEDIT_GLOBAL_H #include <QtCore/qglobal.h> #if defined(GOLANGEDIT_LIBRARY) # define GOLANGEDITSHARED_EXPORT Q_DECL_EXPORT #else # define GOLANGEDITSHARED_EXPORT Q_DECL_IMPORT #endif #define OPTION_GOLANGEDIT "option/golangedit" #define GOLANGEDIT_MOUSEINFO "golangedit/mouseinfo" #define GOLANGEDIT_MOUSENAVIGATIOIN "golangedit/mousenavigation" #define GOLANGEDIT_GOROOTSOURCEREADONLY "golangedit/gorootsourcereadonly" #endif // GOLANGEDIT_GLOBAL_H
1,579
C++
.h
35
43.971429
82
0.718648
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,838
golangeditplugin.h
visualfc_liteide/liteidex/src/plugins/golangedit/golangeditplugin.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangeditplugin.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGEDITPLUGIN_H #define GOLANGEDITPLUGIN_H #include "golangedit_global.h" #include "liteapi/liteapi.h" class GolangEditPlugin : public LiteApi::IPlugin { Q_OBJECT public: GolangEditPlugin(); virtual bool load(LiteApi::IApplication *app); }; class PluginFactory : public LiteApi::PluginFactoryT<GolangEditPlugin> { Q_OBJECT Q_INTERFACES(LiteApi::IPluginFactory) #if QT_VERSION >= 0x050000 Q_PLUGIN_METADATA(IID "liteidex.GolangEditPlugin") #endif public: PluginFactory() { m_info->setId("plugin/GolangEdit"); m_info->setVer("X38.2"); m_info->setName("GolangEdit"); m_info->setAuthor("visualfc"); m_info->setInfo("Golang Edit Support"); m_info->appendDepend("plugin/liteenv"); m_info->appendDepend("plugin/liteeditor"); m_info->appendDepend("plugin/litefind"); } }; #endif // GOLANGEDITPLUGIN_H
1,985
C++
.h
53
34.528302
82
0.681724
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,840
golanghighlighterfactory.h
visualfc_liteide/liteidex/src/plugins/golangedit/golanghighlighterfactory.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golanghighlighterfactory.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGHIGHLIGHTERFACTORY_H #define GOLANGHIGHLIGHTERFACTORY_H #include "liteeditorapi/liteeditorapi.h" class GolangHighlighterFactory : public LiteApi::IHighlighterFactory { Q_OBJECT public: explicit GolangHighlighterFactory(QObject *parent = 0); virtual QStringList mimeTypes() const; virtual TextEditor::SyntaxHighlighter* create(LiteApi::ITextEditor *editor, QTextDocument *doc, const QString &mimeType); }; #endif // GOLANGHIGHLIGHTERFACTORY_H
1,563
C++
.h
34
44.382353
125
0.711475
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,841
golangedit.h
visualfc_liteide/liteidex/src/plugins/golangedit/golangedit.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangedit.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGEDIT_H #define GOLANGEDIT_H #include <liteapi/liteapi.h> #include <liteeditorapi/liteeditorapi.h> #include <liteenvapi/liteenvapi.h> #include "processex/processex.h" #include "textoutput/textoutput.h" #include "golangfilesearch.h" #include "goplsfilesearch.h" /* a tool for answering questions about Go source code. callees show possible targets of selected function call callers show possible callers of selected function callstack show path from callgraph root to selected function definition show declaration of selected identifier describe describe selected syntax: definition, methods, etc freevars show free variables of selection implements show 'implements' relation for selected type or method peers show send/receive corresponding to selected channel op referrers show all refs to entity denoted by selected identifier what show basic information about the selected syntax node pointsto whicherrs */ struct SourceQuery { QString cmdName; QString workPath; QString filePath; QString fileName; QString action; QString output; QString mode; int offset; int offset2; bool success; }; class GoAddTagsDialog; class GoRemoveTagsDialog; class GolangEdit : public QObject { Q_OBJECT public: explicit GolangEdit(LiteApi::IApplication *app, QObject *parent = 0); virtual ~GolangEdit(); QTextCursor textCursorForPos(const QPoint &globalPos); public slots: void currentEnvChanged(LiteApi::IEnv*); void applyOption(const QString &option); void editorCreated(LiteApi::IEditor*); void currentEditorChanged(LiteApi::IEditor*); void updateLink(const QTextCursor &cursor, const QPoint &pos, bool nav); void aboutToShowContextMenu(); void editorViewGodoc(); void editorFindInfo(); void editorJumpToDecl(); void editorFindUsages(); void editorFindUsagesGlobal(); void editorFindUsagesSkipGoroot(); void editorFindUsagesSkipTests(); void editorRenameSymbol(); void editorRenameSymbolGlobal(); void editorRenameSymbolSkipGoroot(); void editorComment(); void findDefStarted(); void findDefFinish(int code,QProcess::ExitStatus status); void findInfoStarted(); void findInfoFinish(int, QProcess::ExitStatus); void findInfoGopherOutput(const QByteArray &data,bool bError); void findLinkStarted(); void findLinkFinish(int, QProcess::ExitStatus); void searchTextChanged(const QString &word); void sourceQueryFinished(int code, QProcess::ExitStatus status); void sourcequeryError(QProcess::ProcessError code); //void updateOracleInfo(const QString &action, const QString &text); void dbclickSourceQueryOutput(const QTextCursor &cursor); void runSourceQueryAction(const QString &action, const QString &scope = "."); void runSourceQueryByInfo(const QString &action, const QString &scope = "."); void sourceWhat(); void sourceCallees(); void sourceCallers(); void sourceCallstack(); void sourceDefinition(); void sourceDescribe(); void sourceFreevars(); void sourceImplements(); void sourceImplementsGopath(); void sourcePeers(); void sourceReferrers(); void sourcePointsto(); void sourceWhicherrs(); void sourceQueryStateChanged(QProcess::ProcessState state); void stopSourceQueryProcess(); void goplsFindAllReferences(); void goplsFindAllImplementations(); void goAddTags(); void goRemoveTags(); void execGoModifyTags(const QString &args); QString getGoModifyTagsInfo() const; int byteOffsetToColumn(const QString &fileName, int line, int col); protected: LiteApi::IApplication *m_liteApp; LiteApi::IEnvManager *m_envManager; LiteApi::ILiteEditor *m_editor; QPlainTextEdit *m_plainTextEdit; TextOutput *m_sourceQueryOutput; QAction *m_sourceQueryOutputAct; QAction *m_stopSourceQueryAct; bool m_enableMouseUnderInfo; bool m_enableMouseNavigation; bool m_gorootSourceReadOnly; bool m_useGocodeInfo; bool m_useGoModule; QTextCursor m_linkCursor; LiteApi::Link m_lastLink; QAction *m_findInfoAct; QAction *m_jumpDeclAct; QAction *m_jumpDeclToolBarAct; QAction *m_findUseAct; QAction *m_findAllUseWithGorootAct; QAction *m_findAllUseSkipGorootAct; QAction *m_findAllUseSkipTestsAct; QAction *m_renameSymbolAct; QAction *m_renameAllSymbolWithGorootAct; QAction *m_renameAllSymbolSkipGorootAct; QAction *m_viewGodocAct; QAction *m_sourceWhatAct; QAction *m_sourceCalleesAct; QAction *m_sourceCallersAct; QAction *m_sourceCallstackAct; QAction *m_sourceDefinitionAct; QAction *m_sourceDescribeAct; QAction *m_sourceFreevarsAct; QAction *m_sourceImplementsAct; QAction *m_sourceImplementsGopathAct; QAction *m_sourcePeersAct; QAction *m_sourceReferrersAct; QAction *m_sourcePointstoAct; QAction *m_sourceWhicherrs; QAction *m_goAddTagsAct; QAction *m_goRemoveTagAct; QAction *m_goplsAllReferencesAct; QAction *m_goplsAllImplementationsAct; Process *m_findDefProcess; Process *m_findInfoProcess; Process *m_findLinkProcess; Process *m_sourceQueryProcess; //GopherLib m_findInfoGopher; SourceQuery m_sourceQueryInfo; QByteArray m_findDefData; QByteArray m_srcData; QTextCursor m_lastCursor; QTextCursor m_findLastCursor; QByteArray m_findInfoData; GolangFileSearch *m_fileSearch; GoplsFileSearch *m_goplsSearch; GoAddTagsDialog *m_addTagsDlg; GoRemoveTagsDialog *m_removeTagsDlg; }; #endif // GOLANGEDIT_H
6,987
C++
.h
182
33.32967
83
0.71662
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,842
goremovetagsdialog.h
visualfc_liteide/liteidex/src/plugins/golangedit/goremovetagsdialog.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2017 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: goremovetagsdialog.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOREMOVETAGSDIALOG_H #define GOREMOVETAGSDIALOG_H #include <QDialog> namespace Ui { class GoRemoveTagsDialog; } class GoRemoveTagsDialog : public QDialog { Q_OBJECT public: explicit GoRemoveTagsDialog(QWidget *parent = 0); ~GoRemoveTagsDialog(); void setInfo(const QString &info); QString arguments() const; public slots: void updateArguments(); private: Ui::GoRemoveTagsDialog *ui; }; #endif // GOREMOVETAGSDIALOG_H
1,588
C++
.h
42
34.857143
83
0.67601
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,843
golanghighlighter.h
visualfc_liteide/liteidex/src/plugins/golangedit/golanghighlighter.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golanghighlighter.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGHIGHLIGHTER_H #define GOLANGHIGHLIGHTER_H #include "qtc_texteditor/syntaxhighlighter.h" #include "liteapi/liteapi.h" #include <QTextCharFormat> #include <QRegExp> class GolangHighlighter : public TextEditor::SyntaxHighlighter { Q_OBJECT public: GolangHighlighter(LiteApi::ITextEditor *editor, QTextDocument *document = 0); virtual ~GolangHighlighter(); virtual void highlightBlock(const QString &text); private: void highlightBlockHelper(const QString &text); void setFoldingIndent(const QTextBlock &block, int indent); void highlightWord(QStringRef word, int position, int length); void highlightLine(const QString &line, int position, int length, const QTextCharFormat &format); void highlightCommentLine(const QString &line, int position, int length); bool isPPKeyword(const QStringRef &text) const; protected: QStringList m_todoList; QStringList m_gotagList; QRegExp m_todoRegexp; QString m_currentTodo; QMap<int,QString> m_todoInfoMap; }; #endif // GOLANGHIGHLIGHTER_H
2,166
C++
.h
51
39.705882
82
0.712049
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,844
goplsfilesearch.h
visualfc_liteide/liteidex/src/plugins/golangedit/goplsfilesearch.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2024 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: goplsfilesearch.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOPLSFILESEARCH_H #define GOPLSFILESEARCH_H #include "litefindapi/litefindapi.h" #include "processex/processex.h" #define GOPLS_references "references" #define GOPLS_implementation "implementation" struct gopls_resinfo { QString fileName; int line; int column; int columnEnd; }; class GoplsFileSearch : public LiteApi::IFileSearch { Q_OBJECT public: explicit GoplsFileSearch(LiteApi::IApplication *app, QObject *parent = 0); virtual ~GoplsFileSearch(); virtual QString mimeType() const; virtual QString displayName() const { return m_displayName; } virtual QWidget* widget() const; virtual void start(); virtual void cancel(); virtual void activate(); virtual QString searchText() const; virtual bool replaceMode() const; virtual bool readOnly() const { return m_readOnly; } virtual bool canCancel() const { return false; } virtual void setSearchInfo(const QString &text, const QString &fitler, const QString &path); void setReadOnly(bool b) { m_readOnly = b; }; void setDisplyName(const QString &name) { m_displayName = name; } void findUsages(LiteApi::ITextEditor *editor, QTextCursor cursor, const QString &command, const QStringList &opts = QStringList(), bool replace = false); public slots: void findUsagesStarted(); void findUsagesOutput(QByteArray,bool); void findUsagesFinish(bool,int,QString); protected: LiteApi::IApplication *m_liteApp; QList<gopls_resinfo> m_results; ProcessEx *m_process; QString m_searchText; QString m_displayName; bool m_bParserHead; bool m_replaceMode; bool m_readOnly; }; #endif // GOPLSFILESEARCH_H
2,777
C++
.h
69
37.304348
157
0.705033
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,845
golangfilesearch.h
visualfc_liteide/liteidex/src/plugins/golangedit/golangfilesearch.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangfilesearch.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGFILESEARCH_H #define GOLANGFILESEARCH_H #include "liteenvapi/liteenvapi.h" #include "litefindapi/litefindapi.h" #include "liteeditorapi/liteeditorapi.h" #include "processex/processex.h" inline QByteArray trimmedRight(const QByteArray &d) { if (d.size() == 0) { return d; } const char *s = d.data(); int end = d.size() - 1; while (end && isspace(uchar(s[end]))) // skip white space from end end--; return d.left(end+1); } static bool isLetterOrNumber(QChar ch) { if (ch.isLetterOrNumber() || ch == '_') { return true; } return false; } inline QString selectionUnderCursor(QTextCursor tc, bool moveLeft = false) { QString text = tc.block().text(); if (tc.hasSelection()) { moveLeft = false; } int pos = tc.selectionStart() - tc.block().position(); if (moveLeft) { pos--; } int left = pos; for (int i = pos; i >= 0; i--) { if (!isLetterOrNumber(text[i]) && text[i] != '.') { left = i; break; } } int right = text.length(); for (int i = pos; i < text.length(); i++) { if (!isLetterOrNumber(text[i])) { right = i; break; } } return text.mid(left+1,right-left-1); } class GolangFileSearch : public LiteApi::IFileSearch { Q_OBJECT public: explicit GolangFileSearch(LiteApi::IApplication *app, QObject *parent = 0); virtual ~GolangFileSearch(); virtual QString mimeType() const; virtual QString displayName() const; virtual QWidget* widget() const; virtual void start(); virtual void cancel(); virtual void activate(); virtual QString searchText() const; virtual bool replaceMode() const; virtual bool readOnly() const { return false; } virtual bool canCancel() const { return false; } virtual void setSearchInfo(const QString &text, const QString &fitler, const QString &path); void findUsages(LiteApi::ITextEditor *editor, QTextCursor cursor, bool global, bool skip_goroot, bool skip_tests, bool replace); public slots: void findUsagesStarted(); void findUsagesOutput(QByteArray,bool); void findUsagesFinish(bool,int,QString); protected: LiteApi::IApplication *m_liteApp; ProcessEx *m_process; QFile m_file; QString m_searchText; QString m_lastLineText; int m_lastLine; bool m_bParserHead; bool m_replaceMode; }; #endif // GOLANGFILESEARCH_H
3,572
C++
.h
105
29.971429
132
0.653468
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,846
golangtextlexer.h
visualfc_liteide/liteidex/src/plugins/golangedit/golangtextlexer.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangtextlexer.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGTEXTLEXER_H #define GOLANGTEXTLEXER_H #include "liteeditorapi/liteeditorapi.h" #include "cplusplus/Token.h" class GolangTextLexer : public LiteApi::ITextLexer { public: GolangTextLexer(QObject *parent = 0); virtual bool isLangSupport() const; virtual bool isInComment(const QTextCursor &cursor) const; virtual bool isInString(const QTextCursor &cursor) const; virtual bool isInEmptyString(const QTextCursor &cursor) const; virtual bool isEndOfString(const QTextCursor &cursor) const; virtual bool isInStringOrComment(const QTextCursor &cursor) const; virtual bool isInImport(const QTextCursor &cursor) const; virtual bool isCanAutoCompleter(const QTextCursor &cursor) const; virtual int startOfFunctionCall(const QTextCursor &cursor) const; virtual QString fetchFunctionTip(const QString &func, const QString &kind, const QString &info); virtual bool fetchFunctionArgs(const QString &str, int &argnr, int &parcount); virtual QString stringQuoteList() const; virtual bool hasStringBackslash() const; protected: bool isInCommentHelper(const QTextCursor &cursor, CPlusPlus::Token *retToken = 0) const; const CPlusPlus::Token tokenAtPosition(const QList<CPlusPlus::Token> &tokens, const unsigned pos) const; bool isInImportHelper(const QTextCursor &cursor) const; }; #endif // GOLANGTEXTLEXER_H
2,455
C++
.h
49
47.632653
108
0.734388
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,847
welcomeplugin.h
visualfc_liteide/liteidex/src/plugins/welcome/welcomeplugin.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: welcomeplugin.h // Creator: visualfc <visualfc@gmail.com> #ifndef WELCOMEPLUGIN_H #define WELCOMEPLUGIN_H #include "welcome_global.h" #include "liteapi/liteapi.h" #include "welcomebrowser.h" #include "litedoc.h" #include <QtPlugin> class WelcomePlugin : public LiteApi::IPlugin { Q_OBJECT public: WelcomePlugin(); ~WelcomePlugin(); virtual bool load(LiteApi::IApplication *app); protected slots: void home(); void godoc(); protected: LiteApi::IApplication *m_liteApp; WelcomeBrowser *m_welcome; LiteDoc *m_liteDoc; QAction *m_welcomeAct; QAction *m_homeAct; //QAction *m_godocAct; }; class PluginFactory : public LiteApi::PluginFactoryT<WelcomePlugin> { Q_OBJECT Q_INTERFACES(LiteApi::IPluginFactory) #if QT_VERSION >= 0x050000 Q_PLUGIN_METADATA(IID "liteidex.WelcomePlugin") #endif public: PluginFactory() { m_info->setId("plugin/welcome"); m_info->setName("Welcome"); m_info->setAuthor("visualfc"); m_info->setVer("X32"); m_info->setInfo("Welcome"); } }; #endif // WELCOMEPLUGIN_H
2,114
C++
.h
64
30.265625
82
0.681174
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,848
litedoc.h
visualfc_liteide/liteidex/src/plugins/welcome/litedoc.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: litedoc.h // Creator: visualfc <visualfc@gmail.com> #ifndef LITEDOC_H #define LITEDOC_H #include "liteapi/liteapi.h" #include "extension/extension.h" #include <QUrl> class DocumentBrowser; namespace LiteApi { class ILiteDoc : public IObject { Q_OBJECT public: ILiteDoc(QObject *parent) : IObject(parent) {} public slots: virtual void openUrl(const QUrl &url) = 0; virtual void activeBrowser() = 0; }; } class LiteDoc : public LiteApi::ILiteDoc { Q_OBJECT public: explicit LiteDoc(LiteApi::IApplication *app, QObject *parent = 0); static QString localeFile(const QString &fileName); static QString localePath(const QString &path); virtual void activeBrowser(); public slots: virtual void openUrl(const QUrl &url); void highlighted(const QUrl &url); protected: void openUrlFile(const QUrl &url); void updateTextDoc(const QUrl &url, const QByteArray &ba, const QString &header); void updateHtmlDoc(const QUrl &url, const QByteArray &ba, const QString &header = QString(), bool toNav = true); QUrl parserUrl(const QUrl &url); LiteApi::IApplication *m_liteApp; DocumentBrowser *m_docBrowser; QAction *m_browserAct; QString m_templateData; QUrl m_lastUrl; }; #endif // LITEDOC_H
2,279
C++
.h
62
34.33871
116
0.701222
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,850
welcomebrowser.h
visualfc_liteide/liteidex/src/plugins/welcome/welcomebrowser.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: welcomebrowser.h // Creator: visualfc <visualfc@gmail.com> #ifndef WELCOMEBROWSER_H #define WELCOMEBROWSER_H #include "liteapi/liteapi.h" #include "extension/extension.h" #include "documentbrowser/documentbrowser.h" #include <QUrl> namespace Ui { class WelcomeWidget; } class WelcomeBrowser : public LiteApi::IBrowserEditor { Q_OBJECT public: WelcomeBrowser(LiteApi::IApplication *app, QObject *parent); virtual ~WelcomeBrowser(); virtual LiteApi::IExtension *extension(); virtual QWidget *widget(); virtual QString name() const; virtual QString mimeType() const; public slots: void openUrl(const QUrl &url); void highlightedUrl(const QUrl &url); void loadData(); void openFolder(); protected: LiteApi::IApplication *m_liteApp; Extension *m_extension; QWidget *m_widget; DocumentBrowser *m_browser; QString m_templateData; }; #endif // WELCOMEBROWSER_H
1,946
C++
.h
54
33.685185
82
0.698993
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,851
imageeditorfactory.h
visualfc_liteide/liteidex/src/plugins/imageeditor/imageeditorfactory.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: imageeditorfactory.h // Creator: visualfc <visualfc@gmail.com> #ifndef IMAGEEDITORFACTORY_H #define IMAGEEDITORFACTORY_H #include "liteapi/liteapi.h" using namespace LiteApi; class ImageEditorFactory : public LiteApi::IEditorFactory { Q_OBJECT public: ImageEditorFactory(LiteApi::IApplication *app, QObject *parent); virtual QStringList mimeTypes() const; virtual IEditor *open(const QString &fileName, const QString &mimeType); virtual IEditor *create(const QString &contents, const QString &mimeType); virtual QString id() const; virtual QString displayName() const; virtual bool testMimeType(const QString &mimeType); protected: LiteApi::IApplication *m_liteApp; QStringList m_mimeTypes; }; #endif // IMAGEEDITORFACTORY_H
1,789
C++
.h
42
40.5
82
0.709362
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,852
imageeditorwidget.h
visualfc_liteide/liteidex/src/plugins/imageeditor/imageeditorwidget.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: imageeditorwidget.h // Creator: visualfc <visualfc@gmail.com> #ifndef IMAGEEDITORWIDGET_H #define IMAGEEDITORWIDGET_H #include <QGraphicsView> class QGestureEvent; class QPinchGesture; class QPanGesture; class ImageEditorWidget : public QGraphicsView { Q_OBJECT public: ImageEditorWidget(); virtual ~ImageEditorWidget(); void setImageItem(QGraphicsItem *item); void doScale(qreal factor); qreal scaleFactor() const; public slots: void zoomIn(); void zoomOut(); void resetSize(); void fitToView(); signals: void scaleFactorChanged(qreal factory); protected: void drawBackground(QPainter *p, const QRectF &); void wheelEvent(QWheelEvent *event); bool event(QEvent *event); bool gestureEvent(QGestureEvent *event); void pinchTriggered(QPinchGesture *gesture); void emitScaleFactor(); protected: QGraphicsItem *m_imageItem; double m_scaleFactor; }; #endif // IMAGEEDITORWIDGET_H
1,973
C++
.h
56
32.803571
82
0.706221
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,853
imageeditor_global.h
visualfc_liteide/liteidex/src/plugins/imageeditor/imageeditor_global.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: imageeditor_global.h // Creator: visualfc <visualfc@gmail.com> #ifndef IMAGEEDITOR_GLOBAL_H #define IMAGEEDITOR_GLOBAL_H #include <QtCore/qglobal.h> #if defined(IMAGEEDITOR_LIBRARY) # define IMAGEEDITORSHARED_EXPORT Q_DECL_EXPORT #else # define IMAGEEDITORSHARED_EXPORT Q_DECL_IMPORT #endif #endif // IMAGEEDITOR_GLOBAL_H
1,346
C++
.h
31
42.290323
82
0.692601
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
21,854
imageeditorfile.h
visualfc_liteide/liteidex/src/plugins/imageeditor/imageeditorfile.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: imageeditorfile.h // Creator: visualfc <visualfc@gmail.com> #ifndef IMAGEEDITORFILE_H #define IMAGEEDITORFILE_H #include "liteapi/liteapi.h" #include <QGraphicsPixmapItem> class QGraphicsItem; class QPixmap; class QMovie; class ImageEditorFile : public QObject { Q_OBJECT public: enum Type { Invalid = 0, Svg = 1, Movie = 2, Pixmap = 3, }; public: ImageEditorFile(LiteApi::IApplication *app, QObject *parent); virtual ~ImageEditorFile(); bool open(const QString &filePath, const QString &mimeType); bool isValid() const { return m_type != Invalid; } bool isMovie() const { return m_type == Movie; } virtual QGraphicsItem *graphicsItem() const { return m_item; } virtual QString mimeType() const { return m_mimeType; } void setPaused(bool paused); bool isPaused() const { return m_isPaused; } Type type() const { return m_type; } QString filePath() const { return m_filePath; } QSize imageSize() const; void clear(); public: int frameCount() const; int currentFrame() const; public slots: bool jumpToNextFrame(); bool jumpToPrevFrame(); signals: void isPausedChanged(bool); void frameChanged(int frameNumber); protected: LiteApi::IApplication *m_liteApp; QString m_mimeType; QGraphicsItem *m_item; QPixmap *m_pixmap; QMovie *m_movie; Type m_type; QString m_filePath; bool m_isPaused; }; class GraphicsMovieItem : public QObject, public QGraphicsPixmapItem { Q_OBJECT public: GraphicsMovieItem(QMovie *movie); void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *); QRectF boundingRect() const; public slots: void movieUpdate(const QRect &rc); protected: QMovie *m_movie; }; #endif // IMAGEEDITORFILE_H
2,916
C++
.h
99
25.777778
82
0.670341
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,855
imageeditorplugin.h
visualfc_liteide/liteidex/src/plugins/imageeditor/imageeditorplugin.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: imageeditorplugin.h // Creator: visualfc <visualfc@gmail.com> #ifndef IMAGEEDITORPLUGIN_H #define IMAGEEDITORPLUGIN_H #include "imageeditor_global.h" #include "liteapi/liteapi.h" class ImageEditorPlugin : public LiteApi::IPlugin { public: ImageEditorPlugin(); virtual bool load(LiteApi::IApplication *app); }; class PluginFactory : public LiteApi::PluginFactoryT<ImageEditorPlugin> { Q_OBJECT Q_INTERFACES(LiteApi::IPluginFactory) #if QT_VERSION >= 0x050000 Q_PLUGIN_METADATA(IID "liteidex.ImageEditorPlugin") #endif public: PluginFactory() { m_info->setId("plugin/ImageViewer"); m_info->setVer("X36.2"); m_info->setName("ImageEditor"); m_info->setAuthor("visualfc"); m_info->setInfo("Image Viewer Editor"); //m_info->appendDepend("plugin/liteenv"); } }; #endif // IMAGEEDITORPLUGIN_H
1,885
C++
.h
50
35.06
82
0.685074
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,856
imageeditor.h
visualfc_liteide/liteidex/src/plugins/imageeditor/imageeditor.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: imageeditor.h // Creator: visualfc <visualfc@gmail.com> #ifndef IMAGEEDITOR_H #define IMAGEEDITOR_H #include "liteapi/liteapi.h" #include "navigate/navigate.h" class ImageEditorFile; class ImageEditorWidget; class QLabel; class QToolBar; class ImageEditor : public LiteApi::IEditor { Q_OBJECT public: ImageEditor(LiteApi::IApplication *app); virtual ~ImageEditor(); virtual QWidget *widget(); virtual QString name() const; virtual bool open(const QString &filePath,const QString &mimeType); virtual bool reload(); virtual bool save(); virtual bool saveAs(const QString &filePath); virtual void setReadOnly(bool b); virtual bool isReadOnly() const; virtual bool isModified() const; virtual QString filePath() const; virtual QString mimeType() const; virtual QByteArray saveState() const; virtual bool restoreState(const QByteArray &array); virtual void onActive(); public slots: void scaleFactorChanged(qreal factor); void toggledPlay(bool checked); void frameChanged(int frameNumber); void broadcast(const QString &module, const QString &id, const QVariant &param); protected: LiteApi::IApplication *m_liteApp; ImageEditorFile *m_file; ImageEditorWidget *m_imageWidget; QWidget *m_widget; QToolBar *m_toolBar; QToolBar *m_mvToolBar; NavigateBar *m_navBar; QLabel *m_imageInfo; QLabel *m_scaleInfo; QLabel *m_frameLabel; QAction *m_playAct; }; #endif // IMAGEEDITOR_H
2,518
C++
.h
69
33.565217
84
0.707856
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,857
webviewhtmlwidget.h
visualfc_liteide/liteidex/src/plugins/webkithtmlwidget/webviewhtmlwidget.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: webviewhtmlwidget.h // Creator: visualfc <visualfc@gmail.com> #ifndef WEBVIEWHTMLWIDGET_H #define WEBVIEWHTMLWIDGET_H #include "liteapi/litehtml.h" using namespace LiteApi; class QWebView; class QWebPage; class WebViewHtmlWidget : public IHtmlWidget { Q_OBJECT public: WebViewHtmlWidget(QObject *parent); ~WebViewHtmlWidget(); public: virtual QWidget *widget() const; virtual QString className() const; virtual void setSearchPaths(const QStringList &paths); virtual void setHtml(const QString &html, const QUrl &url); virtual QUrl url() const; virtual void clear(); virtual void scrollToAnchor(const QString &anchor); virtual void setScrollBarValue(Qt::Orientation orientation, int value); virtual int scrollBarValue(Qt::Orientation orientation) const; virtual int scrollBarMinimum(Qt::Orientation orientation) const; virtual int scrollBarMaximum(Qt::Orientation orientation) const; virtual QString selectedText() const; virtual bool findText(const QString & exp, QTextDocument::FindFlags options = 0 ); public slots: #ifndef QT_NO_PRINTER virtual void print(QPrinter *printer); #endif protected slots: void webLinkHovered(const QString &link, const QString &title, const QString &textContent); protected: QWebView *m_widget; }; class WebPageHtmlDocument : public IHtmlDocument { Q_OBJECT public: WebPageHtmlDocument(QObject *parent); virtual ~WebPageHtmlDocument(); public: virtual void setHtml(const QString &html, const QUrl &url); public slots: #ifndef QT_NO_PRINTER virtual void print(QPrinter *printer); #endif virtual QString toHtml () const; virtual QString toPlainText () const; protected: QWebPage *m_doc; }; class WebViewHtmlWidgetFactory : public IHtmlWidgetFactory { Q_OBJECT public: WebViewHtmlWidgetFactory(QObject *parent = 0); virtual QString className() const; virtual IHtmlWidget *create(QObject *parent); virtual IHtmlDocument *createDocument(QObject *parent); }; #endif // WEBVIEWHTMLWIDGET_H
3,069
C++
.h
84
33.916667
95
0.73396
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,858
webkithtmlwidgetplugin.h
visualfc_liteide/liteidex/src/plugins/webkithtmlwidget/webkithtmlwidgetplugin.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: webkithtmlwidgetplugin.h // Creator: visualfc <visualfc@gmail.com> #ifndef WEBKITHTMLWIDGETPLUGIN_H #define WEBKITHTMLWIDGETPLUGIN_H #include "webkithtmlwidget_global.h" #include "liteapi/liteapi.h" class WebKitBrowser; class WebKitHtmlWidgetPlugin : public LiteApi::IPlugin { Q_OBJECT public: WebKitHtmlWidgetPlugin(); virtual bool load(LiteApi::IApplication *app); public slots: void openHtmlWithWebkit(); protected: LiteApi::IApplication *m_liteApp; WebKitBrowser *m_browser; QAction *m_browserAct; }; class PluginFactory : public LiteApi::PluginFactoryT<WebKitHtmlWidgetPlugin> { Q_OBJECT Q_INTERFACES(LiteApi::IPluginFactory) #if QT_VERSION >= 0x050000 Q_PLUGIN_METADATA(IID "liteidex.WebKitHtmlWidgetPlugin") #endif public: PluginFactory() { m_info->setVer("X23"); m_info->setId("plugin/WebKitHtmlWidget"); m_info->setName("WebKitHtmlWidget"); m_info->setAuthor("visualfc"); m_info->setInfo("QtWebKit Support"); } }; #endif // WEBKITHTMLWIDGETPLUGIN_H
2,070
C++
.h
57
33.666667
82
0.701545
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,860
webkitbrowser.h
visualfc_liteide/liteidex/src/plugins/webkithtmlwidget/webkitbrowser.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: webkitbrowser.h // Creator: visualfc <visualfc@gmail.com> #ifndef WEBKITBROWSER_H #define WEBKITBROWSER_H #include "liteapi/liteapi.h" #include <QWidget> #include <QUrl> class QWebView; class QToolBar; class QLineEdit; class QProgressBar; class WebKitBrowser : public LiteApi::IWebKitBrowser { Q_OBJECT public: explicit WebKitBrowser(LiteApi::IApplication *app, QObject *parent = 0); ~WebKitBrowser(); virtual QWidget *widget(); virtual QString name() const; virtual QString mimeType() const; virtual void openUrl(const QUrl &url); public slots: void changeLocation(); void adjustLocation(); void loadUrlFinished(bool); void linkClicked(QUrl); void loadUrl(const QUrl &url); void linkHovered(const QString & link, const QString & title, const QString & textContent); void statusBarMessage(const QString &msg); void loadStarted(); void loadProgress(int); void openHtmlFile(); void reloadUrl(); protected: LiteApi::IApplication *m_liteApp; QWidget *m_widget; QToolBar *m_toolBar; QLineEdit *m_locationEdit; QWebView *m_view; QProgressBar *m_progressBar; }; #endif // WEBKITBROWSER_H
2,200
C++
.h
62
32.870968
95
0.699625
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,861
golangpresentedit.h
visualfc_liteide/liteidex/src/plugins/golangpresent/golangpresentedit.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangpresenteedit.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGPRESENTEDIT_H #define GOLANGPRESENTEDIT_H #include "liteapi/liteapi.h" #include "liteeditorapi/liteeditorapi.h" #include "processex/processex.h" #define GOPRESENT_TAG "gopresent/navtag" class GolangPresentEdit : public QObject { Q_OBJECT public: enum EXPORT_TYPE { EXPORT_TYPE_VERIFY, EXPORT_TYPE_HTML, EXPORT_TYPE_PDF }; public: explicit GolangPresentEdit(LiteApi::IApplication *app, LiteApi::IEditor *editor, QObject *parent = 0); public slots: void editorSaved(LiteApi::IEditor*); void s1(); void s2(); void s3(); void bold(); void italic(); void code(); void bullets(); void comment(); void verify(); void exportHtml(); void exportPdf(); void extOutput(const QByteArray &data,bool bError); void extFinish(bool error,int code, QString msg); void loadHtmlFinished(bool); protected: bool startExportHtmlDoc(EXPORT_TYPE type); LiteApi::IApplication *m_liteApp; LiteApi::ILiteEditor *m_editor; LiteApi::IHtmlDocument *m_htmldoc; QPlainTextEdit *m_ed; ProcessEx *m_process; QByteArray m_exportData; QStringList m_errorMsg; QString m_pdfFileName; QString m_exportName; }; #endif // GOLANGPRESENTEDIT_H
2,413
C++
.h
68
32.338235
106
0.668662
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,862
exportdialog.h
visualfc_liteide/liteidex/src/plugins/golangpresent/exportdialog.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: exportdialog.h // Creator: visualfc <visualfc@gmail.com> #ifndef EXPORTDIALOG_H #define EXPORTDIALOG_H #include <QDialog> namespace Ui { class ExportDialog; } class ExportDialog : public QDialog { Q_OBJECT public: explicit ExportDialog(QWidget *parent = 0); ~ExportDialog(); QString fileName() const; void setFileName(const QString &text); bool isExportAndView() const { return m_bView; } private slots: void on_exportButton_clicked(); void on_exportAndViewButton_clicked(); private: Ui::ExportDialog *ui; bool m_bView; }; #endif // EXPORTDIALOG_H
1,616
C++
.h
45
33.8
82
0.686099
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,864
golangpresentplugin.h
visualfc_liteide/liteidex/src/plugins/golangpresent/golangpresentplugin.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangpresentplugin.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGPRESENTPLUGIN_H #define GOLANGPRESENTPLUGIN_H #include "golangpresent_global.h" #include "liteapi/liteapi.h" class GolangPresentPlugin : public LiteApi::IPlugin { Q_OBJECT public: GolangPresentPlugin(); virtual bool load(LiteApi::IApplication *app); protected slots: void editorCreated(LiteApi::IEditor*); protected: LiteApi::IApplication *m_liteApp; }; class PluginFactory : public LiteApi::PluginFactoryT<GolangPresentPlugin> { Q_OBJECT Q_INTERFACES(LiteApi::IPluginFactory) #if QT_VERSION >= 0x050000 Q_PLUGIN_METADATA(IID "liteidex.GoPresentPlugin") #endif public: PluginFactory() { m_info->setId("plugin/GoPresent"); m_info->setVer("X23"); m_info->setName("GolangPresent"); m_info->setAuthor("visualfc"); m_info->setInfo("Golang Present Edit Support"); m_info->appendDepend("plugin/liteeditor"); } }; #endif // GOLANGPRESENTPLUGIN_H
2,027
C++
.h
55
34.163636
82
0.693442
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,866
makefilefilefactory.h
visualfc_liteide/liteidex/src/plugins/makefileproject/makefilefilefactory.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2013 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: makefilefilefactory.h // Creator: visualfc <visualfc@gmail.com> #ifndef MAKEFILEFILEFACTORY_H #define MAKEFILEFILEFACTORY_H #include "liteapi/liteapi.h" class MakefileFileFactory : public LiteApi::IProjectFactory { public: MakefileFileFactory(LiteApi::IApplication *app, QObject *parent = 0); virtual QStringList mimeTypes() const; virtual LiteApi::IProject *open(const QString &fileName, const QString &mimeType); virtual bool findTargetInfo(const QString &fileName, const QString &mimetype, QMap<QString,QString>& findTargetInfo) const; protected: LiteApi::IApplication *m_liteApp; QStringList m_mimeTypes; }; #endif // MAKEFILEFILEFACTORY_H
1,690
C++
.h
37
43.918919
127
0.710127
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,867
makefileprojectplugin.h
visualfc_liteide/liteidex/src/plugins/makefileproject/makefileprojectplugin.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2013 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: makefileprojectplugin.h // Creator: visualfc <visualfc@gmail.com> #ifndef MAKEFILEPROJECTPLUGIN_H #define MAKEFILEPROJECTPLUGIN_H #include "makefileproject_global.h" #include "liteapi/liteapi.h" #include <QtPlugin> class MakefileProjectPlugin : public LiteApi::IPlugin { Q_OBJECT Q_INTERFACES(LiteApi::IPlugin) public: MakefileProjectPlugin(); virtual bool initWithApp(LiteApi::IApplication *app); }; #endif // MAKEFILEPROJECTPLUGIN_H
1,473
C++
.h
36
39.361111
82
0.699232
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,868
makefilefile.h
visualfc_liteide/liteidex/src/plugins/makefileproject/makefilefile.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2013 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: makefilefile.h // Creator: visualfc <visualfc@gmail.com> #ifndef MAKEFILEFILE_H #define MAKEFILEFILE_H #include "modelproject/modelfileimpl.h" class MakefileFile : public ModelFileImpl { public: MakefileFile(LiteApi::IApplication *app, QObject *parent); protected: virtual bool loadFile(const QString &filePath); virtual void updateModel(); public: virtual QString target() const; virtual QString targetPath() const; virtual QMap<QString,QString> targetInfo() const; }; #endif // MAKEFILEFILE_H
1,541
C++
.h
38
38.815789
82
0.695797
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,869
makefileproject.h
visualfc_liteide/liteidex/src/plugins/makefileproject/makefileproject.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2013 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: makefileproject.h // Creator: visualfc <visualfc@gmail.com> #ifndef MAKEFILEPROJECT_H #define MAKEFILEPROJECT_H #include "modelproject/modelprojectimpl.h" class MakefileProject : public ModelProjectImpl { public: MakefileProject(LiteApi::IApplication *app); }; #endif // MAKEFILEPROJECT_H
1,315
C++
.h
31
41.16129
82
0.690625
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,870
markdownbatchbrowser.h
visualfc_liteide/liteidex/src/plugins/markdown/markdownbatchbrowser.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: markdownbatchbrowser.h // Creator: visualfc <visualfc@gmail.com> #ifndef MARKDOWNBATCHBROWSER_H #define MARKDOWNBATCHBROWSER_H #include "liteapi/liteapi.h" #include <QFileDialog> namespace Ui { class MarkdownBatchWidget; } class QStandardItemModel; class MarkdownBatchBrowser : public LiteApi::IBrowserEditor { Q_OBJECT public: MarkdownBatchBrowser(LiteApi::IApplication *app, QObject *parent); virtual ~MarkdownBatchBrowser(); virtual QWidget *widget(); virtual QString name() const; virtual QString mimeType() const; QString markdownOpenFilter() const; QStringList markdonwFilter() const; void addFile(const QString &file); void appendLog(const QString &log); public: enum { MODE_NONE = 0, MODE_SPLIT_PDF, MODE_MERGE_PDF, MODE_MERGE_PRINT, MODE_MERGE_PRINTPREVIEW }; protected: LiteApi::IApplication *m_liteApp; QWidget *m_widget; Ui::MarkdownBatchWidget *ui; LiteApi::IHtmlDocument *m_doc; QStandardItemModel *m_model; int m_mode; QString m_exportPath; QString m_pdfFileName; QStringList m_fileList; QByteArray m_exportOrgTemple; QByteArray m_exportTemple; QMap<QString,QByteArray> m_fileHtmlMap; private slots: void loadFinished(bool); void browserImportFolder(); void addFiles(); void remove(); void removeAll(); void moveUp(); void moveDown(); void browserExportFolder(); void splitHtml(); void mergeHtml(); void splitPdf(); void mergePdf(); void mergePrint(); void mergePrintPreview(); protected: void init(); void processPdfList(); QStringList getFiles() const; QMap<QString,QByteArray> getFileHtmlDataMap(const QStringList &files) const; }; #endif // MARKDOWNBATCHBROWSER_H
2,829
C++
.h
86
29.360465
82
0.695287
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,871
markdown_global.h
visualfc_liteide/liteidex/src/plugins/markdown/markdown_global.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: markdown_global.h // Creator: visualfc <visualfc@gmail.com> #ifndef MARKDOWN_GLOBAL_H #define MARKDOWN_GLOBAL_H #include <QtCore/qglobal.h> #if defined(MARKDOWN_LIBRARY) # define MARKDOWNSHARED_EXPORT Q_DECL_EXPORT #else # define MARKDOWNSHARED_EXPORT Q_DECL_IMPORT #endif #define MARKDOWN_SYNCVIEWHTML "markdown/syncviewhtml" #define MARKDOWN_SYNCSCROLLHTML "markdown/syncsscrollhtml" #endif // MARKDOWN_GLOBAL_H
1,441
C++
.h
33
42.515152
82
0.701354
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,872
markdownplugin.h
visualfc_liteide/liteidex/src/plugins/markdown/markdownplugin.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: markdownplugin.h // Creator: visualfc <visualfc@gmail.com> #ifndef MARKDOWNPLUGIN_H #define MARKDOWNPLUGIN_H #include "markdown_global.h" #include "liteapi/liteapi.h" class MarkdownPlugin : public LiteApi::IPlugin { Q_OBJECT public: MarkdownPlugin(); virtual bool load(LiteApi::IApplication *app); protected slots: void editorCreated(LiteApi::IEditor*); protected: LiteApi::IApplication *m_liteApp; }; class PluginFactory : public LiteApi::PluginFactoryT<MarkdownPlugin> { Q_OBJECT Q_INTERFACES(LiteApi::IPluginFactory) #if QT_VERSION >= 0x050000 Q_PLUGIN_METADATA(IID "liteidex.MarkdownPlugin") #endif public: PluginFactory() { m_info->setId("plugin/Markdown"); m_info->setVer("X36.3"); m_info->setName("Markdown"); m_info->setAuthor("visualfc"); m_info->setInfo("Markdown Editor Support"); m_info->appendDepend("plugin/liteeditor"); } }; #endif // MARKDOWNPLUGIN_H
1,979
C++
.h
55
33.272727
82
0.68561
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,873
markdownedit.h
visualfc_liteide/liteidex/src/plugins/markdown/markdownedit.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: markdownedit.h // Creator: visualfc <visualfc@gmail.com> #ifndef MARKDOWNEDIT_H #define MARKDOWNEDIT_H #include "liteapi/liteapi.h" class MarkdownEdit : public QObject { Q_OBJECT public: explicit MarkdownEdit(LiteApi::IApplication *app, LiteApi::IEditor *editor, QObject *parent = 0); virtual ~MarkdownEdit(); signals: public slots: void insert_head(const QString &tag, bool blockStart = true); void mark_selection(const QString &mark); void mark_selection(const QString &mark1, const QString &mark2); void h1(); void h2(); void h3(); void h4(); void h5(); void h6(); void bold(); void italic(); void code(); void link(); void image(); void ul(); void ol(); void bq(); void hr(); void gotoLine(int line, int col); protected: bool eventFilter(QObject *obj, QEvent *event); protected: LiteApi::IApplication *m_liteApp; LiteApi::ITextEditor *m_editor; QPlainTextEdit *m_ed; }; #endif // MARKDOWNEDIT_H
2,038
C++
.h
60
31.083333
101
0.66582
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,874
htmlpreview.h
visualfc_liteide/liteidex/src/plugins/markdown/htmlpreview.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: htmlpreview.h // Creator: visualfc <visualfc@gmail.com> #ifndef HTMLPREVIEW_H #define HTMLPREVIEW_H #include <liteapi/liteapi.h> #include <QPointer> class QActionGroup; class HtmlPreview : public QObject { Q_OBJECT public: explicit HtmlPreview(LiteApi::IApplication *app,QObject *parent = 0); virtual ~HtmlPreview(); void loadHtmlData(const QByteArray &data, const QByteArray &title, const QString &mime,const QUrl &url); public slots: void appLoaded(); QByteArray loadCssData(const QString &fileName); void currentEditorChanged(LiteApi::IEditor*); void contentsChanged(); void htmlUpdate(); void scrollValueChanged(); void syncScrollValue(); void toggledSyncSwitch(bool); void toggledSyncScroll(bool); void editorHtmlPrivew(bool force = false); void triggeredTool(bool); void reload(); void exportHtml(); void exportPdf(); void printPreview(); void cssTtriggered(QAction*); void linkClicked(const QUrl &); void linkHovered(const QUrl &); void loadFinished(bool); void htmlContentsSizeChanged(); protected: LiteApi::IApplication *m_liteApp; QWidget *m_widget; LiteApi::IHtmlWidget *m_htmlWidget; QAction *m_reloadAct; QAction *m_exportHtmlAct; QAction *m_exportPdfAct; QAction *m_printPreviewAct; QAction *m_syncScrollAct; QAction *m_syncSwitchAct; QMenu *m_cssMenu; QMenu *m_configMenu; QActionGroup *m_cssActGroup; QAction *m_toolAct; QPointer<LiteApi::ITextEditor> m_curEditor; QPointer<QPlainTextEdit> m_curTextEditor; bool m_bWebkit; bool m_bFileChanged; QByteArray m_exportOrgTemple; QByteArray m_exportTemple; QByteArray m_exportHtml; QByteArray m_lastData; QByteArray m_head; QPoint m_prevPos; QTimer *m_htmlUpdateTimer; }; #endif // HTMLPREVIEW_H
2,955
C++
.h
82
32.634146
108
0.684798
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,875
syntaxtexteditor.h
visualfc_liteide/liteidex/src/plugins/syntaxeditor/syntaxtexteditor.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2013 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: syntaxtexteditor.h // Creator: visualfc <visualfc@gmail.com> #ifndef SYNTAXTEXTEDITOR_H #define SYNTAXTEXTEDITOR_H #include <QPlainTextEdit> #include <QTextEdit> #include <QSettings> #include "syntaxcompleter.h" class SyntaxTextEditor : public QPlainTextEdit { Q_OBJECT public: void indentEnter(QTextCursor cur); void indentText(QTextDocument *doc, QTextCursor cur, bool bIndent); void indentBlock(QTextBlock block, bool bIndent); void indentCursor(QTextCursor cur, bool bIndent); void gotoLine(int line, int column); QString wordUnderCursor() const; QString textUnderCursor() const; void setCompleter(SyntaxCompleter *c); SyntaxCompleter *completer() const; bool autoIndent; bool autoBlock; bool autoWord; void areaPaintEvent(QPaintEvent *event); SyntaxTextEditor(QWidget *parent = 0); void newFile(); void reload(); QString currentText() { return curText; } bool loadFile(const QString &fileName); QByteArray data() const; bool save(); bool saveAs(); bool saveFile(const QString &fileName); QString userFriendlyCurrentFile(); QString currentFile() { return curFile; } signals: void update(); protected: virtual void keyPressEvent(QKeyEvent *e); virtual void focusInEvent(QFocusEvent *e); virtual void closeEvent(QCloseEvent *event); virtual void resizeEvent(QResizeEvent *e); public: int editorAreaWidth(); public slots: void loadConfig(QSettings *settings, const QString &mimeType); protected slots: void highlightCurrentLine(); void insertCompletion(const QString& completion); void updateAreaWidth(int newBlockCount); void updateEditorArea(const QRect &, int); public: bool maybeSave(); void setCurrentFile(const QString &fileName); QString strippedName(const QString &fullFileName); QString curFile; QString curText; QFont curFont; bool isUntitled; QWidget *editorArea; SyntaxCompleter *editCompleter; }; class SyntaxTextEditorArea : public QWidget { public: SyntaxTextEditorArea(SyntaxTextEditor *ed) : QWidget(ed) { editor = ed; } QSize sizeHint() const { return QSize(editor->editorAreaWidth(), 0); } protected: void paintEvent(QPaintEvent *event) { editor->areaPaintEvent(event); } private: SyntaxTextEditor *editor; }; #endif // SYNTAXTEXTEDITOR_H
3,430
C++
.h
100
30.79
82
0.712865
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,876
syntaxeditor.h
visualfc_liteide/liteidex/src/plugins/syntaxeditor/syntaxeditor.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2013 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: syntaxeditor.h // Creator: visualfc <visualfc@gmail.com> #ifndef SYNTAXEDITOR_H #define SYNTAXEDITOR_H #include "../../liteapi/liteapi.h" #include <QPointer> class SyntaxTextEditor; class QTextDocument; class TextFile : public LiteApi::IFile { Q_OBJECT public: TextFile(QObject *parent); virtual bool open(const QString &fileName, const QString &mimeType); virtual bool reload(); virtual bool save(const QString &fileName); virtual QString fileName() const; virtual QString mimeType() const; virtual QString subType() const; public: void setDocument(QTextDocument *document); QTextDocument *document(); protected: QString m_fileName; QString m_mimeType; QTextDocument *m_document; QTextCodec *m_codec; }; class SyntaxEditor : public LiteApi::IEditor { Q_OBJECT public: SyntaxEditor(QObject *parent); virtual bool autoDelete() const; virtual QWidget *widget(); virtual QToolBar* toolBar() const; virtual QString displayName() const; virtual QIcon icon() const; virtual void setDisplayName(const QString &title); virtual bool createNew(const QString &contents); virtual bool open(const QString &fileName, const QString &mimeType); virtual bool save(); virtual bool isModified(); virtual LiteApi::IFile *file(); virtual int line() const; virtual int column() const; virtual void gotoLine(int line, int column); public: SyntaxTextEditor *editor(); protected: SyntaxTextEditor *m_editor; QToolBar *m_toolBar; TextFile *m_file; QAction *m_undoAct; QAction *m_redoAct; }; #endif // SYNTAXEDITOR_H
2,716
C++
.h
77
32.246753
82
0.688999
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,877
syntaxeditor_global.h
visualfc_liteide/liteidex/src/plugins/syntaxeditor/syntaxeditor_global.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2013 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: syntaxeditor_global.h // Creator: visualfc <visualfc@gmail.com> #ifndef SYNTAXEDITOR_GLOBAL_H #define SYNTAXEDITOR_GLOBAL_H #include <QtCore/qglobal.h> #if defined(SYNTAXEDITOR_LIBRARY) # define SYNTAXEDITORSHARED_EXPORT Q_DECL_EXPORT #else # define SYNTAXEDITORSHARED_EXPORT Q_DECL_IMPORT #endif #endif // SYNTAXEDITOR_GLOBAL_H
1,353
C++
.h
31
42.516129
82
0.694234
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,878
syntaxeditorplugin.h
visualfc_liteide/liteidex/src/plugins/syntaxeditor/syntaxeditorplugin.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2013 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: syntaxeditorplugin.h // Creator: visualfc <visualfc@gmail.com> #ifndef SYNTAXEDITORPLUGIN_H #define SYNTAXEDITORPLUGIN_H #include "syntaxeditor_global.h" #include "../../liteapi/liteapi.h" #include <QtPlugin> class SyntaxEditorPlugin : public LiteApi::IPlugin { Q_OBJECT Q_INTERFACES(LiteApi::IPlugin) public: SyntaxEditorPlugin(); virtual void install(LiteApi::IApplication *app); virtual const LiteApi::PluginInfo & info() const; }; #endif // SYNTAXEDITORPLUGIN_H
1,509
C++
.h
37
39.108108
82
0.691888
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,880
golangcompleter.h
visualfc_liteide/liteidex/src/plugins/syntaxeditor/golangcompleter.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2013 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangcompleter.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGCOMPLETER_H #define GOLANGCOMPLETER_H #include "syntaxcompleter.h" class QStringListModel; class GolangCompleter : public SyntaxCompleter { Q_OBJECT public: virtual bool underCursor(const QTextCursor &cur, const QString &text); GolangCompleter(QObject *parent); QStringListModel *model; QSharedPointer< QSet<QString> > allWords; public slots: void updateEditor(); }; #endif // GOLANGCOMPLETER_H
1,517
C++
.h
38
38.184211
82
0.696271
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,881
syntaxfilefactory.h
visualfc_liteide/liteidex/src/plugins/syntaxeditor/syntaxfilefactory.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2013 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: syntaxfilefactory.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGFILEFACTORY_H #define GOLANGFILEFACTORY_H #include "../../liteapi/liteapi.h" class SyntaxFileFactory : public LiteApi::IFileFactory { public: SyntaxFileFactory(LiteApi::IApplication *app, QObject *parent); virtual QStringList mimeTypes() const; virtual LiteApi::IFile *open(const QString &fileName, const QString &mimeType); protected: LiteApi::IApplication *m_liteApp; QStringList m_mimeTypes; }; #endif // GOLANGFILEFACTORY_H
1,561
C++
.h
36
41.694444
83
0.690335
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,882
golanghighlighter.h
visualfc_liteide/liteidex/src/plugins/syntaxeditor/golanghighlighter.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2013 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golanghighlighter.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGHIGHLIGHTER_H #define GOLANGHIGHLIGHTER_H #include <QSyntaxHighlighter> #include <QVector> #include <QTextCharFormat> #include <QSet> #include <QSharedPointer> class QTextDocument; class GolangHighlighter: public QSyntaxHighlighter { Q_OBJECT public: GolangHighlighter(QTextDocument* document); protected: enum { STATE_BACKQUOTES = 0x04, STATE_SINGLELINE_COMMENT = 0x08, STATE_MULTILINE_COMMENT = 0x10 }; virtual void highlightBlock(const QString &text); bool highlightPreBlock(const QString &text, int &startPos, int &endPos); int findQuotesEndPos(const QString &text, int startPos, const QChar &endChar); public: QSharedPointer< QSet<QString> > allWords; private: struct HighlightingRule { QRegExp pattern; QTextCharFormat format; }; QVector<HighlightingRule> highlightingRules; QRegExp regexpQuotesAndComment; QTextCharFormat functionFormat; QTextCharFormat singleLineCommentFormat; QTextCharFormat multiLineCommentFormat; QTextCharFormat identFormat; QTextCharFormat keywordFormat; QTextCharFormat numberFormat; QTextCharFormat quotesFormat; }; #endif // GOLANGHIGHLIGHTER_H
2,313
C++
.h
64
33.109375
82
0.716451
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,883
syntaxcompleter.h
visualfc_liteide/liteidex/src/plugins/syntaxeditor/syntaxcompleter.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2013 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: syntaxcompleter.h // Creator: visualfc <visualfc@gmail.com> #ifndef SYNTAXCOMPLETER_H #define SYNTAXCOMPLETER_H #include <QCompleter> #include <QPlainTextEdit> #include <QTextCursor> #include <QAbstractItemView> class SyntaxCompleter : public QCompleter { public: SyntaxCompleter(QObject *parent = 0) : QCompleter(parent) { } virtual bool underCursor(int key, QTextCursor cur, const QString &text, const QString &word) { return false; } virtual void setFileName(const QString &path) { fileName = path; } virtual void showPopup(const QString &completionPrefix) { } virtual void hidePopup() { } virtual void endCompletion() { } public: QString fileName; }; #endif // SYNTAXCOMPLETER_H
1,801
C++
.h
55
29.927273
96
0.677791
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,884
litedebugoption.h
visualfc_liteide/liteidex/src/plugins/litedebug/litedebugoption.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: litedebugoption.h // Creator: visualfc <visualfc@gmail.com> #ifndef LITEDEBUGOPTION_H #define LITEDEBUGOPTION_H #include "liteapi/liteapi.h" namespace Ui { class LiteDebugOption; } class LiteDebugOption : public LiteApi::IOption { Q_OBJECT public: explicit LiteDebugOption(LiteApi::IApplication *app, QObject *parent = 0); ~LiteDebugOption(); virtual QWidget *widget(); virtual QString name() const; virtual QString mimeType() const; virtual void load(); virtual void save(); private: LiteApi::IApplication *m_liteApp; QWidget *m_widget; Ui::LiteDebugOption *ui; }; #endif // LITEDEBUGOPTION_H
1,678
C++
.h
45
35.088889
82
0.682237
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,885
litedebugplugin.h
visualfc_liteide/liteidex/src/plugins/litedebug/litedebugplugin.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: litedebugplugin.h // Creator: visualfc <visualfc@gmail.com> #ifndef LITEDEBUGPLUGIN_H #define LITEDEBUGPLUGIN_H #include "litedebug_global.h" #include "liteapi/liteapi.h" #include <QtPlugin> class LiteDebug; class LiteDebugPlugin : public LiteApi::IPlugin { Q_OBJECT public: LiteDebugPlugin(); virtual bool load(LiteApi::IApplication *app); protected: LiteDebug *m_liteDebug; QAction *m_viewDebug; }; class PluginFactory : public LiteApi::PluginFactoryT<LiteDebugPlugin> { Q_OBJECT Q_INTERFACES(LiteApi::IPluginFactory) #if QT_VERSION >= 0x050000 Q_PLUGIN_METADATA(IID "liteidex.LiteDebugPlugin") #endif public: PluginFactory() { m_info->setId("plugin/LiteDebug"); m_info->setName("LiteDebug"); m_info->setAuthor("visualfc"); m_info->setVer("X38.2"); m_info->setInfo("Core Debug Manager"); m_info->appendDepend("plugin/litebuild"); m_info->appendDepend("plugin/litefind"); m_info->setMustLoad(true); } }; #endif // LITEDEBUGPLUGIN_H
2,062
C++
.h
58
32.672414
82
0.682341
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,886
debugmanager.h
visualfc_liteide/liteidex/src/plugins/litedebug/debugmanager.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: debugmanager.h // Creator: visualfc <visualfc@gmail.com> #ifndef DEBUGMANAGER_H #define DEBUGMANAGER_H #include "litedebugapi/litedebugapi.h" using namespace LiteApi; class DebugManager : public LiteApi::IDebuggerManager { Q_OBJECT public: DebugManager(QObject *parent); virtual ~DebugManager(); virtual void addDebugger(IDebugger *debug); virtual void removeDebugger(IDebugger *debug); virtual IDebugger *findDebugger(const QString &mimeType); virtual QList<IDebugger*> debuggerList() const; virtual void setCurrentDebugger(IDebugger *debug); virtual IDebugger *currentDebugger(); protected: QList<IDebugger*> m_debugList; IDebugger *m_currentDebug; }; #endif // DEBUGMANAGER_H
1,754
C++
.h
43
38.488372
82
0.701641
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,887
litedebugoptionfactory.h
visualfc_liteide/liteidex/src/plugins/litedebug/litedebugoptionfactory.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: litedebugoptionfactory.h // Creator: visualfc <visualfc@gmail.com> #ifndef LITEDEBUGOPTIONFACTORY_H #define LITEDEBUGOPTIONFACTORY_H #include "liteapi/liteapi.h" class LiteDebugOptionFactory : public LiteApi::IOptionFactory { public: LiteDebugOptionFactory(LiteApi::IApplication *app, QObject *parent); virtual QStringList mimeTypes() const; virtual LiteApi::IOption *create(const QString &mimeType); protected: LiteApi::IApplication *m_liteApp; }; #endif // LITEDEBUGOPTIONFACTORY_H
1,522
C++
.h
35
41.914286
82
0.704653
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,888
litedebug_global.h
visualfc_liteide/liteidex/src/plugins/litedebug/litedebug_global.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: litedebug_global.h // Creator: visualfc <visualfc@gmail.com> #ifndef LITEDEBUG_GLOBAL_H #define LITEDEBUG_GLOBAL_H #include <QtCore/qglobal.h> #if defined(LITEDEBUG_LIBRARY) # define LITEDEBUGSHARED_EXPORT Q_DECL_EXPORT #else # define LITEDEBUGSHARED_EXPORT Q_DECL_IMPORT #endif #define OPTION_LITEDEBUG "option/litedebug" #define LITEDEBUG_REBUILD "litedebug/rebuild" #define LITEDEBUG_CURDEBUGGER "litedebug/curdebugger" #define LITEDEBUG_AUTOBREAKMAIN "litedebug/autobreakmain" #endif // LITEDEBUG_GLOBAL_H
1,538
C++
.h
35
42.8
82
0.71028
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,889
selectexternaldialog.h
visualfc_liteide/liteidex/src/plugins/litedebug/selectexternaldialog.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: selectexternaldialog.h // Creator: visualfc <visualfc@gmail.com> #ifndef SELECTEXTERNALDIALOG_H #define SELECTEXTERNALDIALOG_H #include <QDialog> #include "liteapi/liteapi.h" namespace Ui { class SelectExternalDialog; } class SelectExternalDialog : public QDialog { Q_OBJECT public: explicit SelectExternalDialog(LiteApi::IApplication *app, QWidget *parent = 0); ~SelectExternalDialog(); QString getCmd() const; QString getArgs() const; QString getWork() const; void loadSetting(); void saveSetting(); private slots: void on_cmbPushButton_clicked(); void on_workPushButton_clicked(); private: LiteApi::IApplication *m_liteApp; Ui::SelectExternalDialog *ui; }; #endif // SELECTEXTERNALDIALOG_H
1,769
C++
.h
48
34.645833
83
0.70076
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,890
debugwidget.h
visualfc_liteide/liteidex/src/plugins/litedebug/debugwidget.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: debugwidget.h // Creator: visualfc <visualfc@gmail.com> #ifndef DEBUGWIDGET_H #define DEBUGWIDGET_H #include "liteapi/liteapi.h" #include "litedebugapi/litedebugapi.h" #include "textoutput/textoutput.h" #include "symboltreeview/symboltreeview.h" class QTabWidget; class QTreeView; class QLineEdit; class QPlainTextEdit; class DebugWidget : public QObject { Q_OBJECT public: explicit DebugWidget(LiteApi::IApplication *app,QObject *parent = 0); virtual ~DebugWidget(); virtual QWidget *widget(); void updateView(QTreeView *view, LiteApi::IDebugger *debug, LiteApi::DEBUG_MODEL_TYPE type, const QString &title); QTreeView *viewForType(LiteApi::DEBUG_MODEL_TYPE type); signals: void debugCmdInput(); public slots: void setInputFocus(); void loadDebugInfo(const QString &id); void saveDebugInfo(const QString &id); void addWatch(); void removeWatch(); void removeAllWatchAct(); void watchViewContextMenu(QPoint); void setDebugger(LiteApi::IDebugger *debug); void enterText(const QString &cmd); void appendLog(const QString &log); void clearLog(); void expandedVarsView(QModelIndex); void setExpand(LiteApi::DEBUG_MODEL_TYPE type, const QModelIndex &index, bool expanded); void watchCreated(QString,QString); void watchRemoved(QString); void dbclickView(QModelIndex); void beginUpdateModel(LiteApi::DEBUG_MODEL_TYPE type); void endUpdateModel(LiteApi::DEBUG_MODEL_TYPE type); void scrollTo(LiteApi::DEBUG_MODEL_TYPE type, const QModelIndex &index); protected: LiteApi::IApplication *m_liteApp; QWidget *m_widget; LiteApi::IDebugger *m_debugger; QTabWidget *m_tabWidget; QTreeView *m_asyncView; SymbolTreeView *m_varsView; SymbolTreeView *m_watchView; QTreeView *m_framesView; QTreeView *m_libraryView; QTreeView *m_threadsView; QTreeView *m_regsView; QTreeView *m_asmView; SymbolTreeView *m_goroutinesView; SymbolTreeState m_varsState; SymbolTreeState m_watchState; SymbolTreeState m_goroutinesState; TextOutput *m_debugLogEdit; QMenu *m_watchMenu; QAction *m_addWatchAct; //QAction *m_addLocalWatchAct; QAction *m_removeWatchAct; QAction *m_removeAllWatchAct; QMap<QString,QString> m_watchMap; }; #endif // DEBUGWIDGET_H
3,354
C++
.h
89
34.426966
118
0.719018
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,891
litedebug.h
visualfc_liteide/liteidex/src/plugins/litedebug/litedebug.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: litedebug.h // Creator: visualfc <visualfc@gmail.com> #ifndef LITEDEBUG_H #define LITEDEBUG_H #include "liteapi/liteapi.h" #include "litedebugapi/litedebugapi.h" #include "liteenvapi/liteenvapi.h" #include "litebuildapi/litebuildapi.h" #include "liteeditorapi/liteeditorapi.h" #include "textoutput/textoutput.h" #include "processex/processex.h" class DebugManager; class DebugWidget; class QLabel; struct CurrentLine { CurrentLine() : line(0) { } QString fileName; int line; }; class LiteDebug : public LiteApi::ILiteDebug { Q_OBJECT public: explicit LiteDebug(LiteApi::IApplication *app, QObject *parent = 0); virtual ~LiteDebug(); QWidget *widget(); bool canDebug(LiteApi::IEditor *editor) const; virtual LiteApi::IDebuggerManager *debugManager() const; virtual void startDebug(const QString &cmd, const QString &args, const QString &work); virtual bool isRunning() const; signals: void debugVisible(bool); public slots: void hideDebug(); void appLoaded(); void selectedDebug(QAction *act); void editorCreated(LiteApi::IEditor*); void editorAboutToClose(LiteApi::IEditor*); void currentEditorChanged(LiteApi::IEditor*); void startDebugExternal(); virtual void startDebug(); virtual void continueRun(); virtual void runToLine(); virtual void stopDebug(); virtual void stepOver(); virtual void stepInto(); virtual void stepOut(); virtual void showLine(); virtual void toggleBreakPoint(); virtual void removeAllBreakPoints(); virtual void enterAppInputText(QString); protected slots: void setDebugger(LiteApi::IDebugger*); void debugLoaded(); void debugLog(LiteApi::DEBUG_LOG_TYPE type, const QString &log); void debugStarted(); void debugStoped(); void setCurrentLine(const QString &fileName, int line); void gotoLine(const QString &fileName, int line); void debugCmdInput(); protected: bool execGocommand(const QStringList &args, const QString &work, bool showLog); void clearLastLine(); bool m_bLastDebugCmdInput; LiteApi::IApplication *m_liteApp; LiteApi::IEnvManager *m_envManager; LiteApi::ILiteBuild *m_liteBuild; LiteApi::IDebugger *m_debugger; DebugManager *m_manager; QWidget *m_widget; DebugWidget *m_dbgWidget; QMenu *m_debugMenu; TextOutput *m_output; QAction *m_outputAct; QAction *m_startDebugExternal; QAction *m_startDebugAct; QAction *m_stopDebugAct; QAction *m_showLineAct; QAction *m_stepIntoAct; QAction *m_stepOverAct; QAction *m_stepOutAct; QAction *m_continueAct; QAction *m_runToLineAct; QAction *m_switchBreakAct; QAction *m_removeAllBreakAct; QStringList m_debugMimeTypes; QString m_debugInfoId; QString m_startDebugFile; CurrentLine m_lastLine; QMultiMap<QString,int> m_fileBpMap; QString m_removeDebugFilePath; }; #endif // LITEDEBUG_H
4,001
C++
.h
116
30.991379
90
0.710492
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,892
gdbdebugger_global.h
visualfc_liteide/liteidex/src/plugins/gdbdebugger/gdbdebugger_global.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: gdbdebugger_global.h // Creator: visualfc <visualfc@gmail.com> #ifndef GDBDEBUGGER_GLOBAL_H #define GDBDEBUGGER_GLOBAL_H #include <QtCore/qglobal.h> #if defined(GDBDEBUGER_LIBRARY) # define GDBDEBUGERSHARED_EXPORT Q_DECL_EXPORT #else # define GDBDEBUGERSHARED_EXPORT Q_DECL_IMPORT #endif #define OPTION_GDBDEBUGGER "option/gdbdebugger" #define GDBDEBUGGER_USETTY "gdbdebugger/usetty" #endif // GDBDEBUGGER_GLOBAL_H
1,440
C++
.h
33
42.484848
82
0.702568
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,893
gdbdebuggerplugin.h
visualfc_liteide/liteidex/src/plugins/gdbdebugger/gdbdebuggerplugin.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: gdbdebuggerplugin.h // Creator: visualfc <visualfc@gmail.com> #ifndef GDBDEBUGGERPLUGIN_H #define GDBDEBUGGERPLUGIN_H #include "gdbdebugger_global.h" #include "liteapi/liteapi.h" #include <QtPlugin> class GdbDebuggerPlugin : public LiteApi::IPlugin { Q_OBJECT public: GdbDebuggerPlugin(); virtual bool load(LiteApi::IApplication *app); virtual QStringList dependPluginList() const; }; class PluginFactory : public LiteApi::PluginFactoryT<GdbDebuggerPlugin> { Q_OBJECT Q_INTERFACES(LiteApi::IPluginFactory) #if QT_VERSION >= 0x050000 Q_PLUGIN_METADATA(IID "liteidex.GdbDebuggerPlugin") #endif public: PluginFactory() { m_info->setId("plugin/GdbDebugger"); m_info->setName("GdbDebugger"); m_info->setAuthor("visualfc"); m_info->setVer("X32"); m_info->setInfo("Core Gdb Debugger"); m_info->setMustLoad(true); } }; #endif // GDBDEBUGGERPLUGIN_H
1,952
C++
.h
54
33.425926
82
0.687269
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,894
gdbdebuggeroption.h
visualfc_liteide/liteidex/src/plugins/gdbdebugger/gdbdebuggeroption.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: gdbdebuggeroption.h // Creator: visualfc <visualfc@gmail.com> #ifndef GDBDEBUGGEROPTION_H #define GDBDEBUGGEROPTION_H #include "liteapi/liteapi.h" namespace Ui { class GdbDebuggerOption; } class GdbDebuggerOption : public LiteApi::IOption { Q_OBJECT public: explicit GdbDebuggerOption(LiteApi::IApplication *app, QObject *parent = 0); ~GdbDebuggerOption(); virtual QWidget *widget(); virtual QString name() const; virtual QString mimeType() const; virtual void load(); virtual void save(); private: LiteApi::IApplication *m_liteApp; QWidget *m_widget; Ui::GdbDebuggerOption *ui; }; bool isGdbDebuggerUseTty(LiteApi::IApplication *app); #endif // GDBDEBUGGEROPTION_H
1,751
C++
.h
46
35.869565
82
0.690813
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,895
gdbdebuggeroptionfactory.h
visualfc_liteide/liteidex/src/plugins/gdbdebugger/gdbdebuggeroptionfactory.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: gdbdebuggeroptionfactory.h // Creator: visualfc <visualfc@gmail.com> #ifndef GDBDEBUGGEROPTIONFACTORY_H #define GDBDEBUGGEROPTIONFACTORY_H #include "liteapi/liteapi.h" class GdbDebuggerOptionFactory : public LiteApi::IOptionFactory { public: GdbDebuggerOptionFactory(LiteApi::IApplication *app, QObject *parent); virtual QStringList mimeTypes() const; virtual LiteApi::IOption *create(const QString &mimeType); protected: LiteApi::IApplication *m_liteApp; }; #endif // GDBDEBUGGEROPTIONFACTORY_H
1,534
C++
.h
35
42.257143
82
0.707023
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,896
gdbdebugger.h
visualfc_liteide/liteidex/src/plugins/gdbdebugger/gdbdebugger.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: gdbdebugger.h // Creator: visualfc <visualfc@gmail.com> #ifndef GDBDEBUGGER_H #define GDBDEBUGGER_H #include "litedebugapi/litedebugapi.h" #include "liteenvapi/liteenvapi.h" #include "litettyapi/litettyapi.h" #include "qtc_gdbmi/gdbmi.h" #include <QSet> class QProcess; class GdbHandleState { public: GdbHandleState() : m_exited(false),m_stopped(false) {} void clear() { m_reason.clear(); m_exited = false; m_stopped = false; } void setExited(bool b) {m_exited = b;} void setStopped(bool b) {m_stopped = b;} void setReason(const QByteArray &reason) { m_reason = reason; } bool exited() const { return m_exited; } bool stopped() const { return m_stopped; } QByteArray reason() const { return m_reason; } public: bool m_exited; bool m_stopped; QByteArray m_reason; }; class GdbCmd { public: GdbCmd() { } GdbCmd(const QString &cmd) { setCmd(cmd); } GdbCmd(const QStringList &cmd) { setCmd(cmd); } void setCmd(const QString &cmd) { m_cmd = cmd; m_cookie.insert("cmd",m_cmd); m_cookie.insert("cmdList",cmd.split(" ",qtSkipEmptyParts)); } void setCmd(const QStringList &cmd) { m_cmd = cmd.join(" "); m_cookie.insert("cmd",m_cmd); m_cookie.insert("cmdList",cmd); } void insert(const QString &key, const QVariant &value) { m_cookie.insert(key,value); } QByteArray makeCmd(int index) const { #ifdef Q_OS_WIN return QString("%1%2").arg(index,8,10,QLatin1Char('0')).arg(m_cmd).toLatin1(); #else return QString("%1%2").arg(index,8,10,QLatin1Char('0')).arg(m_cmd).toUtf8(); #endif } QMap<QString,QVariant> cookie() const { return m_cookie; } protected: QString m_cmd; QMap<QString,QVariant> m_cookie; }; class QStandardItemModel; class QStandardItem; class GdbDebugger : public LiteApi::IDebugger { Q_OBJECT public: GdbDebugger(LiteApi::IApplication *app, QObject *parent = 0); ~GdbDebugger(); enum VarItemDataRole{ VarNameRole = Qt::UserRole + 1, VarNumChildRole, VarExpanded }; public: virtual QString mimeType() const; virtual QAbstractItemModel *debugModel(LiteApi::DEBUG_MODEL_TYPE type); virtual void setWorkingDirectory(const QString &dir); virtual void setEnvironment (const QStringList &environment); virtual bool start(const QString &program, const QString &arguments); virtual void stop(); virtual bool isRunning(); virtual void stepOver(); virtual void stepInto(); virtual void stepOut(); virtual void continueRun(); virtual void runToLine(const QString &fileName, int line); virtual void command(const QByteArray &cmd); virtual void enterAppText(const QString &text); virtual void enterDebugText(const QString &text); virtual void expandItem(QModelIndex index, LiteApi::DEBUG_MODEL_TYPE type); virtual void setInitBreakTable(const QMultiMap<QString,int> &bks); virtual void setInitWatchList(const QStringList &names); virtual void insertBreakPoint(const QString &fileName, int line); virtual void removeBreakPoint(const QString &fileName, int line); public: virtual void command(const GdbCmd &cmd); virtual void createWatch(const QString &var); virtual void removeWatch(const QString &name); virtual void removeAllWatch(); virtual void dbclickItem(QModelIndex index, LiteApi::DEBUG_MODEL_TYPE type); void showFrame(QModelIndex index); protected: void createWatchHelp(const QString &var, bool floating, bool watchModel); void removeWatchHelp(const QString &var, bool byName, bool children); void removeWatchByNameHelp(const QString &name, bool children); void command_helper(const GdbCmd &cmd, bool emitOut); public slots: void appLoaded(); void readStdError(); void readStdOutput(); void finished(int); void error(QProcess::ProcessError); void readTty(const QByteArray &data); protected: void handleResponse(const QByteArray &buff); void handleStopped(const GdbMiValue &result); void handleLibrary(const GdbMiValue &result); void handleAsyncClass(const QByteArray &asyncClass, const GdbMiValue &result); void handleConsoleStream(const QByteArray &data); void handleTargetStream(const QByteArray &data); void handleLogStream(const QByteArray &data); void handleResultRecord(const GdbResponse &response); void handleResultStackListFrame(const GdbResponse &response, QMap<QString,QVariant> &map); void handleResultStackListVariables(const GdbResponse &response, QMap<QString,QVariant> &map); void handleResultVarCreate(const GdbResponse &response, QMap<QString,QVariant> &map); void handleResultVarListChildren(const GdbResponse &response, QMap<QString,QVariant> &map); void handleResultVarUpdate(const GdbResponse &response, QMap<QString,QVariant> &map); void handleResultVarDelete(const GdbResponse &response, QMap<QString,QVariant> &map); void handleResultVarUpdateValue(const GdbResponse &response, QMap<QString,QVariant> &map); void handleResultVarUpdateType(const GdbResponse &response, QMap<QString,QVariant> &map); void handleBreakInsert(const GdbResponse &response, QMap<QString,QVariant> &map); void handleBreakDelete(const GdbResponse &response, QMap<QString,QVariant> &map); protected: void clear(); void initGdb(); void updateWatch(); void updateLocals(); void updateFrames(); void updateBreaks(); void updateVarTypeInfo(const QString &name); void updateVarListChildren(const QString &name); void updateVarValue(const QString &name); protected: LiteApi::IApplication *m_liteApp; LiteApi::IEnvManager *m_envManager; LiteApi::ITty *m_tty; QProcess *m_process; QStandardItemModel *m_asyncModel; QStandardItemModel *m_varsModel; QStandardItemModel *m_watchModel; QStandardItemModel *m_framesModel; QStandardItemModel *m_libraryModel; QStandardItem *m_asyncItem; QMap<int,QVariant> m_tokenCookieMap; QMap<QString,QString> m_varNameMap; QList<QString> m_watchList; QMap<QString,QStandardItem*> m_nameItemMap; QSet<QStandardItem*> m_varChangedItemList; QString m_gdbFilePath; QString m_runtimeFilePath; QByteArray m_inbuffer; GdbHandleState m_handleState; QMultiMap<QString,int> m_initBks; QMap<QString,QString> m_locationBkMap; bool m_busy; bool m_gdbinit; bool m_gdbexit; int m_token; }; #endif // GDBDEBUGGER_H
7,658
C++
.h
207
32.710145
98
0.711004
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,897
jsonedit_global.h
visualfc_liteide/liteidex/src/plugins/jsonedit/jsonedit_global.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: jsonedit_global.h // Creator: visualfc <visualfc@gmail.com> #ifndef JSONEDIT_GLOBAL_H #define JSONEDIT_GLOBAL_H #include <QtCore/qglobal.h> #if defined(JSONEDIT_LIBRARY) # define JSONEDITSHARED_EXPORT Q_DECL_EXPORT #else # define JSONEDITSHARED_EXPORT Q_DECL_IMPORT #endif #define JSONFMT_TAG "jsonfmt/navtag" #endif // JSONEDIT_GLOBAL_H
1,363
C++
.h
32
41.4375
82
0.690799
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
true
false
false
false
false
false
false
21,898
jsoneditplugin.h
visualfc_liteide/liteidex/src/plugins/jsonedit/jsoneditplugin.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: jsoneditplugin.h // Creator: visualfc <visualfc@gmail.com> #ifndef JSONEDITPLUGIN_H #define JSONEDITPLUGIN_H #include "jsonedit_global.h" #include "liteapi/liteapi.h" class JsonEditPlugin : public LiteApi::IPlugin { Q_OBJECT public: JsonEditPlugin(); virtual bool load(LiteApi::IApplication *app); protected: LiteApi::IApplication *m_liteApp; }; class PluginFactory : public LiteApi::PluginFactoryT<JsonEditPlugin> { Q_OBJECT Q_INTERFACES(LiteApi::IPluginFactory) #if QT_VERSION >= 0x050000 Q_PLUGIN_METADATA(IID "liteidex.JsonEditPlugin") #endif public: PluginFactory() { m_info->setId("plugin/JsonEdit"); m_info->setVer("X27"); m_info->setName("JsonEdit"); m_info->setAuthor("visualfc"); m_info->setInfo("Json Edit Support"); m_info->appendDepend("plugin/liteeditor"); } }; #endif // JSONEDITPLUGIN_H
1,911
C++
.h
53
33.358491
82
0.681965
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,899
jsonedit.h
visualfc_liteide/liteidex/src/plugins/jsonedit/jsonedit.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2019 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: jsonedit.h // Creator: visualfc <visualfc@gmail.com> #ifndef JSONEDIT_H #define JSONEDIT_H #include <liteapi/liteapi.h> #include <liteeditorapi/liteeditorapi.h> #include <qjson/include/QJson/Parser> #include <qjson/include/QJson/Serializer> class JsonEdit : public QObject { Q_OBJECT public: explicit JsonEdit(LiteApi::IApplication *app, QObject *parent = 0); void fmtEditor(LiteApi::IEditor *editor, bool compact, bool tabs, bool diff, int timeout); signals: public slots: void editorCreated(LiteApi::IEditor *editor); void editorSaved(LiteApi::IEditor*); void verify(); void format(); void compact(); protected: bool verifyJson(LiteApi::IEditor *editor); LiteApi::IApplication *m_liteApp; QAction *m_verifyAct; QAction *m_formatAct; QAction *m_compactAct; }; #endif // JSONEDIT_H
1,858
C++
.h
49
35.734694
94
0.694953
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,901
golangtoolplugin.h
visualfc_liteide/liteidex/src/plugins/golangtool/golangtoolplugin.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2013 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: golangtoolplugin.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOLANGTOOLPLUGIN_H #define GOLANGTOOLPLUGIN_H #include "golangtool_global.h" #include "liteapi/liteapi.h" #include <QtPlugin> class GolangToolPlugin : public LiteApi::IPlugin { Q_OBJECT Q_INTERFACES(LiteApi::IPlugin) public: GolangToolPlugin(); virtual bool initWithApp(LiteApi::IApplication *app); virtual QStringList dependPluginList() const; }; #endif // GOLANGTOOLPLUGIN_H
1,488
C++
.h
37
38.567568
82
0.695232
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,902
gopathbrowser.h
visualfc_liteide/liteidex/src/plugins/golangtool/gopathbrowser.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2013 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: gopathbrowser.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOPATHBROWSER_H #define GOPATHBROWSER_H #include <QWidget> #include "liteapi/liteapi.h" #include "liteenvapi/liteenvapi.h" #include <QModelIndex> #include <QFileInfo> #include <QDir> #include <QLabel> class QTreeView; class GopathModel; class GopathBrowser : public QObject { Q_OBJECT public: explicit GopathBrowser(LiteApi::IApplication *app,QObject *parent = 0); ~GopathBrowser(); QWidget *widget() const; void setPathList(const QStringList &pathList); void addPathList(const QString &path); QStringList pathList() const; QStringList systemGopathList() const; void setStartIndex(const QModelIndex &index); QString startPath() const; public slots: void pathIndexChanged(const QModelIndex & index); void openPathIndex(const QModelIndex &index); void reloadEnv(); void currentEditorChanged(LiteApi::IEditor*); void treeViewContextMenuRequested(const QPoint &pos); void setActivate(); void openEditor(); void newFile(); void newFileWizard(); void renameFile(); void removeFile(); void newFolder(); void renameFolder(); void removeFolder(); void openShell(); void openExplorer(); void syncEditor(bool); void syncProject(bool); void expandStartPath(QString); signals: void startPathChanged(const QString& path); protected: QFileInfo contextFileInfo() const; QDir contextDir() const; private: LiteApi::IApplication *m_liteApp; QWidget *m_widget; QTreeView *m_pathTree; GopathModel *m_model; QStringList m_pathList; QFileInfo m_contextInfo; QModelIndex m_contextIndex; QMenu *m_fileMenu; QMenu *m_folderMenu; QAction *m_setStartAct; QAction *m_openEditorAct; QAction *m_newFileAct; QAction *m_newFileWizardAct; QAction *m_removeFileAct; QAction *m_renameFileAct; QAction *m_newFolderAct; QAction *m_removeFolderAct; QAction *m_renameFolderAct; QAction *m_openShellAct; QAction *m_openExplorerAct; QToolBar *m_toolBar; QAction *m_syncEditor; QAction *m_syncProject; QLabel *m_startPathLabel; }; #endif // GOPATHBROWSER_H
3,236
C++
.h
98
29.642857
82
0.708853
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,903
gopathprojectfactor.h
visualfc_liteide/liteidex/src/plugins/golangtool/gopathprojectfactor.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2013 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: gopathprojectfactor.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOPATHPROJECTFACTOR_H #define GOPATHPROJECTFACTOR_H #include "liteapi/liteapi.h" class GopathBrowser; class GopathProjectFactor : public LiteApi::IProjectFactory { Q_OBJECT public: explicit GopathProjectFactor(LiteApi::IApplication *app, QObject *parent = 0); ~GopathProjectFactor(); virtual QStringList mimeTypes() const; virtual LiteApi::IProject *open(const QString &fileName, const QString &mimeType); virtual bool findProjectInfo(const QString &fileName, const QString &mimetype, QMap<QString,QString>& projectInfo, QMap<QString,QString>& findProjectInfo) const; public slots: void importGopath(); void loadApp(); protected: LiteApi::IApplication *m_liteApp; GopathBrowser *m_browser; QStringList m_mimeTypes; }; #endif // GOPATHPROJECTFACTOR_H
1,888
C++
.h
44
40.818182
165
0.713587
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
21,905
gopathmodel.h
visualfc_liteide/liteidex/src/plugins/golangtool/gopathmodel.h
/************************************************************************** ** This file is part of LiteIDE ** ** Copyright (c) 2011-2013 LiteIDE. All rights reserved. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2.1 of the License, or (at your option) any later version. ** ** This library is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** Lesser General Public License for more details. ** ** In addition, as a special exception, that plugins developed for LiteIDE, ** are allowed to remain closed sourced and can be distributed under any license . ** These rights are included in the file LGPL_EXCEPTION.txt in this package. ** **************************************************************************/ // Module: gopathmodel.h // Creator: visualfc <visualfc@gmail.com> #ifndef GOPATHMODEL_H #define GOPATHMODEL_H #include <QAbstractItemModel> #include <QStringList> #include <QIcon> #include <QFileInfo> class GopathModel; class PathNode { public: PathNode(GopathModel *model); PathNode(GopathModel *model,const QString &path, PathNode *parent); ~PathNode(); PathNode* parent(); PathNode* child(int row); int childCount(); int row() const; QList<PathNode*>* children(); QString path() const; QString text() const; QFileInfo fileInfo() const; bool isDir() const; bool isFile() const; void clear(); void reload(); PathNode *findPath(const QString &path); protected: GopathModel *m_model; PathNode *m_parent; QList<PathNode*> *m_children; QString m_path; QString m_text; }; class QFileIconProvider; class QFileSystemWatcher; class QTreeView; class GopathModel : public QAbstractItemModel { Q_OBJECT public: explicit GopathModel(QObject *parent = 0); ~GopathModel(); void setPathList(const QStringList &pathList); QList<QModelIndex> findPaths(const QString &path) const; QModelIndex findPath(const QString &path) const; QString filePath(const QModelIndex &index) const; PathNode *nodeFromIndex(const QModelIndex &index) const; void setStartIndex(const QModelIndex &index); void setStartPath(const QString &path); QModelIndex startIndex() const; QString startPath() const; virtual int rowCount(const QModelIndex &parent = QModelIndex()) const; virtual int columnCount(const QModelIndex &parent = QModelIndex()) const; virtual QModelIndex parent(const QModelIndex &child) const; virtual QModelIndex index(int row, int column,const QModelIndex &parent = QModelIndex()) const; virtual QVariant data(const QModelIndex &index, int role) const; QFileSystemWatcher* fileWatcher() const; public slots: void directoryChanged(const QString&); protected: QModelIndex findPathHelper(const QString &path, const QModelIndex &parentIndex) const; QStringList m_pathList; PathNode *m_rootNode; QString m_startPath; QFileIconProvider *m_iconProvider; QFileSystemWatcher *m_fileWatcher; QTreeView *m_treeView; }; #endif // GOPATHMODEL_H
3,321
C++
.h
91
33.285714
99
0.715659
visualfc/liteide
7,563
970
395
LGPL-2.1
9/20/2024, 9:26:25 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false