Changeset View
Changeset View
Standalone View
Standalone View
src/dolphinmainwindow.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | class DolphinViewContainer; | 42 | class DolphinViewContainer; | ||
43 | class DolphinRemoteEncoding; | 43 | class DolphinRemoteEncoding; | ||
44 | class DolphinTabWidget; | 44 | class DolphinTabWidget; | ||
45 | class KFileItem; | 45 | class KFileItem; | ||
46 | class KFileItemList; | 46 | class KFileItemList; | ||
47 | class KJob; | 47 | class KJob; | ||
48 | class KNewFileMenu; | 48 | class KNewFileMenu; | ||
49 | class KHelpMenu; | 49 | class KHelpMenu; | ||
50 | class KToolBarPopupAction; | ||||
50 | class QToolButton; | 51 | class QToolButton; | ||
51 | class QIcon; | 52 | class QIcon; | ||
52 | class PlacesPanel; | 53 | class PlacesPanel; | ||
53 | class TerminalPanel; | 54 | class TerminalPanel; | ||
54 | 55 | | |||
55 | /** | 56 | /** | ||
56 | * @short Main window for Dolphin. | 57 | * @short Main window for Dolphin. | ||
57 | * | 58 | * | ||
▲ Show 20 Lines • Show All 446 Lines • ▼ Show 20 Line(s) | 215 | private slots: | |||
504 | /** | 505 | /** | ||
505 | * Is called when the user middle clicks a toolbar button. | 506 | * Is called when the user middle clicks a toolbar button. | ||
506 | * | 507 | * | ||
507 | * Here middle clicking Back/Forward/Up/Home will open the resulting | 508 | * Here middle clicking Back/Forward/Up/Home will open the resulting | ||
508 | * folder in a new tab. | 509 | * folder in a new tab. | ||
509 | */ | 510 | */ | ||
510 | void slotToolBarActionMiddleClicked(QAction *action); | 511 | void slotToolBarActionMiddleClicked(QAction *action); | ||
511 | 512 | | |||
513 | /** | ||||
514 | * Is called before the Back popup menu is shown. This slot will populate | ||||
515 | * the menu with history data | ||||
516 | */ | ||||
517 | void slotAboutToShowBackPopupMenu(); | ||||
518 | | ||||
519 | /** | ||||
520 | * This slot is used by the Back Popup Menu to go back to a specific | ||||
521 | * history index. The QAction::data will carry an int with the index | ||||
522 | * to go to. | ||||
523 | */ | ||||
524 | void slotGoBack(QAction* action); | ||||
525 | | ||||
526 | /** | ||||
527 | * Middle clicking Back/Forward will open the resulting folder in a new tab. | ||||
528 | */ | ||||
529 | void slotBackForwardActionMiddleClicked(QAction *action); | ||||
530 | | ||||
531 | /** | ||||
532 | * Is called before the Forward popup menu is shown. This slot will populate | ||||
533 | * the menu with history data | ||||
534 | */ | ||||
535 | void slotAboutToShowForwardPopupMenu(); | ||||
536 | | ||||
537 | /** | ||||
538 | * This slot is used by the Forward Popup Menu to go forward to a specific | ||||
539 | * history index. The QAction::data will carry an int with the index | ||||
540 | * to go to. | ||||
541 | */ | ||||
542 | void slotGoForward(QAction* action); | ||||
512 | private: | 543 | private: | ||
513 | /** | 544 | /** | ||
514 | * Sets up the various menus and actions and connects them. | 545 | * Sets up the various menus and actions and connects them. | ||
515 | */ | 546 | */ | ||
516 | void setupActions(); | 547 | void setupActions(); | ||
517 | 548 | | |||
518 | /** | 549 | /** | ||
519 | * Sets up the dock widgets and their panels. | 550 | * Sets up the dock widgets and their panels. | ||
▲ Show 20 Lines • Show All 74 Lines • ▼ Show 20 Line(s) | 600 | private: | |||
594 | QToolButton* m_controlButton; | 625 | QToolButton* m_controlButton; | ||
595 | QTimer* m_updateToolBarTimer; | 626 | QTimer* m_updateToolBarTimer; | ||
596 | 627 | | |||
597 | KIO::Job* m_lastHandleUrlStatJob; | 628 | KIO::Job* m_lastHandleUrlStatJob; | ||
598 | 629 | | |||
599 | TerminalPanel* m_terminalPanel; | 630 | TerminalPanel* m_terminalPanel; | ||
600 | PlacesPanel* m_placesPanel; | 631 | PlacesPanel* m_placesPanel; | ||
601 | bool m_tearDownFromPlacesRequested; | 632 | bool m_tearDownFromPlacesRequested; | ||
633 | | ||||
634 | KToolBarPopupAction* m_backAction; | ||||
635 | KToolBarPopupAction* m_forwardAction; | ||||
602 | }; | 636 | }; | ||
603 | 637 | | |||
604 | inline DolphinViewContainer* DolphinMainWindow::activeViewContainer() const | 638 | inline DolphinViewContainer* DolphinMainWindow::activeViewContainer() const | ||
605 | { | 639 | { | ||
606 | return m_activeViewContainer; | 640 | return m_activeViewContainer; | ||
607 | } | 641 | } | ||
608 | 642 | | |||
609 | inline KNewFileMenu* DolphinMainWindow::newFileMenu() const | 643 | inline KNewFileMenu* DolphinMainWindow::newFileMenu() const | ||
610 | { | 644 | { | ||
611 | return m_newFileMenu; | 645 | return m_newFileMenu; | ||
612 | } | 646 | } | ||
613 | 647 | | |||
614 | #endif // DOLPHIN_MAINWINDOW_H | 648 | #endif // DOLPHIN_MAINWINDOW_H | ||
615 | 649 | |