Changeset View
Changeset View
Standalone View
Standalone View
app/session.h
Context not available. | |||||
28 | 28 | | |||
---|---|---|---|---|---|
29 | #include <QMap> | 29 | #include <QMap> | ||
30 | #include <QObject> | 30 | #include <QObject> | ||
31 | 31 | #include <QDir> | |||
32 | 32 | | |||
33 | class Terminal; | 33 | class Terminal; | ||
34 | 34 | | |||
Context not available. | |||||
41 | enum SessionType { Single, TwoHorizontal, TwoVertical, Quad }; | 41 | enum SessionType { Single, TwoHorizontal, TwoVertical, Quad }; | ||
42 | enum GrowthDirection { Up, Right, Down, Left }; | 42 | enum GrowthDirection { Up, Right, Down, Left }; | ||
43 | 43 | | |||
44 | explicit Session(SessionType type = Single, QWidget* parent = 0); | 44 | explicit Session(SessionType type = Single, QString dir = QDir::homePath(), QWidget* parent = 0); | ||
45 | ~Session(); | 45 | ~Session(); | ||
46 | 46 | | |||
47 | int id() { return m_sessionId; } | 47 | int id() { return m_sessionId; } | ||
Context not available. | |||||
118 | 118 | | |||
119 | 119 | | |||
120 | private: | 120 | private: | ||
121 | void setupSession(SessionType type); | 121 | void setupSession(SessionType type, QString dir); | ||
122 | 122 | | |||
123 | Terminal* addTerminal(QWidget* parent); | 123 | Terminal* addTerminal(QWidget* parent, QString dir); | ||
124 | int split(Terminal* terminal, Qt::Orientation orientation); | 124 | int split(Terminal* terminal, Qt::Orientation orientation); | ||
125 | 125 | | |||
126 | static int m_availableSessionId; | 126 | static int m_availableSessionId; | ||
Context not available. |