#include <EnrichmentDialog.h>
EnrichmentDialog::EnrichmentDialog | ( | WidgetType | wt, | |
Graph * | g, | |||
QWidget * | parent = 0 | |||
) |
EnrichmentDialog::~EnrichmentDialog | ( | ) |
References d_plot, d_widget, TexWidget::formula(), TexWidget::pixmap(), Graph::remove(), and Graph::setActiveTool().
void EnrichmentDialog::adjustHeight | ( | double | width | ) | [private, slot] |
References aspect_ratio, heightBox, keepAspectBox, DoubleSpinBox::setValue(), and DoubleSpinBox::value().
Referenced by initGeometryPage().
void EnrichmentDialog::adjustWidth | ( | double | height | ) | [private, slot] |
References aspect_ratio, keepAspectBox, DoubleSpinBox::setValue(), DoubleSpinBox::value(), and widthBox.
Referenced by initGeometryPage().
void EnrichmentDialog::apply | ( | ) | [private, slot] |
References chooseImageFile(), d_plot, d_widget, editPage, fetchImage(), framePage, geometryPage, imagePage, imagePathBox, Graph::multiLayer(), MdiSubWindow::notifyChanges(), patternPage, setCoordinates(), setFrameTo(), setPatternTo(), LegendWidget::setText(), setTextFormatTo(), tabWidget, textEditBox, textPage, and unitBox.
Referenced by EnrichmentDialog().
void EnrichmentDialog::chooseImageFile | ( | const QString & | fn = QString::null |
) | [private, slot] |
References d_widget, imagePathBox, ApplicationWindow::imagesDirPath, ImageWidget::load(), and ApplicationWindow::modifiedProject().
Referenced by apply(), initImagePage(), and saveImagesInternally().
void EnrichmentDialog::clearForm | ( | ) | [private, slot] |
void EnrichmentDialog::customButtons | ( | QWidget * | w | ) | [private, slot] |
References clearButton, d_widget_type, editPage, framePage, Tex, and updateButton.
Referenced by EnrichmentDialog().
void EnrichmentDialog::customFont | ( | ) | [private, slot] |
void EnrichmentDialog::displayCoordinates | ( | int | unit | ) | [private, slot] |
References aspect_ratio, d_widget, heightBox, FrameWidget::heightIn(), FrameWidget::Pixel, FrameWidget::Point, DoubleSpinBox::setFormat(), DoubleSpinBox::setSingleStep(), DoubleSpinBox::setValue(), DoubleSpinBox::value(), widthBox, FrameWidget::widthIn(), xBox, FrameWidget::xIn(), yBox, and FrameWidget::yIn().
Referenced by initGeometryPage(), setBestSize(), and setWidget().
void EnrichmentDialog::fetchImage | ( | ) | [private, slot] |
References clearButton, d_widget, equationEditor, TexWidget::formula(), http, TexWidget::pixmap(), and updateButton.
Referenced by apply().
void EnrichmentDialog::frameApplyTo | ( | ) | [private, slot] |
References d_plot, d_widget, Graph::enrichmentsList(), frameApplyToBox, MultiLayer::layersList(), ApplicationWindow::modifiedProject(), Graph::multiLayer(), setFrameTo(), and ApplicationWindow::windowsList().
Referenced by initFramePage().
void EnrichmentDialog::initEditorPage | ( | ) | [private] |
References editPage, equationEditor, http, outputLabel, tabWidget, and updateForm().
Referenced by EnrichmentDialog().
void EnrichmentDialog::initFramePage | ( | ) | [private] |
References boxFrameLineStyle, boxFrameWidth, frameApplyTo(), frameApplyToBox, frameBox, frameColorBtn, frameDefaultBtn, framePage, setFrameDefaultValues(), and tabWidget.
Referenced by EnrichmentDialog().
void EnrichmentDialog::initGeometryPage | ( | ) | [private] |
References adjustHeight(), adjustWidth(), bestSizeButton, d_widget_type, displayCoordinates(), geometryPage, heightBox, keepAspectBox, MDIWindow, setBestSize(), DoubleSpinBox::setDecimals(), tabWidget, Text, unitBox, widthBox, xBox, and yBox.
Referenced by EnrichmentDialog().
void EnrichmentDialog::initImagePage | ( | ) | [private] |
References boxSaveImagesInternally, choose_folder_xpm, chooseImageFile(), imagePage, imagePathBox, saveImagesInternally(), and tabWidget.
Referenced by EnrichmentDialog().
void EnrichmentDialog::initPatternPage | ( | ) | [private] |
References backgroundColorBtn, boxTransparency, patternApplyTo(), patternApplyToBox, patternBox, patternColorBtn, patternPage, rectangleDefaultBtn, setRectangleDefaultValues(), tabWidget, and useFrameColorBox.
Referenced by EnrichmentDialog().
void EnrichmentDialog::initTextPage | ( | ) | [private] |
References autoUpdateTextBox, boxBackgroundTransparency, boxTextAngle, customFont(), formatButtons, setTextDefaultValues(), tabWidget, textApplyToBox, textApplyToBtn, textBackgroundBtn, textColorBtn, textDefaultBtn, textEditBox, textFontBtn, textFormatApplyTo(), textPage, TextFormatButtons::toggleCurveButton(), and updateTransparency().
Referenced by EnrichmentDialog().
void EnrichmentDialog::patternApplyTo | ( | ) | [private, slot] |
void EnrichmentDialog::saveImagesInternally | ( | bool | save | ) | [private, slot] |
References boxSaveImagesInternally, chooseImageFile(), d_plot, d_widget, imagePathBox, Graph::multiLayer(), MdiSubWindow::notifyChanges(), and ImageWidget::setSaveInternally().
Referenced by initImagePage().
void EnrichmentDialog::setBestSize | ( | ) | [private, slot] |
References d_plot, d_widget, displayCoordinates(), Graph::multiLayer(), MdiSubWindow::notifyChanges(), TexWidget::setBestSize(), and unitBox.
Referenced by initGeometryPage().
void EnrichmentDialog::setCoordinates | ( | int | unit | ) | [private] |
References d_plot, d_widget, heightBox, Graph::multiLayer(), MdiSubWindow::notifyChanges(), FrameWidget::Scale, FrameWidget::setCoordinates(), FrameWidget::setRect(), DoubleSpinBox::value(), widthBox, xBox, and yBox.
Referenced by apply().
void EnrichmentDialog::setFrameDefaultValues | ( | ) | [private, slot] |
void EnrichmentDialog::setFrameTo | ( | FrameWidget * | fw | ) | [private] |
References boxFrameLineStyle, boxFrameWidth, ColorButton::color(), frameBox, frameColorBtn, FrameWidget::setFramePen(), FrameWidget::setFrameStyle(), and PenStyleBox::style().
Referenced by apply(), and frameApplyTo().
void EnrichmentDialog::setPatternTo | ( | RectangleWidget * | r | ) | [private] |
References backgroundColorBtn, boxTransparency, ColorButton::color(), frameColorBtn, PatternBox::getSelectedPattern(), patternBox, patternColorBtn, FrameWidget::setBackgroundColor(), FrameWidget::setBrush(), and useFrameColorBox.
Referenced by apply(), and patternApplyTo().
void EnrichmentDialog::setRectangleDefaultValues | ( | ) | [private, slot] |
References backgroundColorBtn, boxTransparency, ColorButton::color(), ApplicationWindow::d_rect_default_background, ApplicationWindow::d_rect_default_brush, frameColorBtn, PatternBox::getSelectedPattern(), patternBox, patternColorBtn, ApplicationWindow::saveSettings(), and useFrameColorBox.
Referenced by initPatternPage().
void EnrichmentDialog::setText | ( | const QString & | t | ) | [private] |
void EnrichmentDialog::setTextDefaultValues | ( | ) | [private, slot] |
References boxBackgroundTransparency, boxTextAngle, ColorButton::color(), ApplicationWindow::d_legend_default_angle, ApplicationWindow::legendBackground, ApplicationWindow::legendTextColor, ApplicationWindow::plotLegendFont, ApplicationWindow::saveSettings(), textBackgroundBtn, textColorBtn, and textFont.
Referenced by initTextPage().
void EnrichmentDialog::setTextFormatTo | ( | LegendWidget * | l | ) | [private] |
References autoUpdateTextBox, boxBackgroundTransparency, boxTextAngle, ColorButton::color(), LegendWidget::setAngle(), LegendWidget::setAutoUpdate(), FrameWidget::setBackgroundColor(), LegendWidget::setFont(), LegendWidget::setTextColor(), textBackgroundBtn, textColorBtn, and textFont.
Referenced by apply(), and textFormatApplyTo().
void EnrichmentDialog::setWidget | ( | QWidget * | w | ) |
References LegendWidget::angle(), autoUpdateTextBox, FrameWidget::backgroundColor(), backgroundColorBtn, bestSizeButton, boxBackgroundTransparency, boxFrameLineStyle, boxFrameWidth, boxSaveImagesInternally, boxTextAngle, boxTransparency, FrameWidget::brush(), d_widget, d_widget_type, displayCoordinates(), equationEditor, ImageWidget::fileName(), LegendWidget::font(), TexWidget::formula(), Frame, frameBox, FrameWidget::frameColor(), frameColorBtn, FrameWidget::framePen(), FrameWidget::frameStyle(), Image, imagePathBox, LegendWidget::isAutoUpdateEnabled(), outputLabel, patternBox, patternColorBtn, FrameWidget::Pixel, TexWidget::pixmap(), ImageWidget::saveInternally(), ColorButton::setColor(), PatternBox::setPattern(), PenStyleBox::setStyle(), setText(), Tex, LegendWidget::text(), Text, textBackgroundBtn, LegendWidget::textColor(), textColorBtn, textFont, and unitBox.
Referenced by ApplicationWindow::resizeActiveWindow(), ApplicationWindow::resizeWindow(), and ApplicationWindow::showEnrichementDialog().
void EnrichmentDialog::textFormatApplyTo | ( | ) | [private, slot] |
References d_plot, d_widget, Graph::enrichmentsList(), MultiLayer::layersList(), ApplicationWindow::modifiedProject(), Graph::multiLayer(), setTextFormatTo(), textApplyToBox, and ApplicationWindow::windowsList().
Referenced by initTextPage(), and updateTransparency().
void EnrichmentDialog::updateForm | ( | bool | error | ) | [private, slot] |
References clearButton, d_plot, d_widget, equationEditor, http, Graph::multiLayer(), MdiSubWindow::notifyChanges(), outputLabel, TexWidget::setFormula(), TexWidget::setPixmap(), and updateButton.
Referenced by initEditorPage().
void EnrichmentDialog::updateTransparency | ( | int | alpha | ) | [private, slot] |
double EnrichmentDialog::aspect_ratio [private] |
Referenced by adjustHeight(), adjustWidth(), and displayCoordinates().
QCheckBox* EnrichmentDialog::autoUpdateTextBox [private] |
Referenced by initTextPage(), setTextFormatTo(), and setWidget().
ColorButton * EnrichmentDialog::backgroundColorBtn [private] |
Referenced by initPatternPage(), setPatternTo(), setRectangleDefaultValues(), and setWidget().
QPushButton* EnrichmentDialog::bestSizeButton [private] |
Referenced by initGeometryPage(), and setWidget().
QSpinBox* EnrichmentDialog::boxBackgroundTransparency [private] |
Referenced by initTextPage(), setTextDefaultValues(), setTextFormatTo(), and setWidget().
PenStyleBox* EnrichmentDialog::boxFrameLineStyle [private] |
Referenced by initFramePage(), setFrameDefaultValues(), setFrameTo(), and setWidget().
QSpinBox * EnrichmentDialog::boxFrameWidth [private] |
Referenced by initFramePage(), setFrameDefaultValues(), setFrameTo(), and setWidget().
QCheckBox* EnrichmentDialog::boxSaveImagesInternally [private] |
Referenced by initImagePage(), saveImagesInternally(), and setWidget().
QSpinBox * EnrichmentDialog::boxTextAngle [private] |
Referenced by initTextPage(), setTextDefaultValues(), setTextFormatTo(), and setWidget().
QSpinBox* EnrichmentDialog::boxTransparency [private] |
Referenced by initPatternPage(), setPatternTo(), setRectangleDefaultValues(), and setWidget().
QPushButton* EnrichmentDialog::cancelButton [private] |
Referenced by EnrichmentDialog().
QPushButton* EnrichmentDialog::clearButton [private] |
Referenced by customButtons(), EnrichmentDialog(), fetchImage(), and updateForm().
Graph* EnrichmentDialog::d_plot [private] |
Referenced by apply(), frameApplyTo(), patternApplyTo(), saveImagesInternally(), setBestSize(), setCoordinates(), textFormatApplyTo(), updateForm(), and ~EnrichmentDialog().
QWidget* EnrichmentDialog::d_widget [private] |
WidgetType EnrichmentDialog::d_widget_type [private] |
Referenced by customButtons(), initGeometryPage(), and setWidget().
QWidget* EnrichmentDialog::editPage [private] |
Referenced by apply(), customButtons(), EnrichmentDialog(), and initEditorPage().
QTextEdit* EnrichmentDialog::equationEditor [private] |
Referenced by clearForm(), fetchImage(), initEditorPage(), setWidget(), and updateForm().
TextFormatButtons* EnrichmentDialog::formatButtons [private] |
Referenced by initTextPage().
QComboBox* EnrichmentDialog::frameApplyToBox [private] |
Referenced by frameApplyTo(), and initFramePage().
QComboBox* EnrichmentDialog::frameBox [private] |
Referenced by initFramePage(), setFrameDefaultValues(), setFrameTo(), and setWidget().
ColorButton* EnrichmentDialog::frameColorBtn [private] |
Referenced by initFramePage(), setFrameDefaultValues(), setFrameTo(), setPatternTo(), setRectangleDefaultValues(), and setWidget().
QPushButton * EnrichmentDialog::frameDefaultBtn [private] |
Referenced by initFramePage().
QWidget * EnrichmentDialog::framePage [private] |
Referenced by apply(), customButtons(), and initFramePage().
QWidget * EnrichmentDialog::geometryPage [private] |
Referenced by apply(), and initGeometryPage().
DoubleSpinBox * EnrichmentDialog::heightBox [private] |
Referenced by adjustHeight(), displayCoordinates(), initGeometryPage(), and setCoordinates().
QHttp* EnrichmentDialog::http [private] |
Referenced by fetchImage(), initEditorPage(), and updateForm().
QWidget * EnrichmentDialog::imagePage [private] |
Referenced by apply(), EnrichmentDialog(), and initImagePage().
QLineEdit* EnrichmentDialog::imagePathBox [private] |
Referenced by apply(), chooseImageFile(), initImagePage(), saveImagesInternally(), and setWidget().
QCheckBox* EnrichmentDialog::keepAspectBox [private] |
Referenced by adjustHeight(), adjustWidth(), and initGeometryPage().
QLabel* EnrichmentDialog::outputLabel [private] |
Referenced by clearForm(), initEditorPage(), setWidget(), and updateForm().
QComboBox * EnrichmentDialog::patternApplyToBox [private] |
Referenced by initPatternPage(), and patternApplyTo().
PatternBox* EnrichmentDialog::patternBox [private] |
Referenced by initPatternPage(), setPatternTo(), setRectangleDefaultValues(), and setWidget().
ColorButton * EnrichmentDialog::patternColorBtn [private] |
Referenced by initPatternPage(), setPatternTo(), setRectangleDefaultValues(), and setWidget().
QWidget * EnrichmentDialog::patternPage [private] |
Referenced by apply(), EnrichmentDialog(), and initPatternPage().
QPushButton * EnrichmentDialog::rectangleDefaultBtn [private] |
Referenced by initPatternPage().
QTabWidget* EnrichmentDialog::tabWidget [private] |
Referenced by apply(), EnrichmentDialog(), initEditorPage(), initFramePage(), initGeometryPage(), initImagePage(), initPatternPage(), and initTextPage().
QComboBox * EnrichmentDialog::textApplyToBox [private] |
Referenced by initTextPage(), and textFormatApplyTo().
QPushButton* EnrichmentDialog::textApplyToBtn [private] |
Referenced by initTextPage().
ColorButton * EnrichmentDialog::textBackgroundBtn [private] |
Referenced by initTextPage(), setTextDefaultValues(), setTextFormatTo(), setWidget(), and updateTransparency().
ColorButton* EnrichmentDialog::textColorBtn [private] |
Referenced by initTextPage(), setTextDefaultValues(), setTextFormatTo(), and setWidget().
QPushButton* EnrichmentDialog::textDefaultBtn [private] |
Referenced by initTextPage().
QTextEdit * EnrichmentDialog::textEditBox [private] |
Referenced by apply(), initTextPage(), and setText().
QFont EnrichmentDialog::textFont [private] |
Referenced by customFont(), setTextDefaultValues(), setTextFormatTo(), and setWidget().
QPushButton* EnrichmentDialog::textFontBtn [private] |
Referenced by initTextPage().
QWidget * EnrichmentDialog::textPage [private] |
Referenced by apply(), EnrichmentDialog(), and initTextPage().
QComboBox* EnrichmentDialog::unitBox [private] |
Referenced by apply(), initGeometryPage(), setBestSize(), and setWidget().
QPushButton* EnrichmentDialog::updateButton [private] |
Referenced by customButtons(), EnrichmentDialog(), fetchImage(), and updateForm().
QCheckBox * EnrichmentDialog::useFrameColorBox [private] |
Referenced by initPatternPage(), setPatternTo(), and setRectangleDefaultValues().
DoubleSpinBox * EnrichmentDialog::widthBox [private] |
Referenced by adjustWidth(), displayCoordinates(), initGeometryPage(), and setCoordinates().
DoubleSpinBox* EnrichmentDialog::xBox [private] |
Referenced by displayCoordinates(), initGeometryPage(), and setCoordinates().
DoubleSpinBox * EnrichmentDialog::yBox [private] |
Referenced by displayCoordinates(), initGeometryPage(), and setCoordinates().