• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

parley

  • sources
  • kde-4.14
  • kdeedu
  • parley
  • src
  • editor
vocabularycolumnsdialog.h
Go to the documentation of this file.
1 /***************************************************************************
2 
3  options to enable/disable columns for the languages
4 
5  -----------------------------------------------------------------------
6  copyright :(C) 2008 Javier goday <jgoday@gmail.com>
7  -----------------------------------------------------------------------
8 
9  ***************************************************************************/
10 
11 /***************************************************************************
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * *
18  ***************************************************************************/
19 
20 #ifndef VOCABULARYCOLUMNSDIALOG_H
21 #define VOCABULARYCOLUMNSDIALOG_H
22 
23 #include <QMap>
24 
25 #include <KDialog>
26 
27 class DocumentSettings;
28 class QGridLayout;
29 class QStandardItem;
30 class QStandardItemModel;
31 class QVBoxLayout;
32 class KEduVocDocument;
33 
34 namespace Editor
35 {
36 
40 class VocabularyColumnsDialog : public KDialog
41 {
42  Q_OBJECT
43 public:
44  enum Roles {
45  ColumnRole = 0x12,
46  LanguageRole = 0x18
47  };
48 
49  VocabularyColumnsDialog(KEduVocDocument *doc, QWidget *parent);
50  ~VocabularyColumnsDialog();
51 
52  void accept();
53 
54 private:
59  void createLanguagesLayout();
60 
64  void addLanguage(int language, QVBoxLayout *parent);
65 
69  void saveVisibleColumns();
70 
71  DocumentSettings *m_settings;
72  QGridLayout *m_box;
73  KEduVocDocument *m_doc;
74  QMap <int, QStandardItemModel *> m_models;
75 };
76 }
77 
78 #endif
Editor::VocabularyColumnsDialog
Show options to enable/disable the columns for each language of the current document.
Definition: vocabularycolumnsdialog.h:40
Editor::VocabularyColumnsDialog::Roles
Roles
Definition: vocabularycolumnsdialog.h:44
QStandardItemModel
QWidget
QMap< int, QStandardItemModel * >
DocumentSettings
Definition: documentsettings.h:9
QGridLayout
KDialog
Editor::VocabularyColumnsDialog::LanguageRole
Definition: vocabularycolumnsdialog.h:46
QVBoxLayout
Editor::VocabularyColumnsDialog::ColumnRole
Definition: vocabularycolumnsdialog.h:45
Editor::VocabularyColumnsDialog::~VocabularyColumnsDialog
~VocabularyColumnsDialog()
Definition: vocabularycolumnsdialog.cpp:69
Editor::VocabularyColumnsDialog::VocabularyColumnsDialog
VocabularyColumnsDialog(KEduVocDocument *doc, QWidget *parent)
Definition: vocabularycolumnsdialog.cpp:45
QStandardItem
Editor::VocabularyColumnsDialog::accept
void accept()
Definition: vocabularycolumnsdialog.cpp:74
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

parley

Skip menu "parley"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal