rusificationwidget.h 833 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef RUSIFICATIONWIDGET_H
  2. #define RUSIFICATIONWIDGET_H
  3. #include <QWidget>
  4. #include <QTimer>
  5. #include <QTreeWidgetItem>
  6. namespace Ui {
  7. class RusificationWidget;
  8. }
  9. class LegacyApp;
  10. class RusificationWidget : public QWidget
  11. {
  12. Q_OBJECT
  13. public:
  14. explicit RusificationWidget(LegacyApp *_app, QWidget *parent = 0);
  15. ~RusificationWidget();
  16. private:
  17. void setupTreeWidget();
  18. void hideAllImportWidgets();
  19. private slots:
  20. void onHoveredTreeItemChanged(QTreeWidgetItem *item, int column);
  21. void on_database_import_radiobutton_common_clicked();
  22. void on_file_import_radiobutton_common_clicked();
  23. void on_textfragment_import_radiobutton_common_clicked();
  24. void updateUI();
  25. private:
  26. Ui::RusificationWidget *ui;
  27. LegacyApp *app;
  28. QTimer ui_update_timer;
  29. };
  30. #endif // RUSIFICATIONWIDGET_H