개정판 e0cfc73c
issue #681: 스플래시 스크린 수정중
Change-Id: I4193c7951a4341ac0783a4a7e298a39fc761c995
KCOM/App.xaml.cs | ||
---|---|---|
89 | 89 |
|
90 | 90 |
private string versionPath = null; |
91 | 91 |
//public SplashScreen splash = new SplashScreen("splash.png"); |
92 |
public SplashScreenWindow splashScreen = new SplashScreenWindow(); |
|
92 |
public static SplashScreenWindow splashScreen = new SplashScreenWindow();
|
|
93 | 93 |
protected override void OnStartup(StartupEventArgs e) |
94 | 94 |
{ |
95 | 95 |
try |
... | ... | |
237 | 237 |
// splash.Close(new TimeSpan(0, 0, 2)); |
238 | 238 |
Task.Factory.StartNew(() => |
239 | 239 |
{ |
240 |
for (int i = 1; i <= 100; i++) |
|
240 |
int value = 100 / ISplashMessage.SplashMessageCnt; |
|
241 |
for (int i = 1; i <= ISplashMessage.SplashMessageCnt ; i++) |
|
241 | 242 |
{ |
242 |
System.Threading.Thread.Sleep(1);
|
|
243 |
splashScreen.Dispatcher.Invoke(() => splashScreen.Progress = i); |
|
243 |
System.Threading.Thread.Sleep(3);
|
|
244 |
splashScreen.Dispatcher.Invoke(() => splashScreen.Progress = i * value);
|
|
244 | 245 |
} |
245 | 246 |
this.Dispatcher.Invoke(() => |
246 | 247 |
{ |
... | ... | |
257 | 258 |
|
258 | 259 |
Task.Factory.StartNew(() => |
259 | 260 |
{ |
260 |
for (int i = 1; i <= 100; i++) |
|
261 |
int value = 100 / ISplashMessage.SplashMessageCnt; |
|
262 |
for (int i = 1; i <= ISplashMessage.SplashMessageCnt; i++) |
|
261 | 263 |
{ |
262 |
System.Threading.Thread.Sleep(1);
|
|
263 |
splashScreen.Dispatcher.Invoke(() => splashScreen.Progress = i);
|
|
264 |
System.Threading.Thread.Sleep(3);
|
|
265 |
splashScreen.Dispatcher.Invoke(() => splashScreen.Progress = i * value);
|
|
264 | 266 |
} |
267 |
|
|
265 | 268 |
this.Dispatcher.Invoke(() => |
266 | 269 |
{ |
267 | 270 |
base.OnStartup(e); |
... | ... | |
279 | 282 |
{ |
280 | 283 |
Task.Factory.StartNew(() => |
281 | 284 |
{ |
282 |
for (int i = 1; i <= 100; i++) |
|
285 |
int value = 100 / ISplashMessage.SplashMessageCnt; |
|
286 |
for (int i = 1; i < ISplashMessage.SplashMessageCnt; i++) |
|
283 | 287 |
{ |
284 |
System.Threading.Thread.Sleep(1); |
|
285 |
splashScreen.Dispatcher.Invoke(() => splashScreen.Progress = i); |
|
288 |
System.Threading.Thread.Sleep(3); |
|
289 |
|
|
290 |
splashScreen.Dispatcher.Invoke(() => splashScreen.Progress = i * value); |
|
291 |
|
|
292 |
//App. |
|
286 | 293 |
} |
287 | 294 |
this.Dispatcher.Invoke(() => |
288 | 295 |
{ |
... | ... | |
294 | 301 |
|
295 | 302 |
} |
296 | 303 |
|
304 |
public static void splashString(string text) |
|
305 |
{ |
|
306 |
Task.Factory.StartNew(() => |
|
307 |
{ |
|
308 |
splashScreen.Dispatcher.Invoke(() => splashScreen.SplashText = text); |
|
309 |
}); |
|
310 |
} |
|
311 |
|
|
312 |
|
|
313 |
|
|
297 | 314 |
/// <summary> |
298 | 315 |
/// log unhandled exception |
299 | 316 |
/// </summary> |
KCOM/Common/InitData.cs | ||
---|---|---|
3 | 3 |
using System.Windows.Controls; |
4 | 4 |
using System.Windows.Media; |
5 | 5 |
using System.Drawing.Text; |
6 |
using KCOM.Common; |
|
6 | 7 |
|
7 | 8 |
namespace KCOM.Views |
8 | 9 |
{ |
... | ... | |
17 | 18 |
|
18 | 19 |
public void InitDataSet() |
19 | 20 |
{ |
21 |
App.splashString(ISplashMessage.INITDATA); |
|
20 | 22 |
dashSet = new List<DashStyle>() |
21 | 23 |
{ |
22 | 24 |
new DashStyle { dashData = new DoubleCollection{999999}}, |
KCOM/Controls/Explorer.xaml.cs | ||
---|---|---|
23 | 23 |
{ |
24 | 24 |
public Explorer() |
25 | 25 |
{ |
26 |
InitializeComponent(); |
|
26 |
InitializeComponent();
|
|
27 | 27 |
this.Loaded += Explorer_Loaded; |
28 | 28 |
|
29 | 29 |
} |
KCOM/Controls/FavoritePanel.xaml.cs | ||
---|---|---|
29 | 29 |
public FavoritePanel() |
30 | 30 |
{ |
31 | 31 |
//InitializeComponent(); |
32 |
App.splashString(ISplashMessage.FAVORITEPANEL); |
|
32 | 33 |
this.Loaded += FavoritePanel_Loaded; |
33 | 34 |
|
34 | 35 |
} |
KCOM/Controls/MarkupColorList.xaml.cs | ||
---|---|---|
1 | 1 |
using IKCOM; |
2 |
using KCOM.Common; |
|
2 | 3 |
using System; |
3 | 4 |
using System.Collections.Generic; |
4 | 5 |
using System.Linq; |
... | ... | |
22 | 23 |
{ |
23 | 24 |
public MarkupColorList() |
24 | 25 |
{ |
26 |
App.splashString(ISplashMessage.MARKUPCOLORLIST); |
|
25 | 27 |
InitializeComponent(); |
26 | 28 |
} |
27 | 29 |
|
KCOM/Controls/PageNavigator.xaml.cs | ||
---|---|---|
26 | 26 |
public List<FAVORITE_DOC> _FavoriteSet { get; set; } |
27 | 27 |
public event PropertyChangedEventHandler PropertyChanged; |
28 | 28 |
public PageNavigator() |
29 |
{ |
|
29 |
{
|
|
30 | 30 |
InitializeComponent(); |
31 | 31 |
_Initialize = true; |
32 | 32 |
} |
KCOM/Controls/Sample.xaml.cs | ||
---|---|---|
25 | 25 |
public event PropertyChangedEventHandler PropertyChanged; |
26 | 26 |
public Sample() |
27 | 27 |
{ |
28 |
//InitializeComponent(); |
|
28 |
//InitializeComponent(); |
|
29 |
App.splashString(ISplashMessage.SAMPLE); |
|
29 | 30 |
this.Loaded += Sample_Loaded; |
30 | 31 |
//_Initialize = true; |
31 | 32 |
|
KCOM/Controls/SearchPanel.xaml.cs | ||
---|---|---|
1 |
using MarkupToPDF.Common; |
|
1 |
using KCOM.Common; |
|
2 |
using MarkupToPDF.Common; |
|
2 | 3 |
using System; |
3 | 4 |
using System.Collections.Generic; |
4 | 5 |
using System.ComponentModel; |
... | ... | |
38 | 39 |
private BackgroundWorker worker = new BackgroundWorker(); |
39 | 40 |
public SearchPanel() |
40 | 41 |
{ |
42 |
App.splashString(ISplashMessage.SEARCHPANEL); |
|
41 | 43 |
InitializeComponent(); |
42 | 44 |
LibInit(); |
43 | 45 |
//this.Loaded += SearchPanel_Loaded; |
KCOM/Controls/Symbol.xaml.cs | ||
---|---|---|
44 | 44 |
|
45 | 45 |
public Symbol() |
46 | 46 |
{ |
47 |
App.splashString(ISplashMessage.SYMBOL); |
|
47 | 48 |
InitializeComponent(); |
48 | 49 |
|
49 | 50 |
//RadDragAndDropManager.AddDragInfoHandler(lstSymbolPrivate, OnDragPrivateInfo); |
KCOM/Controls/thumbnailControl.xaml.cs | ||
---|---|---|
1 |
using System; |
|
1 |
using KCOM.Common; |
|
2 |
using System; |
|
2 | 3 |
using System.Collections.Generic; |
3 | 4 |
using System.Linq; |
4 | 5 |
using System.Text; |
... | ... | |
21 | 22 |
{ |
22 | 23 |
public thumbnailControl() |
23 | 24 |
{ |
25 |
App.splashString(ISplashMessage.THUMBNAILCONTROL); |
|
24 | 26 |
InitializeComponent(); |
25 | 27 |
} |
26 | 28 |
} |
KCOM/KCOM.csproj | ||
---|---|---|
256 | 256 |
<Compile Include="Common\Converter\SvgConverter.cs" /> |
257 | 257 |
<Compile Include="Common\Converter\SvgImageConverter.cs" /> |
258 | 258 |
<Compile Include="Common\FileStreamToBase64.cs" /> |
259 |
<Compile Include="Common\ISplashMessage.cs" /> |
|
259 | 260 |
<Compile Include="Common\SelectionSet.cs" /> |
260 | 261 |
<Compile Include="Common\TempFile.cs" /> |
261 | 262 |
<Compile Include="Connected Services\ServiceDeepView\Reference.cs"> |
KCOM/MainWindow.xaml.cs | ||
---|---|---|
33 | 33 |
{ |
34 | 34 |
public MainWindow() |
35 | 35 |
{ |
36 |
App.splashString(ISplashMessage.MAINWINDOW); |
|
36 | 37 |
this.Loaded += MainWindow_Loaded; |
37 | 38 |
this.KeyDown += new KeyEventHandler(KeyEventDownAction); |
38 | 39 |
this.KeyUp += new KeyEventHandler(KeyEventUpAction); |
KCOM/Messenger/ConversationView.xaml.cs | ||
---|---|---|
1 |
using KCOM.Views; |
|
1 |
using KCOM.Common; |
|
2 |
using KCOM.Views; |
|
2 | 3 |
using System; |
3 | 4 |
using System.Collections.Generic; |
4 | 5 |
using System.ComponentModel; |
... | ... | |
27 | 28 |
|
28 | 29 |
public ConversationView() |
29 | 30 |
{ |
31 |
App.splashString(ISplashMessage.CONVERSATIONVIEW); |
|
30 | 32 |
InitializeComponent(); |
31 |
|
|
32 | 33 |
this.DataContext = this; |
34 |
|
|
33 | 35 |
this.Loaded += ConversationView_Loaded; |
34 | 36 |
btnMark.MouseLeftButtonDown += BtnMark_Click; |
35 | 37 |
btnMail.MouseLeftButtonDown += BtnMail_Click; |
KCOM/Views/MainMenu.xaml.cs | ||
---|---|---|
236 | 236 |
|
237 | 237 |
public MainMenu() |
238 | 238 |
{ |
239 |
App.splashString(ISplashMessage.MAINMENU_0); |
|
239 | 240 |
//InitializeComponent(); |
240 | 241 |
this.Loaded += MainMenu_Loaded; |
241 | 242 |
} |
... | ... | |
432 | 433 |
/// </summary> |
433 | 434 |
public void UpdateMyMarkupList() |
434 | 435 |
{ |
436 |
App.splashString(ISplashMessage.MAINMENU_3); |
|
435 | 437 |
Logger.sendCheckLog("pageNavigator_PageChanging_ChangeCommentReact", 1); |
436 | 438 |
bool isComingNewBie = false; |
437 | 439 |
|
... | ... | |
548 | 550 |
} |
549 | 551 |
private void pageNavigator_PageChanging(object sender, Controls.Sample.PageChangeEventArgs e) |
550 | 552 |
{ |
551 |
|
|
553 |
App.splashString(ISplashMessage.MAINMENU_1); |
|
552 | 554 |
if (ViewerDataModel.Instance.UndoDataList.Count > 0) |
553 | 555 |
{ |
554 | 556 |
this.ParentOfType<MainWindow>().dzTopMenu.SaveEvent(null, null); |
... | ... | |
601 | 603 |
defaultBitmapImage.DecodePixelHeight = Int32.Parse(e.CurrentPage.PAGE_HEIGHT); |
602 | 604 |
defaultBitmapImage.EndInit(); |
603 | 605 |
|
604 |
ViewerDataModel.Instance.ImageViewPath = null;
|
|
606 |
ViewerDataModel.Instance.ImageViewPath = null; |
|
605 | 607 |
|
608 |
App.splashString(ISplashMessage.MAINMENU_2); |
|
606 | 609 |
Logger.sendCheckLog("pageNavigator_PageChanging_BitmapImage Downloading", 1); |
607 | 610 |
if (defaultBitmapImage.IsDownloading) |
608 | 611 |
{ |
612 |
App.splashString(ISplashMessage.MAINMENU_4); |
|
609 | 613 |
Logger.sendCheckLog("pageNavigator_PageChanging_BitmapImage IsDownloading", 1); |
610 | 614 |
defaultBitmapImage.DownloadCompleted += (ex, arg) => |
611 |
{ |
|
615 |
{
|
|
612 | 616 |
defaultBitmapImage.Freeze(); |
613 | 617 |
ViewerDataModel.Instance.ImageViewPath = defaultBitmapImage; |
614 | 618 |
ViewerDataModel.Instance.ImageViewWidth = defaultBitmapImage.PixelWidth; |
KCOM/Views/SplashScreenWindow.xaml.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
using System.Threading.Tasks; |
|
1 |
using KCOM.Common; |
|
6 | 2 |
using System.Windows; |
7 |
using System.Windows.Controls; |
|
8 |
using System.Windows.Data; |
|
9 |
using System.Windows.Documents; |
|
10 |
using System.Windows.Input; |
|
11 |
using System.Windows.Media; |
|
12 |
using System.Windows.Media.Imaging; |
|
13 |
using System.Windows.Shapes; |
|
14 | 3 |
|
15 | 4 |
namespace KCOM.Views |
16 | 5 |
{ |
... | ... | |
21 | 10 |
{ |
22 | 11 |
public SplashScreenWindow() |
23 | 12 |
{ |
13 |
App.splashString(ISplashMessage.SPLASHSCREENWINDOW); |
|
24 | 14 |
InitializeComponent(); |
25 | 15 |
} |
26 | 16 |
|
... | ... | |
29 | 19 |
get { return progressBar.Value; } |
30 | 20 |
set { progressBar.Value = value; } |
31 | 21 |
} |
22 |
|
|
23 |
public string SplashText |
|
24 |
{ |
|
25 |
get { return splashText.Text; } |
|
26 |
set { splashText.Text = value; } |
|
27 |
} |
|
32 | 28 |
} |
33 | 29 |
} |
KCOM/Views/TopMenu.xaml.cs | ||
---|---|---|
1 |
using System; |
|
1 |
using KCOM.Common; |
|
2 |
using System; |
|
2 | 3 |
using System.Collections.Generic; |
3 | 4 |
using System.Linq; |
4 | 5 |
using System.Text; |
... | ... | |
22 | 23 |
{ |
23 | 24 |
public TopMenu() |
24 | 25 |
{ |
25 |
InitializeComponent(); |
|
26 |
App.splashString(ISplashMessage.TOPMENU); |
|
27 |
InitializeComponent(); |
|
26 | 28 |
InitDataSet(); |
27 | 29 |
if (!App.ViewInfo.CreateFinalPDFPermission && !App.ViewInfo.NewCommentPermission) |
28 | 30 |
{ |
내보내기 Unified diff