All limereport items moved to LimeReport namespace

This commit is contained in:
Arin Alex 2016-03-04 04:53:34 +03:00
parent 16727fef18
commit 9dc3d4bfd8
38 changed files with 134 additions and 47 deletions

View File

@ -37,6 +37,8 @@
#include <stdexcept> #include <stdexcept>
#include <QFileDialog> #include <QFileDialog>
namespace LimeReport{
ConnectionDialog::ConnectionDialog(LimeReport::IConnectionController *conControl, LimeReport::ConnectionDesc* connectionDesc, QWidget *parent) : ConnectionDialog::ConnectionDialog(LimeReport::IConnectionController *conControl, LimeReport::ConnectionDesc* connectionDesc, QWidget *parent) :
QDialog(parent), QDialog(parent),
ui(new Ui::ConnectionDialog),m_connection(connectionDesc),m_controller(conControl) ui(new Ui::ConnectionDialog),m_connection(connectionDesc),m_controller(conControl)
@ -147,3 +149,5 @@ void ConnectionDialog::on_toolButton_clicked()
{ {
ui->leDataBase->setText(QFileDialog::getOpenFileName()); ui->leDataBase->setText(QFileDialog::getOpenFileName());
} }
} // namespace LimeReport

View File

@ -33,6 +33,8 @@
#include <QDialog> #include <QDialog>
#include "lrdatadesignintf.h" #include "lrdatadesignintf.h"
namespace LimeReport{
namespace Ui { namespace Ui {
class ConnectionDialog; class ConnectionDialog;
} }
@ -63,4 +65,6 @@ private:
LimeReport::IConnectionController* m_controller; LimeReport::IConnectionController* m_controller;
}; };
} // namespace LimeReport
#endif // LRCONNECTIONDIALOG_H #endif // LRCONNECTIONDIALOG_H

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>ConnectionDialog</class> <class>LimeReport::ConnectionDialog</class>
<widget class="QDialog" name="ConnectionDialog"> <widget class="QDialog" name="LimeReport::ConnectionDialog">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
@ -196,7 +196,7 @@
<connection> <connection>
<sender>pbOk</sender> <sender>pbOk</sender>
<signal>clicked()</signal> <signal>clicked()</signal>
<receiver>ConnectionDialog</receiver> <receiver>LimeReport::ConnectionDialog</receiver>
<slot>slotAccept()</slot> <slot>slotAccept()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">
@ -212,7 +212,7 @@
<connection> <connection>
<sender>pbCancel</sender> <sender>pbCancel</sender>
<signal>clicked()</signal> <signal>clicked()</signal>
<receiver>ConnectionDialog</receiver> <receiver>LimeReport::ConnectionDialog</receiver>
<slot>reject()</slot> <slot>reject()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">
@ -228,7 +228,7 @@
<connection> <connection>
<sender>pbCheckConnection</sender> <sender>pbCheckConnection</sender>
<signal>clicked()</signal> <signal>clicked()</signal>
<receiver>ConnectionDialog</receiver> <receiver>LimeReport::ConnectionDialog</receiver>
<slot>slotCheckConnection()</slot> <slot>slotCheckConnection()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">

View File

@ -38,10 +38,11 @@
#include "lrreportdesignwidget.h" #include "lrreportdesignwidget.h"
#include "lrsqleditdialog.h" #include "lrsqleditdialog.h"
namespace LimeReport{
namespace Ui { namespace Ui {
class DataBrowser; class DataBrowser;
} }
namespace LimeReport{
class DataBrowser : public QWidget, public IConnectionController class DataBrowser : public QWidget, public IConnectionController
{ {

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>DataBrowser</class> <class>LimeReport::DataBrowser</class>
<widget class="QWidget" name="DataBrowser"> <widget class="QWidget" name="LimeReport::DataBrowser">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>

View File

@ -31,6 +31,8 @@
#include <QDebug> #include <QDebug>
#include <QMimeData> #include <QMimeData>
namespace LimeReport {
DataBrowserTree::DataBrowserTree(QWidget *parent) : DataBrowserTree::DataBrowserTree(QWidget *parent) :
QTreeWidget(parent){} QTreeWidget(parent){}
@ -45,3 +47,5 @@ QMimeData *DataBrowserTree::mimeData(const QList<QTreeWidgetItem *> items) const
} }
return result; return result;
} }
} // namespace LimeReport

View File

@ -32,6 +32,9 @@
#include <QTreeWidget> #include <QTreeWidget>
namespace LimeReport{
class DataBrowserTree : public QTreeWidget class DataBrowserTree : public QTreeWidget
{ {
Q_OBJECT Q_OBJECT
@ -45,4 +48,6 @@ public slots:
}; };
} // namespace LimeReport
#endif // LRDATABROWSERTREE_H #endif // LRDATABROWSERTREE_H

View File

@ -35,6 +35,8 @@
#include <QSqlDatabase> #include <QSqlDatabase>
#include <QMessageBox> #include <QMessageBox>
namespace LimeReport{
SQLEditDialog::SQLEditDialog(QWidget *parent, LimeReport::DataSourceManager *dataSources, SQLDialogMode dialogMode) : SQLEditDialog::SQLEditDialog(QWidget *parent, LimeReport::DataSourceManager *dataSources, SQLDialogMode dialogMode) :
QDialog(parent), QDialog(parent),
ui(new Ui::SQLEditDialog),m_datasources(dataSources),m_dialogMode(dialogMode), m_oldDatasourceName(""), ui(new Ui::SQLEditDialog),m_datasources(dataSources),m_dialogMode(dialogMode), m_oldDatasourceName(""),
@ -341,3 +343,4 @@ void SQLEditDialog::hidePreview()
ui->pbHidePreview->setVisible(false); ui->pbHidePreview->setVisible(false);
} }
} // namespace LimeReport

View File

@ -38,6 +38,8 @@
#include "lrdatasourcemanager.h" #include "lrdatasourcemanager.h"
#include "lrdatadesignintf.h" #include "lrdatadesignintf.h"
namespace LimeReport{
namespace Ui { namespace Ui {
class SQLEditDialog; class SQLEditDialog;
} }
@ -106,4 +108,6 @@ struct SQLEditResult{
QList<LimeReport::FieldsCorrelation> fieldMap; QList<LimeReport::FieldsCorrelation> fieldMap;
}; };
} // namespace LimeReport
#endif // LRSQLEDITDIALOG_H #endif // LRSQLEDITDIALOG_H

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>SQLEditDialog</class> <class>LimeReport::SQLEditDialog</class>
<widget class="QDialog" name="SQLEditDialog"> <widget class="QDialog" name="LimeReport::SQLEditDialog">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
@ -807,7 +807,7 @@
<connection> <connection>
<sender>leDatasourceName</sender> <sender>leDatasourceName</sender>
<signal>textChanged(QString)</signal> <signal>textChanged(QString)</signal>
<receiver>SQLEditDialog</receiver> <receiver>LimeReport::SQLEditDialog</receiver>
<slot>slotDataSourceNameEditing()</slot> <slot>slotDataSourceNameEditing()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">
@ -823,7 +823,7 @@
<connection> <connection>
<sender>pushButton</sender> <sender>pushButton</sender>
<signal>clicked()</signal> <signal>clicked()</signal>
<receiver>SQLEditDialog</receiver> <receiver>LimeReport::SQLEditDialog</receiver>
<slot>accept()</slot> <slot>accept()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">
@ -839,7 +839,7 @@
<connection> <connection>
<sender>pushButton_2</sender> <sender>pushButton_2</sender>
<signal>clicked()</signal> <signal>clicked()</signal>
<receiver>SQLEditDialog</receiver> <receiver>LimeReport::SQLEditDialog</receiver>
<slot>reject()</slot> <slot>reject()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">

View File

@ -33,6 +33,7 @@
#include <QStringList> #include <QStringList>
namespace LimeReport{ namespace LimeReport{
void HtmlContext::fillTagVector(QString html) void HtmlContext::fillTagVector(QString html)
{ {
QRegExp rx("<[^<]*>"); QRegExp rx("<[^<]*>");

View File

@ -38,6 +38,8 @@
#include <QMenu> #include <QMenu>
#include <QScrollBar> #include <QScrollBar>
namespace LimeReport{
TextItemEditor::TextItemEditor(LimeReport::TextItem *item, LimeReport::PageDesignIntf *page, QSettings* settings, QWidget *parent) : TextItemEditor::TextItemEditor(LimeReport::TextItem *item, LimeReport::PageDesignIntf *page, QSettings* settings, QWidget *parent) :
QWidget(parent), QWidget(parent),
ui(new Ui::TextItemEditor), m_textItem(item), m_page(page), m_settings(settings), m_ownedSettings(false), m_isReadingSetting(false) ui(new Ui::TextItemEditor), m_textItem(item), m_page(page), m_settings(settings), m_ownedSettings(false), m_isReadingSetting(false)
@ -376,3 +378,4 @@ void TextItemEditor::slotScriptItemsSelectionChanged(const QModelIndex &to, cons
} }
} }
} // namespace LimeReport

View File

@ -37,6 +37,8 @@
#include "lrtextitem.h" #include "lrtextitem.h"
#include "lrpagedesignintf.h" #include "lrpagedesignintf.h"
namespace LimeReport{
namespace Ui { namespace Ui {
class TextItemEditor; class TextItemEditor;
} }
@ -102,4 +104,6 @@ private:
bool m_isReadingSetting; bool m_isReadingSetting;
}; };
} // namespace LimeReport
#endif // LRTEXTITEMEDITOR_H #endif // LRTEXTITEMEDITOR_H

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>TextItemEditor</class> <class>LimeReport::TextItemEditor</class>
<widget class="QWidget" name="TextItemEditor"> <widget class="QWidget" name="LimeReport::TextItemEditor">
<property name="windowModality"> <property name="windowModality">
<enum>Qt::ApplicationModal</enum> <enum>Qt::ApplicationModal</enum>
</property> </property>

View File

@ -30,6 +30,8 @@
#include "lraboutdialog.h" #include "lraboutdialog.h"
#include "ui_lraboutdialog.h" #include "ui_lraboutdialog.h"
namespace LimeReport{
AboutDialog::AboutDialog(QWidget *parent) : AboutDialog::AboutDialog(QWidget *parent) :
QDialog(parent), QDialog(parent),
ui(new Ui::AboutDialog) ui(new Ui::AboutDialog)
@ -42,3 +44,5 @@ AboutDialog::~AboutDialog()
{ {
delete ui; delete ui;
} }
} //namespace LimeReport

View File

@ -32,6 +32,8 @@
#include <QDialog> #include <QDialog>
namespace LimeReport{
namespace Ui { namespace Ui {
class AboutDialog; class AboutDialog;
} }
@ -48,4 +50,6 @@ private:
Ui::AboutDialog *ui; Ui::AboutDialog *ui;
}; };
} //namespace LimeReport
#endif // LRABOUTDIALOG_H #endif // LRABOUTDIALOG_H

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>AboutDialog</class> <class>LimeReport::AboutDialog</class>
<widget class="QDialog" name="AboutDialog"> <widget class="QDialog" name="LimeReport::AboutDialog">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
@ -243,7 +243,7 @@ p, li { white-space: pre-wrap; }
<connection> <connection>
<sender>pushButton</sender> <sender>pushButton</sender>
<signal>clicked()</signal> <signal>clicked()</signal>
<receiver>AboutDialog</receiver> <receiver>LimeReport::AboutDialog</receiver>
<slot>accept()</slot> <slot>accept()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">

View File

@ -39,6 +39,7 @@
#include "lrgroupbands.h" #include "lrgroupbands.h"
namespace LimeReport{ namespace LimeReport{
BandsManager::BandsManager(){} BandsManager::BandsManager(){}
QStringList BandsManager::bandNames() QStringList BandsManager::bandNames()

View File

@ -1993,10 +1993,9 @@ void CommandGroup::addCommand(CommandIf::Ptr command, bool execute)
if (execute){ if (execute){
if (command->doIt()) if (command->doIt())
m_commands.append(command); m_commands.append(command);
}else{ } else
m_commands.append(command); m_commands.append(command);
} }
}
PrintRange::PrintRange(QAbstractPrintDialog::PrintRange rangeType, int fromPage, int toPage) PrintRange::PrintRange(QAbstractPrintDialog::PrintRange rangeType, int fromPage, int toPage)
:m_rangeType(rangeType), m_fromPage(fromPage), m_toPage(toPage) :m_rangeType(rangeType), m_fromPage(fromPage), m_toPage(toPage)

View File

@ -39,11 +39,12 @@
#include "serializators/lrstorageintf.h" #include "serializators/lrstorageintf.h"
#include "serializators/lrxmlreader.h" #include "serializators/lrxmlreader.h"
namespace LimeReport {
namespace Ui { namespace Ui {
class PreviewReportWindow; class PreviewReportWindow;
} }
//using namespace LimeReport;
namespace LimeReport {
class PreviewReportWindow : public QMainWindow class PreviewReportWindow : public QMainWindow
{ {
Q_OBJECT Q_OBJECT

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>PreviewReportWindow</class> <class>LimeReport::PreviewReportWindow</class>
<widget class="QMainWindow" name="PreviewReportWindow"> <widget class="QMainWindow" name="LimeReport::PreviewReportWindow">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
@ -41,7 +41,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>800</width> <width>800</width>
<height>21</height> <height>20</height>
</rect> </rect>
</property> </property>
<widget class="QMenu" name="menuView"> <widget class="QMenu" name="menuView">
@ -239,7 +239,7 @@
<connection> <connection>
<sender>actionPrint</sender> <sender>actionPrint</sender>
<signal>triggered()</signal> <signal>triggered()</signal>
<receiver>PreviewReportWindow</receiver> <receiver>LimeReport::PreviewReportWindow</receiver>
<slot>slotPrint()</slot> <slot>slotPrint()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">
@ -255,7 +255,7 @@
<connection> <connection>
<sender>actionPriorPage</sender> <sender>actionPriorPage</sender>
<signal>triggered()</signal> <signal>triggered()</signal>
<receiver>PreviewReportWindow</receiver> <receiver>LimeReport::PreviewReportWindow</receiver>
<slot>slotPriorPage()</slot> <slot>slotPriorPage()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">
@ -271,7 +271,7 @@
<connection> <connection>
<sender>actionNextPage</sender> <sender>actionNextPage</sender>
<signal>triggered()</signal> <signal>triggered()</signal>
<receiver>PreviewReportWindow</receiver> <receiver>LimeReport::PreviewReportWindow</receiver>
<slot>slotNextPage()</slot> <slot>slotNextPage()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">
@ -287,7 +287,7 @@
<connection> <connection>
<sender>actionZoomIn</sender> <sender>actionZoomIn</sender>
<signal>triggered()</signal> <signal>triggered()</signal>
<receiver>PreviewReportWindow</receiver> <receiver>LimeReport::PreviewReportWindow</receiver>
<slot>slotZoomIn()</slot> <slot>slotZoomIn()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">
@ -303,7 +303,7 @@
<connection> <connection>
<sender>actionZoomOut</sender> <sender>actionZoomOut</sender>
<signal>triggered()</signal> <signal>triggered()</signal>
<receiver>PreviewReportWindow</receiver> <receiver>LimeReport::PreviewReportWindow</receiver>
<slot>slotZoomOut()</slot> <slot>slotZoomOut()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">
@ -319,7 +319,7 @@
<connection> <connection>
<sender>actionClosePreview</sender> <sender>actionClosePreview</sender>
<signal>triggered()</signal> <signal>triggered()</signal>
<receiver>PreviewReportWindow</receiver> <receiver>LimeReport::PreviewReportWindow</receiver>
<slot>close()</slot> <slot>close()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">
@ -335,7 +335,7 @@
<connection> <connection>
<sender>actionFirst_Page</sender> <sender>actionFirst_Page</sender>
<signal>triggered()</signal> <signal>triggered()</signal>
<receiver>PreviewReportWindow</receiver> <receiver>LimeReport::PreviewReportWindow</receiver>
<slot>slotFirstPage()</slot> <slot>slotFirstPage()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">
@ -351,7 +351,7 @@
<connection> <connection>
<sender>actionLast_Page</sender> <sender>actionLast_Page</sender>
<signal>triggered()</signal> <signal>triggered()</signal>
<receiver>PreviewReportWindow</receiver> <receiver>LimeReport::PreviewReportWindow</receiver>
<slot>slotLastPage()</slot> <slot>slotLastPage()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">
@ -367,7 +367,7 @@
<connection> <connection>
<sender>actionPrint_To_PDF</sender> <sender>actionPrint_To_PDF</sender>
<signal>triggered()</signal> <signal>triggered()</signal>
<receiver>PreviewReportWindow</receiver> <receiver>LimeReport::PreviewReportWindow</receiver>
<slot>slotPrintToPDF()</slot> <slot>slotPrintToPDF()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">

View File

@ -339,7 +339,6 @@ void ReportRender::renderBand(BandDesignIntf *patternBand, ReportRender::DataRen
} }
} }
} else {delete bandClone;} } else {delete bandClone;}
if (patternBand->isFooter()) if (patternBand->isFooter())
datasources()->clearGroupFunctionValues(patternBand->objectName()); datasources()->clearGroupFunctionValues(patternBand->objectName());
} }

View File

@ -3,11 +3,12 @@
#include <QDialog> #include <QDialog>
namespace LimeReport{
namespace Ui { namespace Ui {
class SettingDialog; class SettingDialog;
} }
namespace LimeReport{
class SettingDialog : public QDialog class SettingDialog : public QDialog
{ {
Q_OBJECT Q_OBJECT

View File

@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>SettingDialog</class> <class>LimeReport::SettingDialog</class>
<widget class="QDialog" name="SettingDialog"> <widget class="QDialog" name="LimeReport::SettingDialog">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>298</width> <width>351</width>
<height>184</height> <height>185</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -149,7 +149,7 @@
<connection> <connection>
<sender>bbOkCancel</sender> <sender>bbOkCancel</sender>
<signal>accepted()</signal> <signal>accepted()</signal>
<receiver>SettingDialog</receiver> <receiver>LimeReport::SettingDialog</receiver>
<slot>accept()</slot> <slot>accept()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">
@ -165,7 +165,7 @@
<connection> <connection>
<sender>bbOkCancel</sender> <sender>bbOkCancel</sender>
<signal>rejected()</signal> <signal>rejected()</signal>
<receiver>SettingDialog</receiver> <receiver>LimeReport::SettingDialog</receiver>
<slot>reject()</slot> <slot>reject()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">

View File

@ -37,6 +37,8 @@
#include <QDesktopWidget> #include <QDesktopWidget>
#include "lrtextitempropertyeditor.h" #include "lrtextitempropertyeditor.h"
namespace LimeReport{
ButtonLineEditor::ButtonLineEditor(const QString &propertyName, QWidget *parent) : ButtonLineEditor::ButtonLineEditor(const QString &propertyName, QWidget *parent) :
QWidget(parent), m_overButton(false), m_propertyName(propertyName) QWidget(parent), m_overButton(false), m_propertyName(propertyName)
{ {
@ -130,3 +132,5 @@ void ButtonLineEditor::editingByEditorFinished()
setText(qobject_cast<TextItemPropertyEditor*>(sender())->text()); setText(qobject_cast<TextItemPropertyEditor*>(sender())->text());
m_lineEdit->setFocus(); m_lineEdit->setFocus();
} }
} //namespace LimeReport

View File

@ -38,6 +38,7 @@
#include <QDebug> #include <QDebug>
#include "lrtextitempropertyeditor.h" #include "lrtextitempropertyeditor.h"
namespace LimeReport{
class ButtonLineEditor : public QWidget class ButtonLineEditor : public QWidget
{ {
@ -64,4 +65,6 @@ private:
//QHBoxLayout* m_layout; //QHBoxLayout* m_layout;
}; };
} //namespace LimeReport
#endif // LRBUTTONLINEEDIT_H #endif // LRBUTTONLINEEDIT_H

View File

@ -34,6 +34,8 @@
#include <QPaintEvent> #include <QPaintEvent>
#include <QPainter> #include <QPainter>
namespace LimeReport{
ColorEditor::ColorEditor(QWidget *parent) : ColorEditor::ColorEditor(QWidget *parent) :
QWidget(parent), m_buttonPressed(false) QWidget(parent), m_buttonPressed(false)
{ {
@ -126,3 +128,5 @@ QSize ColorIndicator::sizeHint() const
{ {
return QSize(20,20); return QSize(20,20);
} }
} // namespace LimeReport

View File

@ -34,6 +34,8 @@
#include <QPushButton> #include <QPushButton>
#include <QToolButton> #include <QToolButton>
namespace LimeReport{
class ColorIndicator : public QWidget{ class ColorIndicator : public QWidget{
Q_OBJECT Q_OBJECT
public: public:
@ -69,4 +71,6 @@ private:
bool m_buttonPressed; bool m_buttonPressed;
}; };
} // namespace LimeReport
#endif // LRCOLOREDITOR_H #endif // LRCOLOREDITOR_H

View File

@ -37,6 +37,8 @@
#include <QKeyEvent> #include <QKeyEvent>
#include "lrcomboboxeditor.h" #include "lrcomboboxeditor.h"
namespace LimeReport{
ComboBoxEditor::ComboBoxEditor(QWidget *parent, bool clearable) : ComboBoxEditor::ComboBoxEditor(QWidget *parent, bool clearable) :
QWidget(parent), QWidget(parent),
m_comboBox(new InternalComboBox(this)), m_comboBox(new InternalComboBox(this)),
@ -138,3 +140,5 @@ void ComboBoxEditor::resizeEvent(QResizeEvent *e)
if (m_buttonClear) if (m_buttonClear)
m_buttonClear->setMinimumHeight(e->size().height()-4); m_buttonClear->setMinimumHeight(e->size().height()-4);
} }
} // namespace LimeReport

View File

@ -36,6 +36,8 @@
class QToolButton; class QToolButton;
namespace LimeReport{
class InternalComboBox :public QComboBox{ class InternalComboBox :public QComboBox{
Q_OBJECT Q_OBJECT
public: public:
@ -73,4 +75,6 @@ private:
bool m_settingValues; bool m_settingValues;
}; };
} // namespace LimeReport
#endif // LRCOMBOBOXEDITOR_H #endif // LRCOMBOBOXEDITOR_H

View File

@ -32,6 +32,8 @@
#include <QFontDialog> #include <QFontDialog>
#include <QDebug> #include <QDebug>
namespace LimeReport{
FontEditor::FontEditor(QWidget *parent) : FontEditor::FontEditor(QWidget *parent) :
QWidget(parent) QWidget(parent)
{ {
@ -79,3 +81,5 @@ QString FontEditor::toString(const QFont &value) const
attribs+="]"; attribs+="]";
return value.family()+" "+QString::number(value.pointSize())+" "+attribs; return value.family()+" "+QString::number(value.pointSize())+" "+attribs;
} }
} // namespace LimeReport

View File

@ -34,6 +34,8 @@
#include <QPushButton> #include <QPushButton>
#include <QToolButton> #include <QToolButton>
namespace LimeReport{
class FontEditor : public QWidget class FontEditor : public QWidget
{ {
Q_OBJECT Q_OBJECT
@ -54,4 +56,6 @@ private:
QFont m_font; QFont m_font;
}; };
} // namespace LimeReport
#endif // LRFONTEDITOR_H #endif // LRFONTEDITOR_H

View File

@ -31,6 +31,8 @@
#include <QFileDialog> #include <QFileDialog>
#include "lrimageeditor.h" #include "lrimageeditor.h"
namespace LimeReport{
ImageEditor::ImageEditor(QWidget* parent) ImageEditor::ImageEditor(QWidget* parent)
:QWidget(parent) :QWidget(parent)
{ {
@ -54,3 +56,5 @@ void ImageEditor::slotButtonClicked()
m_image.load(QFileDialog::getOpenFileName(this)); m_image.load(QFileDialog::getOpenFileName(this));
emit editingFinished(); emit editingFinished();
} }
} // namespace LimeReport

View File

@ -32,6 +32,8 @@
#include <QWidget> #include <QWidget>
#include <QPushButton> #include <QPushButton>
namespace LimeReport{
class ImageEditor : public QWidget class ImageEditor : public QWidget
{ {
Q_OBJECT Q_OBJECT
@ -49,4 +51,5 @@ private:
QImage m_image; QImage m_image;
}; };
} // namespace LimeReport
#endif // LRIMAGEEDITOR_H #endif // LRIMAGEEDITOR_H

View File

@ -31,6 +31,8 @@
#include "ui_ltextitempropertyeditor.h" #include "ui_ltextitempropertyeditor.h"
#include <QCompleter> #include <QCompleter>
namespace LimeReport{
TextItemPropertyEditor::TextItemPropertyEditor(QWidget *parent) : TextItemPropertyEditor::TextItemPropertyEditor(QWidget *parent) :
QDialog(parent), QDialog(parent),
ui(new Ui::TextItemPropertyEditor) ui(new Ui::TextItemPropertyEditor)
@ -53,3 +55,5 @@ QString TextItemPropertyEditor::text()
{ {
return ui->textEdit->toPlainText(); return ui->textEdit->toPlainText();
} }
} //namespace LimeReport

View File

@ -33,6 +33,8 @@
#include <QDialog> #include <QDialog>
#include <QWidget> #include <QWidget>
namespace LimeReport{
namespace Ui { namespace Ui {
class TextItemPropertyEditor; class TextItemPropertyEditor;
} }
@ -53,4 +55,6 @@ private:
Ui::TextItemPropertyEditor *ui; Ui::TextItemPropertyEditor *ui;
}; };
} //namespace LimeReport
#endif // ATEXTITEMPROPERTYEDITOR_H #endif // ATEXTITEMPROPERTYEDITOR_H

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>TextItemPropertyEditor</class> <class>LimeReport::TextItemPropertyEditor</class>
<widget class="QDialog" name="TextItemPropertyEditor"> <widget class="QDialog" name="LimeReport::TextItemPropertyEditor">
<property name="windowModality"> <property name="windowModality">
<enum>Qt::WindowModal</enum> <enum>Qt::WindowModal</enum>
</property> </property>
@ -43,7 +43,7 @@
<connection> <connection>
<sender>buttonBox</sender> <sender>buttonBox</sender>
<signal>accepted()</signal> <signal>accepted()</signal>
<receiver>TextItemPropertyEditor</receiver> <receiver>LimeReport::TextItemPropertyEditor</receiver>
<slot>accept()</slot> <slot>accept()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">
@ -59,7 +59,7 @@
<connection> <connection>
<sender>buttonBox</sender> <sender>buttonBox</sender>
<signal>rejected()</signal> <signal>rejected()</signal>
<receiver>TextItemPropertyEditor</receiver> <receiver>LimeReport::TextItemPropertyEditor</receiver>
<slot>reject()</slot> <slot>reject()</slot>
<hints> <hints>
<hint type="sourcelabel"> <hint type="sourcelabel">

View File

@ -34,7 +34,6 @@
namespace LimeReport{ namespace LimeReport{
ObjectBrowser::ObjectBrowser(QWidget *parent) ObjectBrowser::ObjectBrowser(QWidget *parent)
:QWidget(parent), m_changingItemSelection(false) :QWidget(parent), m_changingItemSelection(false)
{ {