StyledEdit/DiskUsage/DriveSetup post-hrev46520 fixes
* StyledEdit - make Find/Replace windows non zoomable, select the search string view on showing the window for repetitional search; * Devices - fix plain property list background - to standard one and restore read-only state of this pane; * DriveSetup - remove radio-mode of drive list context popup menu; * DiskUsage - SetLowColor to parent background to avoid small text rendering issue. Many thanks to Sergei Reznikov for testing and pointing issues out.
This commit is contained in:
@@ -45,6 +45,9 @@ PropertyListPlain::AddAttributes(const Attributes& attributes)
|
|||||||
BTextView* view = new BTextView(BRect(0, 0, 1000, 1000),
|
BTextView* view = new BTextView(BRect(0, 0, 1000, 1000),
|
||||||
"", BRect(5, 5, 995, 995), B_FOLLOW_ALL_SIDES);
|
"", BRect(5, 5, 995, 995), B_FOLLOW_ALL_SIDES);
|
||||||
|
|
||||||
|
view->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
||||||
|
view->MakeEditable(false);
|
||||||
|
|
||||||
for (unsigned int i = 0; i < attributes.size(); i++) {
|
for (unsigned int i = 0; i < attributes.size(); i++) {
|
||||||
BString attributeLine;
|
BString attributeLine;
|
||||||
attributeLine << attributes[i].fName
|
attributeLine << attributes[i].fName
|
||||||
|
|||||||
@@ -166,8 +166,10 @@ void
|
|||||||
PieView::AttachedToWindow()
|
PieView::AttachedToWindow()
|
||||||
{
|
{
|
||||||
fWindow = (MainWindow*)Window();
|
fWindow = (MainWindow*)Window();
|
||||||
if (Parent())
|
if (Parent()) {
|
||||||
SetViewColor(Parent()->ViewColor());
|
SetViewColor(Parent()->ViewColor());
|
||||||
|
SetLowColor(Parent()->ViewColor());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -273,7 +273,7 @@ MainWindow::MainWindow()
|
|||||||
AddChild(fMenuBar);
|
AddChild(fMenuBar);
|
||||||
|
|
||||||
// Partition / Drives context menu
|
// Partition / Drives context menu
|
||||||
fContextMenu = new BPopUpMenu("Partition");
|
fContextMenu = new BPopUpMenu("Partition", false, false);
|
||||||
fCreateContextMenuItem = new BMenuItem(B_TRANSLATE("Create" B_UTF8_ELLIPSIS),
|
fCreateContextMenuItem = new BMenuItem(B_TRANSLATE("Create" B_UTF8_ELLIPSIS),
|
||||||
new BMessage(MSG_CREATE), 'C');
|
new BMessage(MSG_CREATE), 'C');
|
||||||
fChangeContextMenuItem = new BMenuItem(
|
fChangeContextMenuItem = new BMenuItem(
|
||||||
|
|||||||
@@ -29,8 +29,8 @@
|
|||||||
FindWindow::FindWindow(BRect frame, BHandler* _handler, BString* searchString,
|
FindWindow::FindWindow(BRect frame, BHandler* _handler, BString* searchString,
|
||||||
bool caseState, bool wrapState, bool backState)
|
bool caseState, bool wrapState, bool backState)
|
||||||
: BWindow(frame, B_TRANSLATE("Find"), B_FLOATING_WINDOW,
|
: BWindow(frame, B_TRANSLATE("Find"), B_FLOATING_WINDOW,
|
||||||
B_NOT_RESIZABLE | B_ASYNCHRONOUS_CONTROLS | B_AUTO_UPDATE_SIZE_LIMITS,
|
B_NOT_RESIZABLE | B_NOT_ZOOMABLE | B_ASYNCHRONOUS_CONTROLS
|
||||||
B_CURRENT_WORKSPACE)
|
| B_AUTO_UPDATE_SIZE_LIMITS, B_CURRENT_WORKSPACE)
|
||||||
{
|
{
|
||||||
AddShortcut('W', B_COMMAND_KEY, new BMessage(MSG_HIDE_WINDOW));
|
AddShortcut('W', B_COMMAND_KEY, new BMessage(MSG_HIDE_WINDOW));
|
||||||
|
|
||||||
@@ -110,6 +110,14 @@ FindWindow::DispatchMessage(BMessage* message, BHandler* handler)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
FindWindow::Show()
|
||||||
|
{
|
||||||
|
fSearchString->TextView()->SelectAll();
|
||||||
|
BWindow::Show();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
FindWindow::_SendMessage()
|
FindWindow::_SendMessage()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ class FindWindow : public BWindow {
|
|||||||
|
|
||||||
virtual void MessageReceived(BMessage* message);
|
virtual void MessageReceived(BMessage* message);
|
||||||
virtual void DispatchMessage(BMessage* message, BHandler* handler);
|
virtual void DispatchMessage(BMessage* message, BHandler* handler);
|
||||||
|
virtual void Show();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void _SendMessage();
|
void _SendMessage();
|
||||||
|
|||||||
@@ -32,8 +32,8 @@ ReplaceWindow::ReplaceWindow(BRect frame, BHandler* _handler,
|
|||||||
BString* searchString, BString* replaceString,
|
BString* searchString, BString* replaceString,
|
||||||
bool caseState, bool wrapState, bool backState)
|
bool caseState, bool wrapState, bool backState)
|
||||||
: BWindow(frame, B_TRANSLATE("Replace"), B_FLOATING_WINDOW,
|
: BWindow(frame, B_TRANSLATE("Replace"), B_FLOATING_WINDOW,
|
||||||
B_NOT_RESIZABLE | B_ASYNCHRONOUS_CONTROLS | B_AUTO_UPDATE_SIZE_LIMITS,
|
B_NOT_RESIZABLE | B_NOT_ZOOMABLE | B_ASYNCHRONOUS_CONTROLS
|
||||||
B_CURRENT_WORKSPACE)
|
| B_AUTO_UPDATE_SIZE_LIMITS, B_CURRENT_WORKSPACE)
|
||||||
{
|
{
|
||||||
AddShortcut('W', B_COMMAND_KEY, new BMessage(MSG_HIDE_WINDOW));
|
AddShortcut('W', B_COMMAND_KEY, new BMessage(MSG_HIDE_WINDOW));
|
||||||
|
|
||||||
@@ -157,6 +157,14 @@ ReplaceWindow::DispatchMessage(BMessage* message, BHandler* handler)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
ReplaceWindow::Show()
|
||||||
|
{
|
||||||
|
fSearchString->TextView()->SelectAll();
|
||||||
|
BWindow::Show();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ReplaceWindow::_SendMessage(uint32 what)
|
ReplaceWindow::_SendMessage(uint32 what)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ class ReplaceWindow : public BWindow {
|
|||||||
|
|
||||||
virtual void MessageReceived(BMessage* message);
|
virtual void MessageReceived(BMessage* message);
|
||||||
virtual void DispatchMessage(BMessage* message, BHandler* handler);
|
virtual void DispatchMessage(BMessage* message, BHandler* handler);
|
||||||
|
virtual void Show();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void _SendMessage(uint32 what);
|
void _SendMessage(uint32 what);
|
||||||
|
|||||||
Reference in New Issue
Block a user