minor cleaning

This commit is contained in:
fluxgen 2003-02-20 16:38:17 +00:00
parent 481ab36158
commit 318c6e02c5

View file

@ -22,7 +22,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE. // DEALINGS IN THE SOFTWARE.
/// $Id: Slit.hh,v 1.19 2003/02/18 15:11:08 rathnor Exp $ /// $Id: Slit.hh,v 1.20 2003/02/20 16:38:17 fluxgen Exp $
#ifndef SLIT_HH #ifndef SLIT_HH
#define SLIT_HH #define SLIT_HH
@ -39,6 +39,7 @@
#include <list> #include <list>
#include <string> #include <string>
#include <memory> #include <memory>
class BScreen; class BScreen;
class SlitClient; class SlitClient;
@ -88,8 +89,8 @@ public:
/// cycle slit clients down one step /// cycle slit clients down one step
void cycleClientsDown(); void cycleClientsDown();
BScreen *screen() { return m_screen; } BScreen &screen() { return m_screen; }
const BScreen *screen() const { return m_screen; } const BScreen &screen() const { return m_screen; }
/** /**
@name eventhandlers @name eventhandlers
*/ */
@ -118,14 +119,14 @@ private:
Direction m_direction; Direction m_direction;
Placement m_placement; Placement m_placement;
BScreen *m_screen; BScreen &m_screen;
FbTk::Timer timer; FbTk::Timer timer;
typedef std::list<SlitClient *> SlitClients; typedef std::list<SlitClient *> SlitClients;
SlitClients clientList; SlitClients clientList;
FbTk::Menu slitmenu, placement_menu, clientlist_menu; FbTk::Menu slitmenu, placement_menu, clientlist_menu;
LayerMenu<Slit> *slit_layermenu; std::auto_ptr<LayerMenu<Slit> > slit_layermenu;
std::string clientListPath; std::string clientListPath;
std::string m_filename; std::string m_filename;
@ -139,7 +140,7 @@ private:
// for KDE // for KDE
Atom kwm1_dockwindow, kwm2_dockwindow; Atom kwm1_dockwindow, kwm2_dockwindow;
FbTk::XLayerItem *m_layeritem; std::auto_ptr<FbTk::XLayerItem> m_layeritem;
}; };