|
From: CVS C. to T. <the...@li...> - 2010-11-02 21:31:03
|
Revision: 554
http://themis.svn.sourceforge.net/themis/?rev=554&view=rev
Author: mark_hellegers
Date: 2010-11-02 21:30:57 +0000 (Tue, 02 Nov 2010)
Log Message:
-----------
Copy from the BasePrefsView of the PrefsVies files in the framework directory, so we can more easily use them outside the framework.
Added Paths:
-----------
trunk/themis/common/BasePrefsView.cpp
trunk/themis/common/BasePrefsView.hpp
Added: trunk/themis/common/BasePrefsView.cpp
===================================================================
--- trunk/themis/common/BasePrefsView.cpp (rev 0)
+++ trunk/themis/common/BasePrefsView.cpp 2010-11-02 21:30:57 UTC (rev 554)
@@ -0,0 +1,69 @@
+/*
+ Copyright (c) 2010 Mark Hellegers. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person
+ obtaining a copy of this software and associated documentation
+ files (the "Software"), to deal in the Software without
+ restriction, including without limitation the rights to use,
+ copy, modify, merge, publish, distribute, sublicense, and/or
+ sell copies of the Software, and to permit persons to whom
+ the Software is furnished to do so, subject to the following
+ conditions:
+
+ The above copyright notice and this permission notice
+ shall be included in all copies or substantial portions
+ of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
+ KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
+ WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
+ OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+ Original Author: Mark Hellegers (ma...@fi...)
+ Project Start Date: October 18, 2000
+ Class Start Date: October 31, 2010
+*/
+
+/* BasePrefsView implementation
+ See BasePrefsView.hpp for more information
+*/
+
+// Standard C headers
+#include <stdio.h>
+
+// BeOS headers
+#include <interface/Window.h>
+#include <interface/Box.h>
+#include <interface/PopUpMenu.h>
+#include <interface/MenuItem.h>
+#include <interface/MenuField.h>
+#include <storage/Directory.h>
+#include <storage/Entry.h>
+#include <storage/Path.h>
+
+// Themis headers
+#include "BasePrefsView.hpp"
+#include "commondefs.h"
+#include "PrefsDefs.h"
+
+BasePrefsView :: BasePrefsView(BRect aFrame,
+ const char* aName)
+ : BView(aFrame,
+ aName,
+ B_FOLLOW_ALL,
+ 0) {
+
+ mMainBox = new BBox(
+ Bounds(),
+ "MainBox",
+ B_FOLLOW_ALL);
+ mMainBox->SetLabel(Name());
+ AddChild(mMainBox);
+
+ SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
+
+}
Added: trunk/themis/common/BasePrefsView.hpp
===================================================================
--- trunk/themis/common/BasePrefsView.hpp (rev 0)
+++ trunk/themis/common/BasePrefsView.hpp 2010-11-02 21:30:57 UTC (rev 554)
@@ -0,0 +1,62 @@
+/*
+ Copyright (c) 2010 Mark Hellegers. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person
+ obtaining a copy of this software and associated documentation
+ files (the "Software"), to deal in the Software without
+ restriction, including without limitation the rights to use,
+ copy, modify, merge, publish, distribute, sublicense, and/or
+ sell copies of the Software, and to permit persons to whom
+ the Software is furnished to do so, subject to the following
+ conditions:
+
+ The above copyright notice and this permission notice
+ shall be included in all copies or substantial portions
+ of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
+ KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
+ WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
+ OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+ Original Author: Mark Hellegers (ma...@fi...)
+ Project Start Date: October 18, 2000
+ Class Start Date: October 31, 2010
+*/
+
+/* BasePrefsView
+ Contains the basic preferences view.
+
+ Mark Hellegers (ma...@fi...)
+ 31-10-2010
+*/
+
+#ifndef BASEPREFSVIEW_HPP
+#define BASEPREFSVIEW_HPP
+
+// BeOS headers
+#include <View.h>
+#include <Rect.h>
+
+/// Class to define the basic view of the preferences.
+
+/**
+ This class defines the basic view of the preferences.
+*/
+
+class BasePrefsView : public BView {
+
+ protected:
+ BBox * mMainBox;
+
+ public:
+ BasePrefsView(BRect aFrame,
+ const char* aName);
+
+};
+
+#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|