Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Games
KReversi
Commits
9fdfe650
Commit
9fdfe650
authored
Sep 17, 2013
by
Denis Kuplyakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documented StartGameDialog class.
parent
1851c021
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
1 deletion
+42
-1
startgamedialog.h
startgamedialog.h
+42
-1
No files found.
startgamedialog.h
View file @
9fdfe650
...
...
@@ -36,6 +36,10 @@ namespace Ui
class
StartGameDialog
;
}
/**
* Dialog used to gather information about new game.
* @see GameStartInformation
*/
class
StartGameDialog
:
public
KDialog
{
Q_OBJECT
...
...
@@ -44,24 +48,61 @@ public:
explicit
StartGameDialog
(
QWidget
*
parent
,
KgThemeProvider
*
provider
);
~
StartGameDialog
();
/**
* @return collected GameStartInformation
*/
GameStartInformation
createGameStartInformation
()
const
;
/**
* Sets chips color according to @p prefix
*/
void
setChipsPrefix
(
ChipsPrefix
prefix
);
signals:
/**
* Emitted when user has finished entering information
*/
void
startGame
();
private
slots
:
/**
* Handles "User changed player type for black player" event
*/
void
slotUpdateBlack
(
int
clickedId
);
/**
* Handles "User changed player type for white player" event
*/
void
slotUpdateWhite
(
int
clickedId
);
private:
/**
* Handles dialog button click
*/
void
slotButtonClicked
(
int
button
);
/**
* Updates chip images
*/
void
loadChipImages
();
/**
* Encapsulates UI
*/
Ui
::
StartGameDialog
*
ui
;
/**
* Main dialog widget
*/
QWidget
*
m_contents
;
/**
* Needed to get username
*/
KUser
m_user
;
/**
* Used to draw chip
*/
KgThemeProvider
*
m_provider
;
/**
* Sets chip's color to use
*/
ChipsPrefix
m_chipsPrefix
;
void
loadChipImages
();
};
#endif // STARTGAMEDIALOG_H
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment