TranslationSelectionDialog.h

Go to the documentation of this file.
00001 #ifndef TRANSLATION_SELECTION_DIALOG_H
00002 #define TRANSLATION_SELECTION_DIALOG_H 
00003 
00004 #include <qdialog.h>
00005 #include <qfont.h>
00006 #include <qhbox.h>
00007 #include <qlabel.h>
00008 #include <qlayout.h>
00009 #include <qlistview.h>
00010 #include <qpushbutton.h>
00011 #include <qstringlist.h>
00012 #include <qvbox.h>
00013 #include "Controller.h"
00014 #include "SmartListView.h"
00015 
00016 class TranslationSelectionDialog : public QDialog {
00017 
00018     Q_OBJECT
00019     
00020 public:
00021 
00022     // Should be an enumeration?
00023     static const int selectionModeTargetLanguage    = 0;
00024     static const int selectionModeStudyLanguages    = 1;
00025     static const int selectionModeAllLanguages      = 2;
00026 
00027     TranslationSelectionDialog( const QString& caption, const QString& message, const QStringList& languages, int selectionMode, Controller* controller, QWidget* parent );
00028     ~TranslationSelectionDialog(); 
00029 
00030     QStringList getSelectedLanguages();
00031 
00032 private slots:
00033 
00034     void checkAllLanguages() const;
00035 
00036 private:
00037 
00038     void init( const QString& caption, const QString& message, const QStringList& languages, int selectionMode );
00039 
00040     QLabel*         messageLabel;
00041     SmartListView*  languageList;
00042     QPushButton*    checkAllLanguagesButton;
00043 
00044     QVBoxLayout*    mainLayout;
00045     Controller*     controller;
00046 
00047 };
00048 
00049 #endif

Generated on Sun Mar 1 17:30:47 2009 for toMOTko by  doxygen 1.5.6