ZIMA CAD Parts
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
servertabwidget.h
Go to the documentation of this file.
1 #ifndef SERVERTABWIDGET_H
2 #define SERVERTABWIDGET_H
3 
4 #include <QWidget>
5 
6 #include "serversmodel.h"
7 
8 class FileModel;
9 class FileFilterModel;
10 class ProductView;
11 
12 
13 namespace Ui {
14 class ServerTabWidget;
15 }
16 
17 
23 class ServerTabWidget : public QWidget
24 {
25  Q_OBJECT
26 
27 public:
28  explicit ServerTabWidget(ServersModel *serversModel, QWidget *parent = 0);
30 
31 public slots:
32  void settingsChanged();
33  void setPartsIndex(const QModelIndex &index);
34  void techSpecsIndexOverwrite(Item *item);
35 
36 signals:
37  void changeSettings();
38 
39 protected:
40  void changeEvent(QEvent *event);
41 
42 private:
43 
44  enum Tabs {
45  TECH_SPECS,
46  PARTS,
47  DOWNLOADS,
48  TABS_COUNT
49  };
50 
51  Ui::ServerTabWidget *ui;
52 
53  FileModel *m_fileModel;
54  FileFilterModel *m_proxyFileModel;
55  ServersModel *m_serversModel;
56  ProductView *m_productView;
57 
58  Item *lastPartsIndexItem;
59  QUrl lastPartsIndex;
60  QDateTime lastPartsIndexModTime;
61 
62  void viewHidePartsIndex(Item *item);
63 
64 private slots:
65  void techSpecUrlLineEdit_returnPressed();
66  void techSpecGoButton_clicked();
67  void techSpecPinButton_clicked();
68  void partsIndexUrlLineEdit_returnPressed();
69  void partsIndexGoButton_clicked();
70  void partsIndexPinButton_clicked();
71 
72  void fileModel_requestColumnResize();
73  void techSpec_urlChanged(const QUrl &url);
74  void partsWebView_urlChanged(const QUrl &url);
75 
76  void previewInProductView(const QModelIndex &index);
77  void partsTreeView_doubleClicked(const QModelIndex &index);
78 
79  void filesDeleted();
80  void downloadButton();
81  void updateClicked();
82  void deleteSelectedParts();
83  void partsIndexLoaded(const QModelIndex &index);
84 
85  void toggleDownload();
86  void resumeDownload();
87  void stopDownload();
88  void adjustThumbColumnWidth(int width);
89  void loadTechSpec(const QUrl &url);
90  void partsIndexOverwrite(Item *item);
91 
92  void setFiltersDialog();
93 };
94 
95 #endif // SERVERTABWIDGET_H
void setPartsIndex(const QModelIndex &index)
Definition: servertabwidget.cpp:278
Definition: filemodel.h:30
The user interface for Product Views.
Definition: productview.h:44
Definition: item.h:130
void changeSettings()
void techSpecsIndexOverwrite(Item *item)
Definition: servertabwidget.cpp:187
void settingsChanged()
Definition: servertabwidget.cpp:140
The tab widget displaying &quot;Parts&quot; tabs.
Definition: servertabwidget.h:23
void changeEvent(QEvent *event)
Definition: servertabwidget.cpp:127
Definition: filefiltermodel.h:6
ServerTabWidget(ServersModel *serversModel, QWidget *parent=0)
Definition: servertabwidget.cpp:18
Definition: serversmodel.h:36
~ServerTabWidget()
Definition: servertabwidget.cpp:122