2012-05-15 14:34:23 -05:00
|
|
|
/*
|
|
|
|
* Copyright 2012, Dario Casalinuovo. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Dario Casalinuovo, dario.casalinuovo@gmail.com
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "CayaConstants.h"
|
|
|
|
#include "SearchBarTextControl.h"
|
|
|
|
|
|
|
|
#include <Font.h>
|
|
|
|
#include <String.h>
|
|
|
|
#include <Window.h>
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
|
|
|
SearchBarTextControl::SearchBarTextControl(BMessage* message)
|
|
|
|
:
|
|
|
|
BTextControl("searchBox", NULL, NULL, message)
|
|
|
|
{
|
|
|
|
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
2012-09-25 16:45:29 -05:00
|
|
|
rgb_color color = tint_color(ViewColor(), B_DARKEN_3_TINT);
|
2012-05-15 14:34:23 -05:00
|
|
|
TextView()->SetFontAndColor(NULL, B_FONT_ALL, &color);
|
|
|
|
TextView()->MakeSelectable(false);
|
2012-09-28 15:55:40 -05:00
|
|
|
SetModificationMessage(new BMessage(*message));
|
2012-05-15 14:34:23 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
SearchBarTextControl::KeyDown(const char* bytes, int32 numBytes)
|
|
|
|
{
|
|
|
|
}
|