14 #include <QMainWindow>
17 #include <QDesktopServices>
21 #include <QDockWidget>
22 #include "configuration.hpp"
24 #include "aboutform.hpp"
25 #include "preferences.hpp"
26 #include "hugglelog.hpp"
27 #include "hugglequeue.hpp"
28 #include "huggletool.hpp"
29 #include "huggleweb.hpp"
30 #include "wikipage.hpp"
31 #include "editquery.hpp"
32 #include "processlist.hpp"
33 #include "wikiuser.hpp"
34 #include "ignorelist.hpp"
35 #include "speedyform.hpp"
36 #include "exception.hpp"
38 #include "history.hpp"
39 #include "blockuser.hpp"
40 #include "hugglefeedproviderwiki.hpp"
41 #include "hugglefeedproviderirc.hpp"
42 #include "userinfoform.hpp"
43 #include "vandalnw.hpp"
44 #include "revertquery.hpp"
45 #include "collectable.hpp"
47 #include "reportuser.hpp"
48 #include "waitingform.hpp"
49 #include "wlquery.hpp"
50 #include "sessionform.h"
51 #include "historyform.hpp"
52 #include "scorewordsdbform.hpp"
53 #include "deleteform.hpp"
54 #include "protectpage.hpp"
55 #include "uaareport.hpp"
90 class ScoreWordsDbForm;
164 #if !PRODUCTION_BUILD
181 QString GetSummaryKey(QString item);
182 QString GetSummaryText(QString text);
194 void SuspiciousEdit();
198 void on_actionExit_triggered();
199 void on_actionPreferences_triggered();
200 void on_actionContents_triggered();
201 void on_actionAbout_triggered();
202 void on_MainWindow_destroyed();
205 void on_actionNext_triggered();
206 void on_actionNext_2_triggered();
207 void on_actionWarn_triggered();
208 void on_actionRevert_currently_displayed_edit_triggered();
209 void on_actionWarn_the_user_triggered();
210 void on_actionRevert_currently_displayed_edit_and_warn_the_user_triggered();
211 void on_actionRevert_and_warn_triggered();
212 void on_actionRevert_triggered();
213 void on_actionShow_ignore_list_of_current_wiki_triggered();
214 void on_actionForward_triggered();
215 void on_actionBack_triggered();
217 void CustomRevertWarn();
219 void on_actionWelcome_user_triggered();
220 void on_actionOpen_in_a_browser_triggered();
221 void on_actionIncrease_badness_score_by_20_triggered();
222 void on_actionDecrease_badness_score_by_20_triggered();
223 void on_actionGood_edit_triggered();
224 void on_actionTalk_page_triggered();
225 void on_actionFlag_as_a_good_edit_triggered();
226 void on_actionDisplay_this_page_in_browser_triggered();
227 void on_actionEdit_page_in_browser_triggered();
228 void on_actionDisplay_history_in_browser_triggered();
229 void on_actionStop_feed_triggered();
230 void on_actionRemove_old_edits_triggered();
232 void on_actionList_all_QGC_items_triggered();
233 void on_actionRevert_currently_displayed_edit_warn_user_and_stay_on_page_triggered();
234 void on_actionRevert_currently_displayed_edit_and_stay_on_page_triggered();
235 void on_actionWelcome_user_2_triggered();
238 void on_actionWarning_1_triggered();
239 void on_actionWarning_2_triggered();
240 void on_actionWarning_3_triggered();
241 void on_actionWarning_4_triggered();
242 void on_actionEdit_user_talk_triggered();
243 void on_actionReconnect_IRC_triggered();
244 void on_actionRequest_speedy_deletion_triggered();
247 void on_actionIRC_triggered();
250 void on_actionShow_talk_triggered();
252 void on_actionFlag_as_suspicious_edit_triggered();
253 void on_actionDisconnect_triggered();
255 void on_actionShow_list_of_score_words_triggered();
256 void on_actionRevert_AGF_triggered();
257 void on_actionDisplay_a_session_data_triggered();
272 void DisplayWelcomeMessage();
278 void closeEvent(QCloseEvent *event);
281 #endif // MAINWINDOW_H
Huggle is updating a config of user.
void on_actionProtect_triggered()
bool BrowserPageIsEditable()
Returns true if current page can be edited.
QMenu * RevertSummaries
Revert menu.
bool Warn(QString WarningType, RevertQuery *dependency)
History * _History
Pointer to history.
void on_actionReport_user_2_triggered()
QMenu * WarnMenu
Warning menu.
void on_actionDelete_triggered()
List of processes in a main window.
QList< WikiEdit * > PendingEdits
List of edits that are being saved.
void on_actionReport_user_triggered()
HuggleWeb * Browser
Pointer to browser.
QList< WikiEdit * > Historical
List of all edits that are kept in history, so that we can track them and delete them.
EditQuery * eq
Pointer to query that is used to store user config on exit of huggle.
void on_actionWiki_triggered()
BlockUser * fBlockForm
Pointer to a form to block user.
This form can be used to block users from editing, which requires the block permission.
Preferences * preferencesForm
Pointer to options.
RevertQuery * Revert(QString summary="", bool nd=false, bool next=true)
VandalNw * VandalDock
Pointer to vandal network.
void ProcessEdit(WikiEdit *e, bool IgnoreHistory=false)
Recreate interface, should be called everytime you do anything with main form.
QLabel * Status
Status bar.
The RevertQuery class can be used to rollback any edit.
This window contains all the messages that are stored in ring log.
AboutForm * aboutForm
Pointer to about dialog (see aboutform.h)
History of actions done by user.
Huggle is downloading a whitelist in order to update it.
Huggle is updating the whitelist.
WLQuery * wq
This query is used to refresh white list.
void on_actionBlock_user_triggered()
void on_actionReport_username_triggered()
ShutdownOp
The ShutdownOp enum contains a various parts of shutdown so that we can keep the track of what is goi...
Huggle is not shutting down.
QStringList UnwrittenLogs
HuggleQueue * Queue1
Pointer to queue.
ProcessList * Queries
Pointer to processes.
IgnoreList * Ignore
Pointer to ignore list (see ignorelist.h)
UAAReport * fUaaReportForm
Pointer to UAA dialog.
ShutdownOp Shutdown
If system is shutting down this is displaying which part of shutdown is currently being executed...
HuggleLog * SystemLog
Pointer to syslog.
The ProtectPage class display a window where user can protect a page given they have the permissions ...
QMutex lUnwrittenLogs
Mutex we lock unwritten logs with so that only 1 thread can write to it.
Modifications of mediawiki pages can be done using this query.
void on_actionEdit_info_triggered()
WikiEdit * CurrentEdit
Pointer to current edit, if it's NULL there is no edit being displayed.
A window that contains ignore list.
QMenu * RevertWarn
Pointer to menu of revert warn button.
void ForceWarn(int level)
Send a template to user no matter if they can be messaged or not.
MainWindow(QWidget *parent=0)
HuggleTool * tb
Pointer to toolbar.
DeleteForm * fDeleteForm
Pointer to a form to delete a page.
void Welcome()
Welcome user.
void RequestPD()
Request a page deletion csd or afd and so on.
Form to report users to UAA.
void on_actionClear_talk_page_of_user_triggered()
bool CheckEditableBrowserPage()
CheckEditableBrowserPage will check if current page is editable and if it's not it display a message ...
It can be used to retrieve a history of currently displayed page.
ProtectPage * fProtectForm
Pointer to a form to protect a page.