Skip to content

Commit 1021706

Browse files
committed
Document: Modify doxygen
1 parent 9da15a2 commit 1021706

10 files changed

Lines changed: 56 additions & 20 deletions

File tree

App/Client/Favorite/FavoriteDatabase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
/*!
1111
* \brief The CFavoriteDatabase class
12-
* \ingroup DATABASE_API
12+
* \ingroup LIBAPI_DATABASE
1313
*/
1414
class CFavoriteDatabase : public CDatabaseTree
1515
{

App/Client/Recent/RecentDatabase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
/*!
1212
* \brief The CRecentDatabase class
13-
* \ingroup DATABASE_API
13+
* \ingroup LIBAPI_DATABASE
1414
*/
1515
class CRecentDatabase : public CDatabase
1616
{

Plugins/WebBrowser/Bookmark/BookmarkDatabase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ struct BookmarkItem {
6161

6262
/*!
6363
* \brief The CBookmarkDatabase class
64-
* \ingroup DATABASE_API
64+
* \ingroup LIBAPI_DATABASE
6565
*/
6666
class CBookmarkDatabase : public CDatabase
6767
{

Plugins/WebBrowser/History/HistoryDatabase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ struct HistoryItem {
1919

2020
/*!
2121
* \brief The CHistoryDatabase class
22-
* \ingroup DATABASE_API
22+
* \ingroup LIBAPI_DATABASE
2323
*/
2424
class CHistoryDatabase : public CDatabase
2525
{

Src/Database/Database.h

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@
1111
class CParameterDatabase;
1212

1313
/*!
14-
* \chinese 提供打开数据库和初始化数据库等接口
15-
* \english Provide interfaces such as opening the database and initializing the database
14+
* \~chinese 提供打开数据库和初始化数据库等接口
15+
* \~english Provide interfaces such as opening the database and initializing the database
1616
*
1717
* \~
18-
* \ingroup APP_API PLUGIN_API
19-
* \defgroup DATABASE_API
18+
* \ingroup APP_API PLUGIN_API LIBAPI_DATABASE
2019
*/
2120
class PLUGIN_EXPORT CDatabase : public QObject
2221
{
@@ -26,6 +25,10 @@ class PLUGIN_EXPORT CDatabase : public QObject
2625
explicit CDatabase(QObject *parent = nullptr);
2726
virtual ~CDatabase();
2827

28+
//!@{
29+
//! \~chinese \name 共享已打开的数据库
30+
//! \~english \name Share an existing database
31+
2932
/*!
3033
* \brief Share an existing database
3134
* \param db
@@ -37,10 +40,15 @@ class PLUGIN_EXPORT CDatabase : public QObject
3740
* \param pPara
3841
*/
3942
[[nodiscard]] bool SetDatabase(const QSqlDatabase db, const CParameterDatabase* pPara);
43+
//!@}
44+
4045
[[nodiscard]] QSqlDatabase GetDatabase() const;
4146

42-
/*!
43-
* \brief Open a new database
47+
//!@{
48+
//! \~chinese \name 打开一个新的数据库
49+
//! \~english \name Open a new database
50+
51+
/*! \brief Open a new database
4452
* \param pPara: nullptr, use sqlite database
4553
* \param szConnectName: connect name
4654
* \return
@@ -62,7 +70,8 @@ class PLUGIN_EXPORT CDatabase : public QObject
6270
[[nodiscard]] bool OpenSQLiteDatabase(
6371
const QString& szFile,
6472
const QString& szConnectionName = QString());
65-
73+
//!@}
74+
6675
[[nodiscard]] virtual bool IsOpen() const;
6776
/*!
6877
* \brief Close database
@@ -72,21 +81,30 @@ class PLUGIN_EXPORT CDatabase : public QObject
7281

7382
[[nodiscard]] const CParameterDatabase* GetParameter() const;
7483
[[nodiscard]] const QString GetError() const;
75-
84+
85+
//!@{
86+
//! \~chinese \name 导入与导出操作
87+
//! \~english \name Export and import operate
7688
[[nodiscard]] virtual bool ExportToJsonFile(const QString& szFile);
7789
[[nodiscard]] virtual bool ImportFromJsonFile(const QString& szFile);
90+
//!@}
7891

7992
Q_SIGNALS:
8093
void sigChanged();
8194

8295
protected:
96+
//!@{
97+
//! \~chinese \name 初始化数据库和表
98+
//! \~english \name Initialize table
8399
/*!
84100
* \brief Initialize database
85101
* \return
86102
*/
87103
[[nodiscard]] virtual bool OnInitializeDatabase();
88104
[[nodiscard]] virtual bool OnInitializeSqliteDatabase();
89105
[[nodiscard]] virtual bool OnInitializeMySqlDatabase();
106+
//!@}
107+
90108
void SetError(const QString& szErr = QString());
91109

92110
[[nodiscard]] virtual bool ExportToJson(QJsonObject& obj);
@@ -105,7 +123,7 @@ class PLUGIN_EXPORT CDatabase : public QObject
105123

106124
/*!
107125
* \brief Icon database
108-
* \ingroup DATABASE_API
126+
* \ingroup LIBAPI_DATABASE
109127
*/
110128
class PLUGIN_EXPORT CDatabaseIcon : public CDatabase
111129
{
@@ -140,7 +158,7 @@ class PLUGIN_EXPORT CDatabaseIcon : public CDatabase
140158
/*!
141159
* \brief File database
142160
* \note The file field is filename, don't include path.
143-
* \ingroup DATABASE_API
161+
* \ingroup LIBAPI_DATABASE
144162
*/
145163
class PLUGIN_EXPORT CDatabaseFile : public CDatabase
146164
{

Src/Database/DatabaseFilter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/*!
88
* \brief The CDatabaseFilter class
9-
* \ingroup DATABASE_API
9+
* \ingroup LIBAPI_DATABASE
1010
*/
1111
class PLUGIN_EXPORT CDatabaseFilter : public CDatabase
1212
{

Src/Database/DatabaseTree.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class PLUGIN_EXPORT TreeItem {
5555

5656
/*!
5757
* \brief The CDatabaseNode class
58-
* \ingroup DATABASE_API
58+
* \ingroup LIBAPI_DATABASE
5959
*/
6060
class PLUGIN_EXPORT CDatabaseNode : public CDatabase
6161
{
@@ -104,7 +104,7 @@ class PLUGIN_EXPORT CDatabaseNode : public CDatabase
104104

105105
/*!
106106
* \brief The CDatabaseTree class
107-
* \ingroup DATABASE_API
107+
* \ingroup LIBAPI_DATABASE
108108
*/
109109
class PLUGIN_EXPORT CDatabaseTree : public CDatabase
110110
{

Src/Parameter.h

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@
2525
* \ref section_Use_CParameterPlugin
2626
* \see CParameterPlugin
2727
* COperate::SetGlobalParameters
28-
* 3. 同时在应用程序、插件管理者 (CManager) 和插件内有效。暂时没有使用此类型。
28+
* 3. 同时在应用程序、插件管理者 (CManager) 和插件内有效。
29+
* - 可以在插件管理者 (CManager) 和插件中以及应用中使用。
30+
* - 应用程序可以通过 CManager::GetGlobalParameters() 得到它。
31+
* - 插件可以通 CParameterPlugin::GetGlobalParameters() 访问。
32+
* - 应用通过 CManager::GetSettingsWidgets() 进行设置。
33+
* \see CParameterGlobal CParameterPlugin CManager CManager::GetGlobalParameters
2934
* - 参数界面: CParameterUI
3035
*
3136
* \~english
@@ -49,7 +54,11 @@
4954
* \see CParameterClient
5055
* COperate::SetGlobalParameters
5156
* 3. Valid in both the application and the Client and the plugin.
52-
* This type is not used at this time.
57+
* - The parameters is valid in the CManager, plugin and application
58+
* - The applicat can be accessed via CManager::GetGlobalParameters()
59+
* - The plugin can be accessed via CParameterPlugin::GetGlobalParameters()
60+
* - The application can be set it via CManager::GetSettingsWidgets()
61+
* \see CParameterGlobal CParameterPlugin CManager CManager::GetGlobalParameters
5362
* - CParameterUI
5463
* \~
5564
* \ingroup LIBAPI_PLUGIN

docs/Doxygen/Chinese.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,8 @@
146146
+ 类关系图
147147
\image html docs/Image/Channel.svg
148148
149+
\defgroup LIBAPI_DATABASE 数据库
150+
\ingroup LIBAPI
151+
\brief 数据库
152+
149153
*/

docs/Doxygen/English.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,5 +153,10 @@
153153
\details
154154
+ Class relationship
155155
\image html docs/Image/Channel.svg
156-
156+
157+
158+
\defgroup LIBAPI_DATABASE Database
159+
\ingroup LIBAPI
160+
\brief Database
161+
157162
*/

0 commit comments

Comments
 (0)