| 1 |
#pragma once |
| 2 |
|
| 3 |
#include <string> |
| 4 |
|
| 5 |
class wxWindow; |
| 6 |
|
| 7 |
namespace ui |
| 8 |
{ |
| 9 |
|
| 10 |
/** |
| 11 |
* Interface of a declaration preview widget. |
| 12 |
* When attached to a DeclarationSelector, it receives word |
| 13 |
* about selection changes to update its previews. |
| 14 |
*/ |
| 15 |
class IDeclarationPreview |
| 16 |
{ |
| 17 |
public: |
| 18 |
virtual ~IDeclarationPreview() {} |
| 19 |
|
| 20 |
// Returns the widget that can be packed into the selector container |
| 21 |
virtual wxWindow* GetPreviewWidget() = 0; |
| 22 |
|
| 23 |
// Clear the preview |
| 24 |
virtual void ClearPreview() = 0; |
| 25 |
|
| 26 |
// Sets the name of the decl that should appear in the preview |
| 27 |
virtual void SetPreviewDeclName(const std::string& declName) = 0; |
| 28 |
}; |
| 29 |
|
| 30 |
} |