2 * Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
5 #ifndef TITLE_PLACEHOLDER_MAPPER_H
6 #define TITLE_PLACEHOLDER_MAPPER_H
9 #include "ActiveProcessInfo.h"
10 #include "PatternEvaluator.h"
11 #include "ShellInfo.h"
14 /*! Class mapping the placeholders common for window and tab titles.
16 class TitlePlaceholderMapper
: public PatternEvaluator::PlaceholderMapper
{
18 TitlePlaceholderMapper(
19 const ShellInfo
& shellInfo
,
20 const ActiveProcessInfo
& processInfo
);
22 virtual bool MapPlaceholder(char placeholder
,
23 int64 number
, bool numberGiven
,
28 ActiveProcessInfo fProcessInfo
;
32 class WindowTitlePlaceholderMapper
: public TitlePlaceholderMapper
{
34 WindowTitlePlaceholderMapper(
35 const ShellInfo
& shellInfo
,
36 const ActiveProcessInfo
& processInfo
,
37 int32 windowIndex
, const BString
& tabTitle
);
39 virtual bool MapPlaceholder(char placeholder
,
40 int64 number
, bool numberGiven
,
49 class TabTitlePlaceholderMapper
: public TitlePlaceholderMapper
{
51 TabTitlePlaceholderMapper(
52 const ShellInfo
& shellInfo
,
53 const ActiveProcessInfo
& processInfo
,
56 virtual bool MapPlaceholder(char placeholder
,
57 int64 number
, bool numberGiven
,
65 #endif // TITLE_PLACEHOLDER_MAPPER_H