vmainwindow.h 861 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef VMAINWINDOW_H
  2. #define VMAINWINDOW_H
  3. #include <QMainWindow>
  4. class QLabel;
  5. class QComboBox;
  6. class VDirectoryTree;
  7. class QSplitter;
  8. class QListWidget;
  9. class QTabWidget;
  10. class VNote;
  11. class VFileList;
  12. class VMainWindow : public QMainWindow
  13. {
  14. Q_OBJECT
  15. public:
  16. VMainWindow(QWidget *parent = 0);
  17. ~VMainWindow();
  18. private slots:
  19. // Change current notebook index and update the directory tree
  20. void setCurNotebookIndex(int index);
  21. signals:
  22. void curNotebookIndexChanged(const QString &path);
  23. private:
  24. void setupUI();
  25. // Update notebookComboBox according to vnote
  26. void updateNotebookComboBox();
  27. QLabel *notebookLabel;
  28. QComboBox *notebookComboBox;
  29. VDirectoryTree *directoryTree;
  30. VFileList *fileList;
  31. QTabWidget *editorTabWidget;
  32. QSplitter *mainSplitter;
  33. VNote *vnote;
  34. };
  35. #endif // VMAINWINDOW_H