~canonical-dx-team/unity/unity.fix-ql-losing-focus

« back to all changes in this revision

Viewing changes to src/unity.h

  • Committer: Michael Terry
  • Date: 2010-12-17 14:07:11 UTC
  • mfrom: (724 unity)
  • mto: This revision was merged to the branch mainline in revision 743.
  • Revision ID: mike@mterry.name-20101217140711-qlij3bxdjuq1xoph
mergeĀ fromĀ upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#include "Launcher.h"
32
32
#include "LauncherController.h"
33
33
#include "PanelView.h"
 
34
#include "PlacesController.h"
34
35
#include "IntrospectionDBusInterface.h"
35
36
#include <Nux/WindowThread.h>
36
37
#include <sigc++/sigc++.h>
37
38
 
38
39
/* base screen class */
39
 
class UnityScreen : 
 
40
class UnityScreen :
40
41
    public Introspectable,
41
42
    public sigc::trackable,
42
43
    public ScreenInterface,
59
60
        CompositeScreen *cScreen;
60
61
        GLScreen        *gScreen;
61
62
 
62
 
        /* prepares nux for drawing */   
 
63
        /* prepares nux for drawing */
63
64
        void
64
65
        nuxPrologue ();
65
66
 
103
104
        const gchar* GetName ();
104
105
 
105
106
        void AddProperties (GVariantBuilder *builder);
106
 
        
 
107
 
107
108
    private:
108
109
 
109
110
        static gboolean
110
111
        initPluginActions (gpointer data);
111
 
    
 
112
 
112
113
        static void
113
114
        initLauncher (nux::NThread* thread, void* InitData);
114
 
  
 
115
 
115
116
        void
116
117
        damageNuxRegions();
117
 
        
118
 
        void 
 
118
 
 
119
        void
119
120
        onRedrawRequested ();
120
 
        
121
 
        static void 
 
121
 
 
122
        static void
122
123
        launcherWindowConfigureCallback(int WindowWidth, int WindowHeight, nux::Geometry& geo, void* user_data);
123
124
 
124
 
        static void 
 
125
        static void
125
126
        panelWindowConfigureCallback(int WindowWidth, int WindowHeight, nux::Geometry& geo, void* user_data);
126
127
 
127
 
        static void 
 
128
        static void
128
129
        initUnity(nux::NThread* thread, void* InitData);
129
130
 
130
 
        static gboolean 
 
131
        static gboolean
131
132
        strutHackTimeout (gpointer data);
132
 
        
 
133
 
133
134
        Launcher               *launcher;
134
135
        LauncherController     *controller;
135
136
        PanelView              *panelView;
 
137
        PlacesController                         *placesController;
136
138
        nux::WindowThread      *wt;
137
139
        nux::BaseWindow        *launcherWindow;
138
140
        nux::BaseWindow        *panelWindow;
162
164
 
163
165
        CompWindow      *window;
164
166
        GLWindow        *gWindow;
165
 
        
 
167
 
166
168
        /* basic window draw function */
167
 
        bool 
 
169
        bool
168
170
        glDraw (const GLMatrix  &matrix,
169
171
                GLFragment::Attrib &attrib,
170
172
                const CompRegion        &region,
173
175
        void windowNotify (CompWindowNotify n);
174
176
 
175
177
  void moveNotify (int x, int y, bool immediate);
176
 
  
 
178
 
177
179
  void resizeNotify (int x, int y, int w, int h);
 
180
  
 
181
  void stateChangeNotify (unsigned int lastState);
178
182
};
179
183
 
180
184
#define EX_SCREEN (screen) \