MagicSmoke  $VERSION$
pricecatdlg.h
Go to the documentation of this file.
1 //
2 // C++ Interface: pricecatdlg
3 //
4 // Description:
5 //
6 //
7 // Author: Konrad Rosenbaum <konrad@silmor.de>, (C) 2010-2011
8 //
9 // Copyright: See README/COPYING.GPL files that come with this distribution
10 //
11 //
12 
13 #ifndef MAGICSMOKE_PRICECATDLG_H
14 #define MAGICSMOKE_PRICECATDLG_H
15 
16 #include <QDialog>
17 
18 #include "MOPriceCategory"
19 
20 class QListWidget;
21 
23 class MPriceCategoryDialog:public QDialog
24 {
25  Q_OBJECT
26  public:
27  MPriceCategoryDialog(QWidget*p=0,bool showselect=true);
28 
31  private:
32  QListWidget*m_list;
33  QList<MOPriceCategory>m_cat;
34  private slots:
36  void newCat();
38  void editCat();
39 };
40 
41 class QLineEdit;
42 class QLabel;
43 
45 class MPCDEdit:public QDialog
46 {
47  Q_OBJECT
48  public:
49  MPCDEdit(QWidget*,const MOPriceCategory&);
50  MOPriceCategory result()const;
51  private slots:
52  void editFlags();
53  private:
54  MOPriceCategory cat;
55  QLineEdit*name,*abbr,*form;
56  QLabel*flags;
57 };
58 
59 #endif
MPriceCategoryDialog(QWidget *p=0, bool showselect=true)
Definition: pricecatdlg.cpp:29
MOPriceCategory result() const
Definition: pricecatdlg.cpp:152
MOPriceCategory selection() const
returns the current selection
Definition: pricecatdlg.cpp:64
MPCDEdit(QWidget *, const MOPriceCategory &)
Definition: pricecatdlg.cpp:117
Definition: srcMOPriceCategory.h:14
shows a list of price categories, allows to edit them, returns the one selected
Definition: pricecatdlg.h:23
helper class: edit a price category
Definition: pricecatdlg.h:45