1 | 1c1
|
---|
2 | < Welcome to this C++ Haiku video guide. I will be teaching you how to create your first Hellow World application with the Haiku operating system.
|
---|
3 | ---
|
---|
4 | > Welcome to this video guide on C++ programming under Haiku. It will explain how to create your first Hello World application with the Haiku operating system.
|
---|
5 | 21c21
|
---|
6 | < This determines where the window will appear on the screen. The second argument is the title of the window. The third one is supposed to tell the type of the window.
|
---|
7 | ---
|
---|
8 | > This determines where the window will appear on the screen. The second argument is the title of the window. The third one sets the type of the window.
|
---|
9 | 34c34
|
---|
10 | < Let's open a terminal window and try to compile it. We mustn't forget to link our application against the Be library.
|
---|
11 | ---
|
---|
12 | > Let's open a terminal window and try to compile it. You can quickly open a Terminal in a specific folder by using the "Open Terminal" Tracker add-on (even quicker with the shortcut ALT OPT T). We mustn't forget to link our application against the Be library.
|
---|
13 | 42c42
|
---|
14 | < Whenever that happens, we will also instruct the application to close. This is done by posting it the quit message like so. Be underscore app is a global variable which points to the instance of the application class.
|
---|
15 | ---
|
---|
16 | > Whenever that happens, we will also instruct the application to close. This is done by posting the quit message to it like so. Be underscore app is a global variable which points to the instance of the application class.
|
---|
17 | 44c44
|
---|
18 | < Then we return true. That means that we allow the window to close. Returning false would mean that we tell the window to ignore the quit message.
|
---|
19 | ---
|
---|
20 | > Then we return true. That means that we allow the window to close. Returning false would mean that we tell the window to ignore the quit message. This is of course the place to prompt the user to save a changed document
|
---|
21 | and so on. Our simple hello world application has no such needs, of course.
|
---|
22 | 46c46
|
---|
23 | < Now let's try to write some text on it. For this we are going to need another header - StringView.h.
|
---|
24 | ---
|
---|
25 | > Now let's try to write some text. For this we are going to need another header - StringView.h.
|
---|
26 | 48c48
|
---|
27 | < The StringView is an object that displays a desired text. Let's create one. Again, the API will take care of the cleanup, so we don't have to delete it afterwards.
|
---|
28 | ---
|
---|
29 | > The StringView is an object that displays text. Let's create one. Again, the API will take care of the cleanup, so we don't have to delete it afterwards.
|
---|
30 | 52c52
|
---|
31 | < We will supply it with values such, that it would fill the whole window. The second argument is a name. The third one is the text that should be display in the StringView.
|
---|
32 | ---
|
---|
33 | > We will supply it with values such, that it would fill the whole window. The second argument is the internal name of the object. The third one is the text that should be displayed in the StringView.
|
---|
34 | 60c60
|
---|
35 | < This concludes the tutorial. For more information you can visit the links displayed here.
|
---|
36 | ---
|
---|
37 | > This concludes the tutorial. For more information you can visit these links.
|
---|
38 | 62c62
|
---|
39 | < Bye.
|
---|
40 | \ No newline at end of file
|
---|
41 | ---
|
---|
42 | > Thanks for watching.
|
---|
43 | \ No newline at end of file
|
---|