mirror of
https://github.com/fralx/LimeReport.git
synced 2025-10-07 13:23:59 +03:00
All limereport items moved to LimeReport namespace
This commit is contained in:
@@ -37,6 +37,8 @@
|
||||
#include <stdexcept>
|
||||
#include <QFileDialog>
|
||||
|
||||
namespace LimeReport{
|
||||
|
||||
ConnectionDialog::ConnectionDialog(LimeReport::IConnectionController *conControl, LimeReport::ConnectionDesc* connectionDesc, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::ConnectionDialog),m_connection(connectionDesc),m_controller(conControl)
|
||||
@@ -147,3 +149,5 @@ void ConnectionDialog::on_toolButton_clicked()
|
||||
{
|
||||
ui->leDataBase->setText(QFileDialog::getOpenFileName());
|
||||
}
|
||||
|
||||
} // namespace LimeReport
|
||||
|
@@ -33,6 +33,8 @@
|
||||
#include <QDialog>
|
||||
#include "lrdatadesignintf.h"
|
||||
|
||||
namespace LimeReport{
|
||||
|
||||
namespace Ui {
|
||||
class ConnectionDialog;
|
||||
}
|
||||
@@ -63,4 +65,6 @@ private:
|
||||
LimeReport::IConnectionController* m_controller;
|
||||
};
|
||||
|
||||
} // namespace LimeReport
|
||||
|
||||
#endif // LRCONNECTIONDIALOG_H
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>ConnectionDialog</class>
|
||||
<widget class="QDialog" name="ConnectionDialog">
|
||||
<class>LimeReport::ConnectionDialog</class>
|
||||
<widget class="QDialog" name="LimeReport::ConnectionDialog">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
@@ -196,7 +196,7 @@
|
||||
<connection>
|
||||
<sender>pbOk</sender>
|
||||
<signal>clicked()</signal>
|
||||
<receiver>ConnectionDialog</receiver>
|
||||
<receiver>LimeReport::ConnectionDialog</receiver>
|
||||
<slot>slotAccept()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
@@ -212,7 +212,7 @@
|
||||
<connection>
|
||||
<sender>pbCancel</sender>
|
||||
<signal>clicked()</signal>
|
||||
<receiver>ConnectionDialog</receiver>
|
||||
<receiver>LimeReport::ConnectionDialog</receiver>
|
||||
<slot>reject()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
@@ -228,7 +228,7 @@
|
||||
<connection>
|
||||
<sender>pbCheckConnection</sender>
|
||||
<signal>clicked()</signal>
|
||||
<receiver>ConnectionDialog</receiver>
|
||||
<receiver>LimeReport::ConnectionDialog</receiver>
|
||||
<slot>slotCheckConnection()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
|
@@ -38,10 +38,11 @@
|
||||
#include "lrreportdesignwidget.h"
|
||||
#include "lrsqleditdialog.h"
|
||||
|
||||
namespace LimeReport{
|
||||
|
||||
namespace Ui {
|
||||
class DataBrowser;
|
||||
}
|
||||
namespace LimeReport{
|
||||
|
||||
class DataBrowser : public QWidget, public IConnectionController
|
||||
{
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>DataBrowser</class>
|
||||
<widget class="QWidget" name="DataBrowser">
|
||||
<class>LimeReport::DataBrowser</class>
|
||||
<widget class="QWidget" name="LimeReport::DataBrowser">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
|
@@ -31,6 +31,8 @@
|
||||
#include <QDebug>
|
||||
#include <QMimeData>
|
||||
|
||||
namespace LimeReport {
|
||||
|
||||
DataBrowserTree::DataBrowserTree(QWidget *parent) :
|
||||
QTreeWidget(parent){}
|
||||
|
||||
@@ -45,3 +47,5 @@ QMimeData *DataBrowserTree::mimeData(const QList<QTreeWidgetItem *> items) const
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
} // namespace LimeReport
|
||||
|
@@ -32,6 +32,9 @@
|
||||
|
||||
#include <QTreeWidget>
|
||||
|
||||
namespace LimeReport{
|
||||
|
||||
|
||||
class DataBrowserTree : public QTreeWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -45,4 +48,6 @@ public slots:
|
||||
|
||||
};
|
||||
|
||||
} // namespace LimeReport
|
||||
|
||||
#endif // LRDATABROWSERTREE_H
|
||||
|
@@ -35,6 +35,8 @@
|
||||
#include <QSqlDatabase>
|
||||
#include <QMessageBox>
|
||||
|
||||
namespace LimeReport{
|
||||
|
||||
SQLEditDialog::SQLEditDialog(QWidget *parent, LimeReport::DataSourceManager *dataSources, SQLDialogMode dialogMode) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::SQLEditDialog),m_datasources(dataSources),m_dialogMode(dialogMode), m_oldDatasourceName(""),
|
||||
@@ -341,3 +343,4 @@ void SQLEditDialog::hidePreview()
|
||||
ui->pbHidePreview->setVisible(false);
|
||||
}
|
||||
|
||||
} // namespace LimeReport
|
||||
|
@@ -38,6 +38,8 @@
|
||||
#include "lrdatasourcemanager.h"
|
||||
#include "lrdatadesignintf.h"
|
||||
|
||||
namespace LimeReport{
|
||||
|
||||
namespace Ui {
|
||||
class SQLEditDialog;
|
||||
}
|
||||
@@ -106,4 +108,6 @@ struct SQLEditResult{
|
||||
QList<LimeReport::FieldsCorrelation> fieldMap;
|
||||
};
|
||||
|
||||
} // namespace LimeReport
|
||||
|
||||
#endif // LRSQLEDITDIALOG_H
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>SQLEditDialog</class>
|
||||
<widget class="QDialog" name="SQLEditDialog">
|
||||
<class>LimeReport::SQLEditDialog</class>
|
||||
<widget class="QDialog" name="LimeReport::SQLEditDialog">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
@@ -807,7 +807,7 @@
|
||||
<connection>
|
||||
<sender>leDatasourceName</sender>
|
||||
<signal>textChanged(QString)</signal>
|
||||
<receiver>SQLEditDialog</receiver>
|
||||
<receiver>LimeReport::SQLEditDialog</receiver>
|
||||
<slot>slotDataSourceNameEditing()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
@@ -823,7 +823,7 @@
|
||||
<connection>
|
||||
<sender>pushButton</sender>
|
||||
<signal>clicked()</signal>
|
||||
<receiver>SQLEditDialog</receiver>
|
||||
<receiver>LimeReport::SQLEditDialog</receiver>
|
||||
<slot>accept()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
@@ -839,7 +839,7 @@
|
||||
<connection>
|
||||
<sender>pushButton_2</sender>
|
||||
<signal>clicked()</signal>
|
||||
<receiver>SQLEditDialog</receiver>
|
||||
<receiver>LimeReport::SQLEditDialog</receiver>
|
||||
<slot>reject()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
|
Reference in New Issue
Block a user