mirror of
https://github.com/fralx/LimeReport.git
synced 2025-11-25 00:18:06 +03:00
Define code style and format all source file using clang-format-14
except those placed in 3rdparty directories.
This commit is contained in:
@@ -30,27 +30,25 @@
|
||||
#ifndef LRDATABROWSER_H
|
||||
#define LRDATABROWSER_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QTreeWidget>
|
||||
#include <QToolButton>
|
||||
#include <QDockWidget>
|
||||
|
||||
#include "lrdatabrowsertree.h"
|
||||
#include "lrreportdesignwidget.h"
|
||||
#include "lrsqleditdialog.h"
|
||||
#include "lrdatabrowsertree.h"
|
||||
|
||||
namespace LimeReport{
|
||||
#include <QDockWidget>
|
||||
#include <QToolButton>
|
||||
#include <QTreeWidget>
|
||||
#include <QWidget>
|
||||
|
||||
namespace LimeReport {
|
||||
|
||||
namespace Ui {
|
||||
class DataBrowser;
|
||||
}
|
||||
|
||||
class DataBrowser : public QWidget, public IConnectionController
|
||||
{
|
||||
class DataBrowser: public QWidget, public IConnectionController {
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
explicit DataBrowser(QWidget *parent = 0);
|
||||
explicit DataBrowser(QWidget* parent = 0);
|
||||
~DataBrowser();
|
||||
QSize sizeHint() const;
|
||||
void setReportEditor(LimeReport::ReportDesignWidget* report);
|
||||
@@ -62,7 +60,7 @@ public:
|
||||
void setSettings(QSettings* value, bool owned = false);
|
||||
QSettings* settings();
|
||||
QString lastError() const;
|
||||
void setLastError(const QString &lastError);
|
||||
void setLastError(const QString& lastError);
|
||||
|
||||
private slots:
|
||||
void slotDatasourcesChanged();
|
||||
@@ -77,24 +75,27 @@ private slots:
|
||||
void slotDataWindowClosed();
|
||||
void slotChangeConnection();
|
||||
void slotChangeConnectionState();
|
||||
void slotVariableEditorAccept(const QString &variable);
|
||||
void on_dataTree_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous);
|
||||
void slotVariableEditorAccept(const QString& variable);
|
||||
void on_dataTree_currentItemChanged(QTreeWidgetItem* current, QTreeWidgetItem* previous);
|
||||
void on_editVariable_clicked();
|
||||
void on_deleteVariable_clicked();
|
||||
void on_addVariable_clicked();
|
||||
void on_variablesTree_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous);
|
||||
void on_variablesTree_currentItemChanged(QTreeWidgetItem* current, QTreeWidgetItem* previous);
|
||||
void on_errorMessage_clicked();
|
||||
void on_varToReport_clicked();
|
||||
void on_variablesTree_itemDoubleClicked(QTreeWidgetItem *item, int);
|
||||
void on_variablesTree_itemDoubleClicked(QTreeWidgetItem* item, int);
|
||||
|
||||
private:
|
||||
enum NameType{NameForUser, NameForReport};
|
||||
enum NameType {
|
||||
NameForUser,
|
||||
NameForReport
|
||||
};
|
||||
QString getDatasourceName();
|
||||
QString getConnectionName(NameType nameType);
|
||||
QString getVariable();
|
||||
bool isClosingWindows() const {return m_closingWindows;}
|
||||
QTreeWidgetItem * findByNameAndType(QString name, int itemType);
|
||||
void fillFields(QTreeWidgetItem *parentItem, LimeReport::IDataSource *dataSource);
|
||||
bool isClosingWindows() const { return m_closingWindows; }
|
||||
QTreeWidgetItem* findByNameAndType(QString name, int itemType);
|
||||
void fillFields(QTreeWidgetItem* parentItem, LimeReport::IDataSource* dataSource);
|
||||
QDockWidget* createDataWindow(QString datasourceName);
|
||||
void closeDataWindow(QString datasourceName);
|
||||
QDockWidget* dataWindow(QString datasourceName);
|
||||
@@ -113,22 +114,22 @@ private:
|
||||
void applyChanges(SQLEditResult result);
|
||||
void addDatasource(SQLEditResult result);
|
||||
|
||||
void addConnectionDesc(ConnectionDesc *connection);
|
||||
void changeConnectionDesc(ConnectionDesc *connection);
|
||||
bool checkConnectionDesc(ConnectionDesc *connection);
|
||||
void addConnectionDesc(ConnectionDesc* connection);
|
||||
void changeConnectionDesc(ConnectionDesc* connection);
|
||||
bool checkConnectionDesc(ConnectionDesc* connection);
|
||||
bool containsDefaultConnection();
|
||||
void activateItem(const QString &name, DataBrowserTree::NodeType type);
|
||||
void activateItem(const QString& name, DataBrowserTree::NodeType type);
|
||||
|
||||
private:
|
||||
Ui::DataBrowser* ui;
|
||||
ReportDesignWidget* m_report;
|
||||
QMap<QString,QDockWidget*> m_dataWindows;
|
||||
QMainWindow* m_mainWindow;
|
||||
bool m_closingWindows;
|
||||
QSettings* m_settings;
|
||||
bool m_ownedSettings;
|
||||
QString m_lastError;
|
||||
Ui::DataBrowser* ui;
|
||||
ReportDesignWidget* m_report;
|
||||
QMap<QString, QDockWidget*> m_dataWindows;
|
||||
QMainWindow* m_mainWindow;
|
||||
bool m_closingWindows;
|
||||
QSettings* m_settings;
|
||||
bool m_ownedSettings;
|
||||
QString m_lastError;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace LimeReport
|
||||
#endif // LRDATABROWSER_H
|
||||
|
||||
Reference in New Issue
Block a user