Tracker: style fixes to TrackerSettingsWindow
This commit is contained in:
parent
4c0810574e
commit
e55f3b531d
@ -48,15 +48,15 @@ All rights reserved.
|
||||
namespace BPrivate {
|
||||
|
||||
class SettingsItem : public BStringItem {
|
||||
public:
|
||||
SettingsItem(const char* label, SettingsView* view);
|
||||
public:
|
||||
SettingsItem(const char* label, SettingsView* view);
|
||||
|
||||
void DrawItem(BView* owner, BRect rect, bool drawEverything);
|
||||
void DrawItem(BView* owner, BRect rect, bool drawEverything);
|
||||
|
||||
SettingsView* View();
|
||||
SettingsView* View();
|
||||
|
||||
private:
|
||||
SettingsView* fSettingsView;
|
||||
private:
|
||||
SettingsView* fSettingsView;
|
||||
};
|
||||
|
||||
} // namespace BPrivate
|
||||
@ -71,12 +71,15 @@ const uint32 kRevertButtonPressed = 'Rebp';
|
||||
#define B_TRANSLATION_CONTEXT "TrackerSettingsWindow"
|
||||
|
||||
|
||||
// #pragma mark - TrackerSettingsWindow
|
||||
|
||||
|
||||
TrackerSettingsWindow::TrackerSettingsWindow()
|
||||
:
|
||||
BWindow(BRect(80, 80, 450, 350), B_TRANSLATE("Tracker preferences"),
|
||||
B_TITLED_WINDOW, B_NOT_MINIMIZABLE | B_NOT_RESIZABLE
|
||||
| B_ASYNCHRONOUS_CONTROLS | B_NOT_ZOOMABLE
|
||||
| B_AUTO_UPDATE_SIZE_LIMITS)
|
||||
| B_ASYNCHRONOUS_CONTROLS | B_NOT_ZOOMABLE
|
||||
| B_AUTO_UPDATE_SIZE_LIMITS)
|
||||
{
|
||||
fSettingsTypeListView = new BListView("List View",
|
||||
B_SINGLE_SELECTION_LIST);
|
||||
@ -163,6 +166,7 @@ TrackerSettingsWindow::MessageReceived(BMessage* message)
|
||||
|
||||
default:
|
||||
_inherited::MessageReceived(message);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -294,7 +298,7 @@ TrackerSettingsWindow::_HandleChangedSettingsView()
|
||||
}
|
||||
|
||||
|
||||
// #pragma mark -
|
||||
// #pragma mark - SettingsItem
|
||||
|
||||
|
||||
SettingsItem::SettingsItem(const char* label, SettingsView* view)
|
||||
|
@ -31,8 +31,8 @@ of Be Incorporated in the United States and other countries. Other brand product
|
||||
names are registered trademarks or trademarks of their respective holders.
|
||||
All rights reserved.
|
||||
*/
|
||||
#ifndef TRACKER_SETTINGS_WINDOW_H
|
||||
#define TRACKER_SETTINGS_WINDOW_H
|
||||
#ifndef _TRACKER_SETTINGS_WINDOW_H
|
||||
#define _TRACKER_SETTINGS_WINDOW_H
|
||||
|
||||
|
||||
#include <Box.h>
|
||||
@ -47,32 +47,33 @@ All rights reserved.
|
||||
namespace BPrivate {
|
||||
|
||||
class TrackerSettingsWindow : public BWindow {
|
||||
public:
|
||||
TrackerSettingsWindow();
|
||||
public:
|
||||
TrackerSettingsWindow();
|
||||
|
||||
bool QuitRequested();
|
||||
void MessageReceived(BMessage* message);
|
||||
void Show();
|
||||
bool QuitRequested();
|
||||
void MessageReceived(BMessage* message);
|
||||
void Show();
|
||||
|
||||
private:
|
||||
SettingsView* _ViewAt(int32 i);
|
||||
private:
|
||||
SettingsView* _ViewAt(int32 i);
|
||||
|
||||
void _HandleChangedContents();
|
||||
void _HandlePressedDefaultsButton();
|
||||
void _HandlePressedRevertButton();
|
||||
void _HandleChangedSettingsView();
|
||||
void _UpdateButtons();
|
||||
void _HandleChangedContents();
|
||||
void _HandlePressedDefaultsButton();
|
||||
void _HandlePressedRevertButton();
|
||||
void _HandleChangedSettingsView();
|
||||
void _UpdateButtons();
|
||||
|
||||
BListView* fSettingsTypeListView;
|
||||
BBox* fSettingsContainerBox;
|
||||
BButton* fDefaultsButton;
|
||||
BButton* fRevertButton;
|
||||
BListView* fSettingsTypeListView;
|
||||
BBox* fSettingsContainerBox;
|
||||
BButton* fDefaultsButton;
|
||||
BButton* fRevertButton;
|
||||
|
||||
typedef BWindow _inherited;
|
||||
typedef BWindow _inherited;
|
||||
};
|
||||
|
||||
} // namespace BPrivate
|
||||
|
||||
using namespace BPrivate;
|
||||
|
||||
#endif // TRACKER_SETTINGS_WINDOW_H
|
||||
|
||||
#endif // _TRACKER_SETTINGS_WINDOW_H
|
||||
|
Loading…
Reference in New Issue
Block a user