source: src-qt4/pc-softwaremanager/mainUI.h @ c71b68c

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since c71b68c was c71b68c, checked in by Ken Moore <ken@…>, 16 months ago

Add a bunch of error loggin to the backend processes, and also add a new dialog for displaying these error logs. Also fix the detection of an update failure.

  • Property mode set to 100644
File size: 3.1 KB
Line 
1#ifndef _APPCAFE_MAINUI_H
2#define _APPCAFE_MAINUI_H
3
4
5#ifndef PREFIX
6#define PREFIX QString("/usr/local")
7#endif
8
9/* QT4 */
10#include <QDebug>
11#include <QDialog>
12#include <QMenu>
13#include <QMainWindow>
14#include <QMessageBox>
15#include <QTimer>
16#include <QHBoxLayout>
17#include <QVBoxLayout>
18#include <QTreeWidgetItem>
19#include <QScrollArea>
20#include <QScrollBar>
21#include <QFileDialog>
22#include <QCloseEvent>
23
24/* Local Includes */
25#include "pbiBackend.h"
26#include "extras.h"
27#include "largeItemWidget.h"
28#include "smallItemWidget.h"
29#include "ErrorDialog.h"
30
31namespace Ui {
32    class MainUI;
33}
34
35class MainUI : public QMainWindow
36{
37        Q_OBJECT
38
39public:
40   explicit MainUI(QWidget* parent = 0);
41   void ProgramInit();
42   void setWardenMode(QString dir,QString ip); //call before ProgramInit
43
44public slots:
45    void slotSingleInstance();
46   
47protected:
48    void closeEvent(QCloseEvent *event);
49
50private slots:
51  //MENU OPTIONS
52  void on_actionImport_PBI_List_triggered();
53  void on_actionExport_PBI_List_triggered();
54  void on_actionQuit_triggered();
55  void on_actionAppCafe_Settings_triggered();
56  //INSTALLED TAB
57  void slotRefreshInstallTab();
58  void slotPBIStatusUpdate(QString);
59  void on_group_install_showinfo_toggled(bool);
60  void on_tool_install_gotobrowserpage_clicked();
61  void on_tool_install_toggleall_clicked();
62  void on_tree_install_apps_itemSelectionChanged();
63  void on_check_install_autoupdate_clicked();
64  void on_tool_install_update_clicked();
65  void on_tool_install_remove_clicked();
66  void on_tool_install_cancel_clicked();
67  void slotActionAddDesktop();
68  void slotActionRemoveDesktop();
69  void slotActionAddPath();
70  void slotActionRemovePath();
71  void slotActionAddPathAll();
72  void slotActionAddMenu();
73  void slotActionRemoveMenu();
74  void slotActionAddMenuAll();
75  void slotActionAddMime();
76  void slotActionRemoveMime();
77  void slotActionAddMimeAll();
78  void slotActionUpdate();
79  void slotActionRemove();
80  void slotActionCancel();
81 
82  //BROWSER TAB
83  void slotDisableBrowser(bool shownotification = TRUE);
84  void slotEnableBrowser();
85  void slotUpdateBrowserHome();
86  void slotGoToHome();
87  void slotGoToCategory(QString);
88  void slotGoToApp(QString);
89  void slotGoToSearch();
90  void slotShowSimilarApps(QStringList);
91  void slotShowSearchResults(QStringList, QStringList);
92  void on_tabWidget_currentChanged();
93  void on_tool_browse_home_clicked();
94  void on_tool_browse_cat_clicked();
95  void on_tool_browse_app_clicked();
96  void on_line_browse_searchbar_textChanged();
97  void on_tool_bapp_download_clicked();
98  void on_group_br_home_newapps_toggled(bool);
99  void on_group_bapp_similar_toggled(bool);
100  //OTHER
101  void slotDisplayError(QString,QString,QStringList);
102
103private:
104  Ui::MainUI *ui;
105  QString wardenDir, wardenIP, defaultIcon;
106  PBIBackend *PBI;
107  //INSTALLED TAB
108  QMenu *actionMenu;
109  void initializeInstalledTab();
110  void formatInstalledItemDisplay(QTreeWidgetItem *item);
111  QStringList getCheckedItems();
112  //BROWSER TAB
113  QTimer *searchTimer;
114  QString cCat;
115  void initializeBrowserTab();
116  //OTHER
117  QLabel *statusLabel;
118  void clearScrollArea(QScrollArea*);
119  void slotDisplayStats();
120   
121   
122signals:
123   
124} ;
125
126#endif
127
Note: See TracBrowser for help on using the repository browser.