Changeset 157
- Timestamp:
- 03/08/07 20:28:40 (2 years ago)
- Files:
-
- dmp/trunk/client/linux-settop-gui/linux-settop-gui.csproj (modified) (2 diffs)
- dmp/trunk/client/linux-settop-gui/topwindow.cs (modified) (6 diffs)
- dmp/trunk/libraries/Mono.Cairo.dll (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dmp/trunk/client/linux-settop-gui/linux-settop-gui.csproj
r109 r157 40 40 --> 41 41 <ItemGroup> 42 <Compile Include="Graphics.cs" /> 42 43 <Compile Include="topwindow.cs" /> 43 44 </ItemGroup> … … 48 49 <Reference Include="gtk-dotnet, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" /> 49 50 <Reference Include="gtk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" /> 51 <Reference Include="Mono.Cairo, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL"> 52 <SpecificVersion>False</SpecificVersion> 53 <HintPath>..\..\libraries\Mono.Cairo.dll</HintPath> 54 </Reference> 50 55 <Reference Include="System" /> 51 56 <Reference Include="System.Data" /> dmp/trunk/client/linux-settop-gui/topwindow.cs
r109 r157 25 25 ToolButton playButton; 26 26 27 //Create backgrounds 28 DrawingArea topBG = new DrawingArea(); 29 27 30 //Initialize all our etc. containers 28 31 Toolbar controlButtons = new Toolbar(); … … 30 33 VBox playerV = new VBox(false, 6); 31 34 Layout mainLayout = new Layout(null, null); 32 Layout topLayout = new Layout(null, null);35 Layout topLayout = new Layout(null, null); 33 36 34 37 //Initialize containers for song info area … … 49 52 { 50 53 Application.Init(); 51 52 resFile.53 54 54 55 newWin = new Window("Rubicon Music Player"); … … 94 95 topLayout.Put(controlButtons, 0, 0); 95 96 topLayout.Put(songInfo, winWidth / 2, 30); 97 topLayout.Put(topBG, 0, 0); 98 topBG.ExposeEvent += new ExposeEventHandler(topBG_ExposeEvent); 96 99 97 100 playerH.SetSizeRequest(winWidth, winHeight - TOPFRAME_HEIGHT); … … 146 149 } 147 150 151 void topBG_ExposeEvent(object o, ExposeEventArgs args) 152 { 153 Cairo.Context g = Gdk.Context.CreateDrawable(topBG.GdkWindow); 154 Cairo.PointD p1, p2, p3, p4; 155 p1 = new Cairo.PointD(10, 10); 156 p2 = new Cairo.PointD(100, 10); 157 p3 = new Cairo.PointD(100, 100); 158 p4 = new Cairo.PointD(10, 100); 159 160 // g is a Graphics object 161 g.MoveTo(p1); 162 g.LineTo(p2); 163 g.LineTo(p3); 164 g.LineTo(p4); 165 g.LineTo(p1); 166 g.ClosePath(); 167 168 g.Color = new Cairo.Color(0, 0, 0); 169 g.FillPreserve(); 170 g.Color = new Cairo.Color(1, 0, 0); 171 g.Stroke(); 172 } 173 148 174 void songInfo_Realized(object o, EventArgs events) 149 175 { 150 176 //Fixed songInfo = (Fixed)o; 151 177 /* 152 178 Gdk.Pixbuf playBuf = new Gdk.Pixbuf("./icons/media-playback-start.png"); 153 179 Gdk.Pixmap playMap, playMask; … … 157 183 songInfo.AppPaintable = true; 158 184 songInfo.Style.SetBgPixmap(StateType.Normal, playMap); 185 * */ 159 186 } 160 187
