Skip to content

Commit

Permalink
use iwyu & add readme (#72)
Browse files Browse the repository at this point in the history
Co-authored-by: shijie.chen <[email protected]>
  • Loading branch information
xingwozhonghua126 and shijie.chen authored Oct 30, 2024
1 parent 5ddbdfe commit 62d8d8a
Show file tree
Hide file tree
Showing 25 changed files with 42 additions and 33 deletions.
21 changes: 21 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
fcitx5-configtool
==============================================

[![Jenkins Build Status](https://img.shields.io/jenkins/s/https/jenkins.fcitx-im.org/job/fcitx5-configtool.svg)](https://jenkins.fcitx-im.org/job/fcitx5-configtool/)

fcitx5-configtool is a Qt-based GUI tool that provides a user-friendly configuration interface for Fcitx 5. It has two different implementations: one based on QWidget, which can be accessed via fcitx5-config-qt, and the other based on KCM/Kirigami2, which can be found in Plasma systemsettings.

## Installation

To install fcitx5-configtool, follow these steps:

Install Fcitx 5.
Install the fcitx5-configtool package.

## Usage

To use fcitx5-configtool, follow these steps:

Start fcitx5.
Run fcitx5-configtool.
Select and add your preferred input method from the “Available Input Methods” panel.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
fcitx5-configtool
==============================================

[![Jenkins Build Status](https://img.shields.io/jenkins/s/https/jenkins.fcitx-im.org/job/fcitx5-configtool.svg)](https://jenkins.fcitx-im.org/job/fcitx5-configtool/)

fcitx5-configtool is a Qt-based GUI tool that provides a user-friendly configuration interface for Fcitx 5. It has two different implementations: one based on QWidget, which can be accessed via fcitx5-config-qt, and the other based on KCM/Kirigami2, which can be found in Plasma systemsettings.

## Installation

To install fcitx5-configtool, follow these steps:

Install Fcitx 5.
Install the fcitx5-configtool package.

## Usage

To use fcitx5-configtool, follow these steps:

Start fcitx5.
Run fcitx5-configtool.
Select and add your preferred input method from the “Available Input Methods” panel.
1 change: 0 additions & 1 deletion layout/keyboardlayoutwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#ifndef KEYBOARDLAYOUTWIDGET_H
#define KEYBOARDLAYOUTWIDGET_H

#include <QAbstractNativeEventFilter>
#include <QMap>
#include <QWidget>
#include <vector>
Expand Down
1 change: 0 additions & 1 deletion layout/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <QMainWindow>
#include <QMessageBox>
#include <fcitx-utils/i18n.h>
#include <fcitx-utils/standardpath.h>

int main(int argc, char *argv[]) {
qputenv("QT_QPA_PLATFORM", "xcb");
Expand Down
4 changes: 0 additions & 4 deletions src/kcm/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
*/
#include "main.h"
#include "addonmodel.h"
#include "config.h"
#include "dbusprovider.h"
#include "logging.h"
#include <KAboutData>
#include <KLocalizedString>
#include <KPluginFactory>
Expand All @@ -20,10 +18,8 @@
#include <QString>
#include <QVariantMap>
#include <QtGlobal>
#include <config.h>
#include <fcitx-utils/misc.h>
#include <fcitx-utils/standardpath.h>
#include <fcitx-utils/stringutils.h>

namespace fcitx::kcm {

Expand Down
1 change: 0 additions & 1 deletion src/kcm/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "dbusprovider.h"
#include "font.h"
#include "imconfig.h"
#include "model.h"
#include <QFont>
#include <QMap>
#include <fcitx-utils/color.h>
Expand Down
1 change: 0 additions & 1 deletion src/lib/configlib/addonmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "addonmodel.h"
#include "config.h"
#include <QCollator>
#include <QDebug>
#include <QDir>
#include <QFileInfo>
#include <QProcess>
Expand Down
1 change: 0 additions & 1 deletion src/lib/configlib/model.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#ifndef _KCM_FCITX_MODEL_H_
#define _KCM_FCITX_MODEL_H_

#include <QAbstractListModel>
#include <QSet>
#include <QSortFilterProxyModel>
#include <fcitxqtdbustypes.h>
Expand Down
1 change: 0 additions & 1 deletion src/lib/configwidgetslib/addonselector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include "categoryhelper.h"
#include "configwidget.h"
#include "dbusprovider.h"
#include "model.h"
#include "ui_addonselector.h"
#include <KWidgetItemDelegate>
#include <QApplication>
Expand Down
1 change: 0 additions & 1 deletion src/lib/configwidgetslib/configwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "configwidget.h"
#include "addonmodel.h"
#include "dbusprovider.h"
#include "keylistwidget.h"
#include "logging.h"
#include "optionwidget.h"
#include "verticalscrollarea.h"
Expand Down
1 change: 0 additions & 1 deletion src/lib/configwidgetslib/impage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <QMessageBox>
#include <QPainter>
#include <QStyledItemDelegate>
#include <fcitxqtcontrollerproxy.h>

namespace fcitx {
namespace kcm {
Expand Down
1 change: 0 additions & 1 deletion src/lib/configwidgetslib/impage.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "imconfig.h"
#include <QDBusPendingCallWatcher>
#include <QWidget>
#include <fcitxqtdbustypes.h>
#include <memory>

namespace Ui {
Expand Down
1 change: 0 additions & 1 deletion src/lib/configwidgetslib/keylistwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <QHBoxLayout>
#include <QStyle>
#include <QToolButton>
#include <QVBoxLayout>
#include <fcitx-utils/i18n.h>
#include <fcitxqtkeysequencewidget.h>

Expand Down
1 change: 0 additions & 1 deletion src/lib/configwidgetslib/layoutselector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <QPushButton>
#include <QStringListModel>
#include <fcitx-utils/i18n.h>
#include <fcitxqtcontrollerproxy.h>
#include <fcitxqtdbustypes.h>

namespace fcitx {
Expand Down
1 change: 0 additions & 1 deletion src/lib/configwidgetslib/listoptionwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "listoptionwidget.h"
#include "varianthelper.h"
#include <QAbstractListModel>
#include <QDebug>
#include <QtGlobal>

namespace fcitx {
Expand Down
1 change: 0 additions & 1 deletion src/lib/configwidgetslib/verticalscrollarea.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*/
#include <QEvent>
#include <QScrollBar>
#include <QVBoxLayout>

#include "verticalscrollarea.h"

Expand Down
1 change: 0 additions & 1 deletion src/migrator/app/welcomepage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*/
#include "welcomepage.h"
#include "mainwindow.h"
#include <QDebug>

namespace fcitx {

Expand Down
1 change: 0 additions & 1 deletion src/migrator/global/globalconfigmigrator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*/
#include "globalconfigmigrator.h"
#include "configmigrator.h"
#include "copydirectory.h"
#include "pipeline.h"
#include <QFileInfo>
#include <fcitx-config/iniparser.h>
Expand Down
1 change: 0 additions & 1 deletion src/migrator/lib/dbuswatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "dbuswatcher.h"
#include <QDBusConnection>
#include <QDBusConnectionInterface>
#include <QDebug>
#include <QTimer>
#include <fcitx-utils/i18n.h>

Expand Down
1 change: 0 additions & 1 deletion src/migrator/lib/migratorfactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include <QDir>
#include <QFileInfo>
#include <QPluginLoader>
#include <QSet>
#include <QVariant>
#include <QVector>
#include <fcitx-utils/standardpath.h>
Expand Down
1 change: 0 additions & 1 deletion src/migrator/lib/migratorfactoryplugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include "fcitx5migrator_export.h"
#include "migrator.h"
#include <QtPlugin>

namespace fcitx {

Expand Down
3 changes: 0 additions & 3 deletions src/migrator/lib/processrunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@
*
*/
#include "processrunner.h"
#include "log.h"
#include <QDebug>
#include <QProcess>
#include <QTemporaryFile>
#include <fcitx-utils/i18n.h>
#include <fcitx-utils/standardpath.h>

namespace fcitx {

Expand Down
4 changes: 0 additions & 4 deletions src/migrator/lib/renamefile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
*
*/
#include "renamefile.h"
#include <QDebug>
#include <QProcess>
#include <QTemporaryFile>
#include <fcitx-utils/i18n.h>
#include <fcitx-utils/standardpath.h>

namespace fcitx {

Expand Down
2 changes: 0 additions & 2 deletions src/migrator/table/tablemigrator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@
#include <QDir>
#include <QFileInfo>
#include <QStandardPaths>
#include <fcitx-config/iniparser.h>
#include <fcitx-utils/i18n.h>
#include <fcitx-utils/standardpath.h>
#include <fcitx-utils/stringutils.h>
#include <fcntl.h>

namespace fcitx {

Expand Down
2 changes: 0 additions & 2 deletions src/plasmathemegenerator/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <Plasma/Theme>
#include <QBitmap>
#include <QCommandLineParser>
#include <QDebug>
#include <QDir>
#include <QPainter>
#include <QSocketNotifier>
Expand All @@ -20,7 +19,6 @@
#include <fcitx-utils/standardpath.h>
#include <fcntl.h>
#include <memory>
#include <qmath.h>

#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include <KSvg/FrameSvg>
Expand Down

0 comments on commit 62d8d8a

Please sign in to comment.