Huggle  build:^490^dce1e5c
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
hugglequeue.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 HUGGLEQUEUE_H
12 #define HUGGLEQUEUE_H
13 
14 #include <QDockWidget>
15 #include <QList>
16 #include <QFrame>
17 #include <QWidget>
18 #include <QVBoxLayout>
19 #include "hugglequeuefilter.hpp"
20 #include "exception.hpp"
21 #include "hugglequeueitemlabel.hpp"
22 #include "wikiedit.hpp"
23 #include "configuration.hpp"
24 
25 namespace Ui
26 {
27  class HuggleQueue;
28 }
29 
30 namespace Huggle
31 {
32  class HuggleQueueFilter;
33  class HuggleQueueItemLabel;
34 
35  //! Queue of edits
36  class HuggleQueue : public QDockWidget
37  {
38  Q_OBJECT
39 
40  public:
41  HuggleQueueFilter *CurrentFilter;
42  QList<HuggleQueueItemLabel*> Items;
43  explicit HuggleQueue(QWidget *parent = 0);
44  ~HuggleQueue();
45  void AddItem(WikiEdit *page);
46  void Next();
47  void DeleteByRevID(int RevID);
48  void Delete(HuggleQueueItemLabel *item, QLayoutItem *qi = NULL);
49  void Trim(int i);
50  //! Remove 1 item
51  void Trim();
52 
53  private:
54  long GetScore(int id);
55  Ui::HuggleQueue *ui;
56  QVBoxLayout *layout;
57  QWidget *xx;
58  QFrame *frame;
59  };
60 }
61 
62 #endif // HUGGLEQUEUE_H
Filter that can be applied to edit queue.
Queue of edits.
Definition: hugglequeue.hpp:36
void Trim()
Remove 1 item.
This is item of queue, it is derived from qt object.
Wiki edit.
Definition: wikiedit.hpp:67