Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Kubrick
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Games
Kubrick
Commits
ba4fc343
Commit
ba4fc343
authored
Jun 02, 2017
by
Andrius Štikonas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove KDELibs4Support.
parent
44f6f39d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
38 deletions
+34
-38
CMakeLists.txt
CMakeLists.txt
+0
-1
src/CMakeLists.txt
src/CMakeLists.txt
+0
-1
src/game.cpp
src/game.cpp
+3
-1
src/gamedialog.cpp
src/gamedialog.cpp
+21
-20
src/gamedialog.h
src/gamedialog.h
+3
-5
src/gameglview.cpp
src/gameglview.cpp
+2
-6
src/kubrick.cpp
src/kubrick.cpp
+5
-4
No files found.
CMakeLists.txt
View file @
ba4fc343
...
@@ -14,7 +14,6 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
...
@@ -14,7 +14,6 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
CoreAddons
CoreAddons
Crash
Crash
DocTools
DocTools
KDELibs4Support
I18n
I18n
KIO
KIO
WidgetsAddons
WidgetsAddons
...
...
src/CMakeLists.txt
View file @
ba4fc343
...
@@ -29,7 +29,6 @@ target_link_libraries(kubrick
...
@@ -29,7 +29,6 @@ target_link_libraries(kubrick
Qt5::Svg
Qt5::Svg
KF5::Crash
KF5::Crash
KF5::ConfigCore
KF5::ConfigCore
KF5::KDELibs4Support
KF5::KIOCore
KF5::KIOCore
KF5::XmlGui
KF5::XmlGui
KF5KDEGames
KF5KDEGames
...
...
src/game.cpp
View file @
ba4fc343
...
@@ -21,7 +21,9 @@
...
@@ -21,7 +21,9 @@
#include "movetracker.h"
#include "movetracker.h"
#include "scenelabel.h"
#include "scenelabel.h"
#include "kubrick_debug.h"
#include "kubrick_debug.h"
#include <KConfig>
#include <KConfig>
#include <KConfigGroup>
#include <KLocalizedString>
#include <KLocalizedString>
#include <KMessageBox>
#include <KMessageBox>
#include <KStandardAction>
#include <KStandardAction>
...
@@ -1822,7 +1824,7 @@ void Game::chooseMousePointer ()
...
@@ -1822,7 +1824,7 @@ void Game::chooseMousePointer ()
void
Game
::
startNextDisplay
()
void
Game
::
startNextDisplay
()
{
{
// Pick off the first character of the display sequence.
// Pick off the first character of the display sequence.
char
c
=
displaySequence
.
at
(
0
).
to
Ascii
();
char
c
=
displaySequence
.
at
(
0
).
to
Latin1
();
displaySequence
.
remove
(
0
,
1
);
displaySequence
.
remove
(
0
,
1
);
int
nRMoves
=
0
;
int
nRMoves
=
0
;
...
...
src/gamedialog.cpp
View file @
ba4fc343
...
@@ -17,43 +17,44 @@
...
@@ -17,43 +17,44 @@
*******************************************************************************/
*******************************************************************************/
#include "gamedialog.h"
#include "gamedialog.h"
#include <KConfigGroup>
#include <KLocalizedString>
#include <KLocalizedString>
#include <QVBoxLayout>
#include <QDialogButtonBox>
#include <QLabel>
#include <QFrame>
#include <QFrame>
#include <QLabel>
#include <QPushButton>
#include <QVBoxLayout>
/******************************************************************************/
/******************************************************************************/
/***************** DIALOG BOX TO SELECT A GAME AND LEVEL *****************/
/***************** DIALOG BOX TO SELECT A GAME AND LEVEL *****************/
/******************************************************************************/
/******************************************************************************/
GameDialog
::
GameDialog
(
bool
changePuzzle
,
int
optionTemp
[],
QWidget
*
parent
)
GameDialog
::
GameDialog
(
bool
changePuzzle
,
int
optionTemp
[],
QWidget
*
parent
)
:
K
Dialog
(
parent
)
:
Q
Dialog
(
parent
)
{
{
myParent
=
parent
;
myParent
=
parent
;
myChangePuzzle
=
changePuzzle
;
myChangePuzzle
=
changePuzzle
;
opt
=
optionTemp
;
opt
=
optionTemp
;
int
margin
=
marginHint
();
int
spacing
=
spacingHint
();
QWidget
*
dad
=
new
QWidget
(
this
);
QWidget
*
dad
=
new
QWidget
(
this
);
setMainWidget
(
dad
);
QVBoxLayout
*
mainLayout
=
new
QVBoxLayout
(
dad
);
setCaption
(
i18n
(
"Rubik's Cube Options"
));
mainLayout
->
addWidget
(
dad
);
setButtons
(
KDialog
::
Ok
|
KDialog
::
Cancel
|
KDialog
::
Help
);
setLayout
(
mainLayout
);
setDefaultButton
(
KDialog
::
Ok
);
setWindowTitle
(
i18n
(
"Rubik's Cube Options"
));
QDialogButtonBox
*
buttonBox
=
new
QDialogButtonBox
(
QDialogButtonBox
::
Ok
|
QDialogButtonBox
::
Cancel
|
QDialogButtonBox
::
Help
);
QVBoxLayout
*
mainLayout
=
new
QVBoxLayout
(
dad
);
QPushButton
*
okButton
=
buttonBox
->
button
(
QDialogButtonBox
::
Ok
);
mainLayout
->
setSpacing
(
spacing
);
okButton
->
setDefault
(
true
);
mainLayout
->
setMargin
(
margin
);
okButton
->
setShortcut
(
Qt
::
CTRL
|
Qt
::
Key_Return
);
connect
(
buttonBox
,
&
QDialogButtonBox
::
accepted
,
this
,
&
GameDialog
::
accept
);
connect
(
buttonBox
,
&
QDialogButtonBox
::
rejected
,
this
,
&
GameDialog
::
reject
);
buttonBox
->
button
(
QDialogButtonBox
::
Ok
)
->
setDefault
(
true
);
QHBoxLayout
*
cubeDimensions
=
new
QHBoxLayout
();
QHBoxLayout
*
cubeDimensions
=
new
QHBoxLayout
();
mainLayout
->
addLayout
(
cubeDimensions
);
mainLayout
->
addLayout
(
cubeDimensions
);
cubeDimensions
->
setSpacing
(
spacing
);
QHBoxLayout
*
difficulty
=
new
QHBoxLayout
();
QHBoxLayout
*
difficulty
=
new
QHBoxLayout
();
mainLayout
->
addLayout
(
difficulty
);
mainLayout
->
addLayout
(
difficulty
);
difficulty
->
setSpacing
(
spacing
);
if
(
changePuzzle
)
{
if
(
changePuzzle
)
{
// Lay out spin boxes for the cube dimensions.
// Lay out spin boxes for the cube dimensions.
...
@@ -116,7 +117,6 @@ GameDialog::GameDialog (bool changePuzzle, int optionTemp [], QWidget * parent)
...
@@ -116,7 +117,6 @@ GameDialog::GameDialog (bool changePuzzle, int optionTemp [], QWidget * parent)
QHBoxLayout
*
speed
=
new
QHBoxLayout
();
QHBoxLayout
*
speed
=
new
QHBoxLayout
();
mainLayout
->
addLayout
(
speed
);
mainLayout
->
addLayout
(
speed
);
speed
->
setSpacing
(
spacing
);
speedL
=
new
QLabel
(
i18n
(
"Speed of moves:"
));
speedL
=
new
QLabel
(
i18n
(
"Speed of moves:"
));
speedN
=
new
QSpinBox
();
speedN
=
new
QSpinBox
();
...
@@ -126,7 +126,6 @@ GameDialog::GameDialog (bool changePuzzle, int optionTemp [], QWidget * parent)
...
@@ -126,7 +126,6 @@ GameDialog::GameDialog (bool changePuzzle, int optionTemp [], QWidget * parent)
QHBoxLayout
*
bevel
=
new
QHBoxLayout
();
QHBoxLayout
*
bevel
=
new
QHBoxLayout
();
mainLayout
->
addLayout
(
bevel
);
mainLayout
->
addLayout
(
bevel
);
bevel
->
setSpacing
(
spacing
);
// xgettext: no-c-format
// xgettext: no-c-format
bevelL
=
new
QLabel
(
i18n
(
"% of bevel on edges of cubies:"
));
bevelL
=
new
QLabel
(
i18n
(
"% of bevel on edges of cubies:"
));
...
@@ -136,6 +135,8 @@ GameDialog::GameDialog (bool changePuzzle, int optionTemp [], QWidget * parent)
...
@@ -136,6 +135,8 @@ GameDialog::GameDialog (bool changePuzzle, int optionTemp [], QWidget * parent)
bevel
->
addWidget
(
bevelL
);
bevel
->
addWidget
(
bevelL
);
bevel
->
addWidget
(
bevelN
);
bevel
->
addWidget
(
bevelN
);
mainLayout
->
addWidget
(
buttonBox
);
// Set the option-widgets to the current values of the options.
// Set the option-widgets to the current values of the options.
if
(
changePuzzle
)
{
if
(
changePuzzle
)
{
dimX
->
setValue
(
optionTemp
[
optXDim
]);
dimX
->
setValue
(
optionTemp
[
optXDim
]);
...
@@ -150,8 +151,8 @@ GameDialog::GameDialog (bool changePuzzle, int optionTemp [], QWidget * parent)
...
@@ -150,8 +151,8 @@ GameDialog::GameDialog (bool changePuzzle, int optionTemp [], QWidget * parent)
bevelN
->
setValue
(
optionTemp
[
optBevel
]);
bevelN
->
setValue
(
optionTemp
[
optBevel
]);
connect
(
this
,
&
GameDialog
::
okC
licked
,
this
,
&
GameDialog
::
slotOk
);
connect
(
okButton
,
&
QPushButton
::
c
licked
,
this
,
&
GameDialog
::
slotOk
);
connect
(
this
,
&
GameDialog
::
helpC
licked
,
this
,
&
GameDialog
::
slotHelp
);
connect
(
buttonBox
->
button
(
QDialogButtonBox
::
Help
),
&
QPushButton
::
c
licked
,
this
,
&
GameDialog
::
slotHelp
);
}
}
...
...
src/gamedialog.h
View file @
ba4fc343
...
@@ -19,14 +19,12 @@
...
@@ -19,14 +19,12 @@
#ifndef GAMEDIALOG_H
#ifndef GAMEDIALOG_H
#define GAMEDIALOG_H
#define GAMEDIALOG_H
// Use KDialog and KMessageBox.
#include <KDialog>
#include <KMessageBox>
#include <KMessageBox>
#include <QCheckBox>
#include <QDialog>
#include <QLabel>
#include <QLabel>
#include <QSpinBox>
#include <QSpinBox>
#include <QCheckBox>
#include "kbkglobal.h"
#include "kbkglobal.h"
...
@@ -40,7 +38,7 @@ class Game;
...
@@ -40,7 +38,7 @@ class Game;
/******************* DIALOG TO SELECT A GAME AND LEVEL *******************/
/******************* DIALOG TO SELECT A GAME AND LEVEL *******************/
/******************************************************************************/
/******************************************************************************/
class
GameDialog
:
public
K
Dialog
class
GameDialog
:
public
Q
Dialog
{
{
public:
public:
GameDialog
(
bool
changePuzzle
,
int
optionTemp
[
8
],
QWidget
*
parent
=
0
);
GameDialog
(
bool
changePuzzle
,
int
optionTemp
[
8
],
QWidget
*
parent
=
0
);
...
...
src/gameglview.cpp
View file @
ba4fc343
...
@@ -25,15 +25,11 @@
...
@@ -25,15 +25,11 @@
#include <QMouseEvent>
#include <QMouseEvent>
#include <QPainter>
#include <QPainter>
#include <QPoint>
#include <QPoint>
#include <QStandardPaths>
#include <QStringList>
#include <QStringList>
// IDW - This is temporary code for KDE 4.1. Do themes properly in KDE 4.2.
#include <KCmdLineArgs>
#include <KAboutData>
#include <QSvgRenderer>
#include <QSvgRenderer>
#include "kubrick_debug.h"
#include "kubrick_debug.h"
#include <KGlobal>
#include <KStandardDirs>
// C++ includes
// C++ includes
#include <iostream>
#include <iostream>
...
...
src/kubrick.cpp
View file @
ba4fc343
...
@@ -21,19 +21,20 @@
...
@@ -21,19 +21,20 @@
// Qt includes.
// Qt includes.
#include <QAction>
#include <QAction>
#include <QLineEdit>
#include <QHBoxLayout>
#include <QGLFormat>
#include <QGLFormat>
#include <QHBoxLayout>
#include <QLineEdit>
#include <QSignalMapper>
#include <QSignalMapper>
#include <QStatusBar>
#include <QStatusBar>
#include <QString>
#include <QString>
// KDE includes.
// KDE includes.
#include <KActionCollection>
#include <KActionCollection>
#include <KConfigGroup>
#include <KLocalizedString>
#include <KLocalizedString>
#include <KStandardGameAction>
#include <KMessageBox>
#include <KMessageBox>
#include <KShortcutsDialog>
#include <KShortcutsDialog>
#include <KStandardGameAction>
#include <KToggleAction>
#include <KToggleAction>
// Local includes.
// Local includes.
...
@@ -47,7 +48,7 @@ Kubrick::Kubrick () :
...
@@ -47,7 +48,7 @@ Kubrick::Kubrick () :
singmasterMoves
(
0
)
singmasterMoves
(
0
)
{
{
// Window title.
// Window title.
// set
Caption
("Rubik's Cube"); // DELETED - This is a *trademark*.
// set
WindowTitle
("Rubik's Cube"); // DELETED - This is a *trademark*.
// use multi-sample (anti-aliased) OpenGL if available
// use multi-sample (anti-aliased) OpenGL if available
QGLFormat
defFormat
=
QGLFormat
::
defaultFormat
();
QGLFormat
defFormat
=
QGLFormat
::
defaultFormat
();
...
...
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