Changeset View
Changeset View
Standalone View
Standalone View
src/Session.h
Show First 20 Lines • Show All 374 Lines • ▼ Show 20 Line(s) | 70 | public: | |||
---|---|---|---|---|---|
375 | void reportBackgroundColor(const QColor &c); | 375 | void reportBackgroundColor(const QColor &c); | ||
376 | 376 | | |||
377 | bool isReadOnly() const; | 377 | bool isReadOnly() const; | ||
378 | void setReadOnly(bool readOnly); | 378 | void setReadOnly(bool readOnly); | ||
379 | 379 | | |||
380 | // Returns true if the current screen is the secondary/alternate one | 380 | // Returns true if the current screen is the secondary/alternate one | ||
381 | // or false if it's the primary/normal buffer | 381 | // or false if it's the primary/normal buffer | ||
382 | bool isPrimaryScreen(); | 382 | bool isPrimaryScreen(); | ||
383 | void tabTitleSetByUser(bool set); | ||||
383 | 384 | | |||
384 | public Q_SLOTS: | 385 | public Q_SLOTS: | ||
385 | 386 | | |||
386 | /** | 387 | /** | ||
387 | * Starts the terminal session. | 388 | * Starts the terminal session. | ||
388 | * | 389 | * | ||
389 | * This creates the terminal process and connects the teletype to it. | 390 | * This creates the terminal process and connects the teletype to it. | ||
390 | */ | 391 | */ | ||
▲ Show 20 Lines • Show All 311 Lines • ▼ Show 20 Line(s) | 596 | Q_SIGNALS: | |||
702 | * Emitted when background request ("\033]11;?\a") terminal code received. | 703 | * Emitted when background request ("\033]11;?\a") terminal code received. | ||
703 | * Terminal is expected send "\033]11;rgb:RRRR/GGGG/BBBB\a" response. | 704 | * Terminal is expected send "\033]11;rgb:RRRR/GGGG/BBBB\a" response. | ||
704 | * | 705 | * | ||
705 | * Originally implemented to support vim's background detection feature | 706 | * Originally implemented to support vim's background detection feature | ||
706 | * (without explictly setting 'bg=dark' within local/remote vimrc) | 707 | * (without explictly setting 'bg=dark' within local/remote vimrc) | ||
707 | */ | 708 | */ | ||
708 | void getBackgroundColor(); | 709 | void getBackgroundColor(); | ||
709 | 710 | | |||
710 | /** | | |||
711 | * Relays the tabRenamedByUser signal from SessionController | | |||
712 | */ | | |||
713 | void tabRenamedByUser(bool renamed) const; | | |||
714 | | ||||
715 | private Q_SLOTS: | 711 | private Q_SLOTS: | ||
716 | void done(int, QProcess::ExitStatus); | 712 | void done(int, QProcess::ExitStatus); | ||
717 | 713 | | |||
718 | void fireZModemDownloadDetected(); | 714 | void fireZModemDownloadDetected(); | ||
719 | void fireZModemUploadDetected(); | 715 | void fireZModemUploadDetected(); | ||
720 | 716 | | |||
721 | void onReceiveBlock(const char *buf, int len); | 717 | void onReceiveBlock(const char *buf, int len); | ||
722 | void silenceTimerDone(); | 718 | void silenceTimerDone(); | ||
Show All 14 Lines | |||||
737 | void updateFlowControlState(bool suspended); | 733 | void updateFlowControlState(bool suspended); | ||
738 | void updateWindowSize(int lines, int columns); | 734 | void updateWindowSize(int lines, int columns); | ||
739 | 735 | | |||
740 | // Relays the signal from Emulation and sets _isPrimaryScreen | 736 | // Relays the signal from Emulation and sets _isPrimaryScreen | ||
741 | void onPrimaryScreenInUse(bool use); | 737 | void onPrimaryScreenInUse(bool use); | ||
742 | 738 | | |||
743 | void sessionAttributeRequest(int id); | 739 | void sessionAttributeRequest(int id); | ||
744 | 740 | | |||
745 | void tabTitleSetByUser(bool set); | | |||
746 | | ||||
747 | private: | 741 | private: | ||
748 | Q_DISABLE_COPY(Session) | 742 | Q_DISABLE_COPY(Session) | ||
749 | 743 | | |||
750 | // checks that the binary 'program' is available and can be executed | 744 | // checks that the binary 'program' is available and can be executed | ||
751 | // returns the binary name if available or an empty string otherwise | 745 | // returns the binary name if available or an empty string otherwise | ||
752 | static QString checkProgram(const QString &program); | 746 | static QString checkProgram(const QString &program); | ||
753 | 747 | | |||
754 | void updateTerminalSize(); | 748 | void updateTerminalSize(); | ||
▲ Show 20 Lines • Show All 150 Lines • Show Last 20 Lines |