Huggle  build:^490^dce1e5c
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
hugglequeueitemlabel.hpp
1 //This program is free software: you can redistribute it and/or modify
2 //it under the terms of the GNU General Public License as published by
3 //the Free Software Foundation, either version 3 of the License, or
4 //(at your option) any later version.
5 
6 //This program is distributed in the hope that it will be useful,
7 //but WITHOUT ANY WARRANTY; without even the implied warranty of
8 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 //GNU General Public License for more details.
10 
11 #ifndef HUGGLEQUEUEITEMLABEL_H
12 #define HUGGLEQUEUEITEMLABEL_H
13 
14 #include <QMouseEvent>
15 #include <QFrame>
16 #include "core.hpp"
17 #include "exception.hpp"
18 
19 namespace Ui
20 {
21  class HuggleQueueItemLabel;
22 }
23 
24 namespace Huggle
25 {
26  class WikiEdit;
27  class HuggleQueue;
28 
29  //! This is item of queue, it is derived from qt object
30  class HuggleQueueItemLabel : public QFrame
31  {
32  Q_OBJECT
33 
34  public:
35  explicit HuggleQueueItemLabel(QWidget *parent = 0);
37  HuggleQueue *ParentQueue;
38  void SetName(QString name);
39  QString GetName();
40  void Process(QLayoutItem *qi = NULL);
41  WikiEdit *page;
42  static int Count;
43  void Remove();
44 
45  protected:
46  void mousePressEvent(QMouseEvent *event);
47 
48  private:
49  Ui::HuggleQueueItemLabel *ui;
50  };
51 }
52 
53 #endif // HUGGLEQUEUEITEMLABEL_H
Queue of edits.
Definition: hugglequeue.hpp:36
This is item of queue, it is derived from qt object.
Wiki edit.
Definition: wikiedit.hpp:67