Dialog Class Reference

#include <dialog.h>

Collaboration diagram for Dialog:

Collaboration graph
[legend]
List of all members.

Detailed Description

Author:
Mateusz Loskot

Definition at line 24 of file dialog.h.

Public Member Functions

 Dialog (QWidget *parent=0, Qt::WFlags fl=0)
 ~Dialog ()

Private Slots

void on_buttonBox_accepted ()
void on_buttonBox_rejected ()
void on_buttonBox_helpRequested ()
void on_radioSrcFile_toggled (bool checked)
void on_radioSrcDirectory_toggled (bool checked)
void on_radioSrcProtocol_toggled (bool checked)
void on_buttonSelectSrc_clicked ()
void on_buttonSelectDst_clicked ()
void on_comboSrcFormats_currentIndexChanged (int index)
void on_comboDstFormats_currentIndexChanged (int index)

Private Member Functions

void resetSrcUi ()
void resetDstUi ()
void setButtonState (QPushButton *btn, bool isProtocol)
void populateFormats ()
void populateLayers (QString const &url)
bool testConnection (QString const &url)
QString openFile ()
QString openDirectory ()

Private Attributes

FormatsRegistry mFrmts
Format mSrcFormat
Format mDstFormat

Static Private Attributes

static const int context_id = 0


Constructor & Destructor Documentation

Dialog::Dialog ( QWidget *  parent = 0,
Qt::WFlags  fl = 0 
)

Definition at line 35 of file dialog.cpp.

References populateFormats(), resetDstUi(), and resetSrcUi().

Dialog::~Dialog (  ) 

Definition at line 44 of file dialog.cpp.


Member Function Documentation

void Dialog::resetSrcUi (  )  [private]

Definition at line 48 of file dialog.cpp.

References Format::eDirectory, Format::eFile, Format::eProtocol, isFormatType(), mSrcFormat, Format::protocol(), setButtonState(), Format::type(), and type().

Referenced by Dialog(), and on_comboSrcFormats_currentIndexChanged().

void Dialog::resetDstUi (  )  [private]

Definition at line 92 of file dialog.cpp.

References Format::eProtocol, isFormatType(), mDstFormat, Format::protocol(), setButtonState(), Format::type(), and type().

Referenced by Dialog(), and on_comboDstFormats_currentIndexChanged().

void Dialog::setButtonState ( QPushButton *  btn,
bool  isProtocol 
) [private]

Definition at line 109 of file dialog.cpp.

Referenced by on_radioSrcDirectory_toggled(), on_radioSrcFile_toggled(), on_radioSrcProtocol_toggled(), resetDstUi(), and resetSrcUi().

void Dialog::populateFormats (  )  [private]

Definition at line 123 of file dialog.cpp.

References QgsApplication::registerOgrDrivers().

Referenced by Dialog().

void Dialog::populateLayers ( QString const &  url  )  [private]

Definition at line 157 of file dialog.cpp.

Referenced by on_buttonSelectSrc_clicked().

bool Dialog::testConnection ( QString const &  url  )  [private]

Definition at line 198 of file dialog.cpp.

Referenced by on_buttonSelectDst_clicked().

QString Dialog::openFile (  )  [private]

Definition at line 212 of file dialog.cpp.

Referenced by on_buttonSelectSrc_clicked().

QString Dialog::openDirectory (  )  [private]

Definition at line 223 of file dialog.cpp.

Referenced by on_buttonSelectDst_clicked(), and on_buttonSelectSrc_clicked().

void Dialog::on_buttonBox_accepted (  )  [private, slot]

Definition at line 232 of file dialog.cpp.

References Translator::setSourceLayer(), Translator::setTargetLayer(), and Translator::translate().

void Dialog::on_buttonBox_rejected (  )  [private, slot]

Definition at line 310 of file dialog.cpp.

void Dialog::on_buttonBox_helpRequested (  )  [private, slot]

Definition at line 315 of file dialog.cpp.

References context_id, and QgsContextHelp::run().

void Dialog::on_radioSrcFile_toggled ( bool  checked  )  [private, slot]

Definition at line 320 of file dialog.cpp.

References Format::eFile, Format::eProtocol, isFormatType(), mSrcFormat, setButtonState(), Format::type(), and type().

void Dialog::on_radioSrcDirectory_toggled ( bool  checked  )  [private, slot]

Definition at line 332 of file dialog.cpp.

References Format::eDirectory, Format::eProtocol, isFormatType(), mSrcFormat, setButtonState(), Format::type(), and type().

void Dialog::on_radioSrcProtocol_toggled ( bool  checked  )  [private, slot]

Definition at line 344 of file dialog.cpp.

References Format::eProtocol, isFormatType(), mSrcFormat, Format::protocol(), setButtonState(), Format::type(), and type().

void Dialog::on_buttonSelectSrc_clicked (  )  [private, slot]

Definition at line 374 of file dialog.cpp.

References openDirectory(), openFile(), and populateLayers().

void Dialog::on_buttonSelectDst_clicked (  )  [private, slot]

Definition at line 404 of file dialog.cpp.

References Format::eDirectory, Format::eFile, Format::eProtocol, isFormatType(), mDstFormat, openDirectory(), testConnection(), Format::type(), and type().

void Dialog::on_comboSrcFormats_currentIndexChanged ( int  index  )  [private, slot]

Definition at line 356 of file dialog.cpp.

References FormatsRegistry::find(), mFrmts, mSrcFormat, and resetSrcUi().

void Dialog::on_comboDstFormats_currentIndexChanged ( int  index  )  [private, slot]

Definition at line 365 of file dialog.cpp.

References FormatsRegistry::find(), mDstFormat, mFrmts, and resetDstUi().


Member Data Documentation

const int Dialog::context_id = 0 [static, private]

Definition at line 35 of file dialog.h.

Referenced by on_buttonBox_helpRequested().

FormatsRegistry Dialog::mFrmts [private]

Definition at line 37 of file dialog.h.

Referenced by on_comboDstFormats_currentIndexChanged(), and on_comboSrcFormats_currentIndexChanged().

Format Dialog::mSrcFormat [private]

Definition at line 38 of file dialog.h.

Referenced by on_comboSrcFormats_currentIndexChanged(), on_radioSrcDirectory_toggled(), on_radioSrcFile_toggled(), on_radioSrcProtocol_toggled(), and resetSrcUi().

Format Dialog::mDstFormat [private]

Definition at line 39 of file dialog.h.

Referenced by on_buttonSelectDst_clicked(), on_comboDstFormats_currentIndexChanged(), and resetDstUi().


The documentation for this class was generated from the following files:
Generated on Tue Oct 28 16:51:52 2008 for Quantum GIS API Documentation by  doxygen 1.5.1