It now builds as a standalone app for Zeta. Even still works :))
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23419 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e8fc4975ad
commit
57a393d2f9
2
3rdparty/Jamfile
vendored
2
3rdparty/Jamfile
vendored
@ -1,3 +1,3 @@
|
|||||||
SubDir HAIKU_TOP 3rdparty ;
|
SubDir HAIKU_TOP 3rdparty ;
|
||||||
|
|
||||||
#SubInclude HAIKU_TOP 3rdparty mmu_man ;
|
SubInclude HAIKU_TOP 3rdparty mmu_man ;
|
||||||
|
3
3rdparty/mmu_man/Jamfile
vendored
Normal file
3
3rdparty/mmu_man/Jamfile
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
SubDir HAIKU_TOP 3rdparty mmu_man ;
|
||||||
|
|
||||||
|
SubInclude HAIKU_TOP 3rdparty mmu_man themes ;
|
7
3rdparty/mmu_man/themes/Jamfile
vendored
7
3rdparty/mmu_man/themes/Jamfile
vendored
@ -1,8 +1,10 @@
|
|||||||
SubDir HAIKU_TOP 3rdparty themes ;
|
SubDir HAIKU_TOP 3rdparty mmu_man themes ;
|
||||||
|
|
||||||
SetSubDirSupportedPlatformsBeOSCompatible ;
|
SetSubDirSupportedPlatformsBeOSCompatible ;
|
||||||
|
|
||||||
SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) 3rdparty themes addons ] ;
|
SubDirC++Flags -DSINGLE_BINARY ;
|
||||||
|
|
||||||
|
SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) 3rdparty mmu_man themes addons ] ;
|
||||||
|
|
||||||
local addonSources ;
|
local addonSources ;
|
||||||
addonSources =
|
addonSources =
|
||||||
@ -28,6 +30,7 @@ Application <3rdparty>Themes :
|
|||||||
ParseMessage.cpp
|
ParseMessage.cpp
|
||||||
TextInputAlert.cpp
|
TextInputAlert.cpp
|
||||||
ThemeAddonItem.cpp
|
ThemeAddonItem.cpp
|
||||||
|
ThemesApp.cpp
|
||||||
ThemeInterfaceView.cpp
|
ThemeInterfaceView.cpp
|
||||||
ThemeItem.cpp
|
ThemeItem.cpp
|
||||||
ThemeManager.cpp
|
ThemeManager.cpp
|
||||||
|
1
3rdparty/mmu_man/themes/ThemeInterfaceView.h
vendored
1
3rdparty/mmu_man/themes/ThemeInterfaceView.h
vendored
@ -16,6 +16,7 @@ class BScrollView;
|
|||||||
class BTextView;
|
class BTextView;
|
||||||
class BMessage;
|
class BMessage;
|
||||||
class BStringView;
|
class BStringView;
|
||||||
|
class BInvoker;
|
||||||
|
|
||||||
class ThemeInterfaceView : public BView
|
class ThemeInterfaceView : public BView
|
||||||
{
|
{
|
||||||
|
52
3rdparty/mmu_man/themes/ThemesApp.cpp
vendored
Normal file
52
3rdparty/mmu_man/themes/ThemesApp.cpp
vendored
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
#include <Screen.h>
|
||||||
|
#include <Window.h>
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#include "ThemesApp.h"
|
||||||
|
#include "ThemeInterfaceView.h"
|
||||||
|
|
||||||
|
const char *kThemesAppSig = "application/x-vnd.mmu_man-Themes";
|
||||||
|
|
||||||
|
|
||||||
|
ThemesApp::ThemesApp()
|
||||||
|
: BApplication(kThemesAppSig)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ThemesApp::~ThemesApp()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
ThemesApp::ReadyToRun()
|
||||||
|
{
|
||||||
|
BScreen s;
|
||||||
|
BRect frame(0, 0, 500, 300);
|
||||||
|
frame.OffsetBySelf(s.Frame().Width()/2 - frame.Width()/2,
|
||||||
|
s.Frame().Height()/2 - frame.Height()/2);
|
||||||
|
BWindow *w = new BWindow(frame, "Themes", B_TITLED_WINDOW, B_NOT_RESIZABLE | B_QUIT_ON_WINDOW_CLOSE);
|
||||||
|
ThemeInterfaceView *v = new ThemeInterfaceView(w->Bounds());
|
||||||
|
w->AddChild(v);
|
||||||
|
w->Show();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
ThemesApp::MessageReceived(BMessage *message)
|
||||||
|
{
|
||||||
|
switch (message->what) {
|
||||||
|
default:
|
||||||
|
BApplication::MessageReceived(message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
ThemesApp app;
|
||||||
|
app.Run();
|
||||||
|
}
|
11
3rdparty/mmu_man/themes/ThemesApp.h
vendored
Normal file
11
3rdparty/mmu_man/themes/ThemesApp.h
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#include <Application.h>
|
||||||
|
|
||||||
|
class ThemesApp : public BApplication {
|
||||||
|
public:
|
||||||
|
ThemesApp();
|
||||||
|
virtual ~ThemesApp();
|
||||||
|
void ReadyToRun();
|
||||||
|
void MessageReceived(BMessage *message);
|
||||||
|
|
||||||
|
private:
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user