Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
SDK
Cervisia
Commits
aa4c48e7
Commit
aa4c48e7
authored
Jan 27, 2006
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compile/link
KURL->KUrl svn path=/trunk/KDE/kdesdk/cervisia/; revision=502943
parent
aaa2761a
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
27 additions
and
27 deletions
+27
-27
cervisiapart.cpp
cervisiapart.cpp
+8
-8
cervisiapart.h
cervisiapart.h
+1
-1
cervisiashell.cpp
cervisiashell.cpp
+2
-2
cervisiashell.h
cervisiashell.h
+1
-1
checkoutdlg.cpp
checkoutdlg.cpp
+1
-1
cvsinitdlg.cpp
cvsinitdlg.cpp
+1
-1
cvsservice/cvsaskpass.cpp
cvsservice/cvsaskpass.cpp
+1
-1
cvsservice/cvsloginjob.cpp
cvsservice/cvsloginjob.cpp
+1
-1
editwithmenu.cpp
editwithmenu.cpp
+2
-2
editwithmenu.h
editwithmenu.h
+2
-2
logdlg.cpp
logdlg.cpp
+1
-1
main.cpp
main.cpp
+1
-1
settingsdlg.cpp
settingsdlg.cpp
+2
-2
settingsdlg.h
settingsdlg.h
+3
-3
No files found.
cervisiapart.cpp
View file @
aa4c48e7
...
...
@@ -186,7 +186,7 @@ KConfig *CervisiaPart::config()
return
CervisiaFactory
::
instance
()
->
config
();
}
bool
CervisiaPart
::
openURL
(
const
KU
RL
&
u
)
bool
CervisiaPart
::
openURL
(
const
KU
rl
&
u
)
{
// right now, we are unfortunately not network-aware
if
(
!
u
.
isLocalFile
()
)
...
...
@@ -242,7 +242,7 @@ void CervisiaPart::setupActions()
action
->
setWhatsThis
(
hint
);
recent
=
new
KRecentFilesAction
(
i18n
(
"Recent Sandboxes"
),
0
,
this
,
SLOT
(
openURL
(
const
KU
RL
&
)
),
this
,
SLOT
(
openURL
(
const
KU
rl
&
)
),
actionCollection
(),
"file_open_recent"
);
action
=
new
KAction
(
i18n
(
"&Insert ChangeLog Entry..."
),
0
,
...
...
@@ -666,7 +666,7 @@ void CervisiaPart::popupRequested(KListView*, Q3ListViewItem* item, const QPoint
if
(
!
selectedFile
.
isEmpty
()
)
{
KU
RL
u
;
KU
rl
u
;
u
.
setPath
(
sandbox
+
"/"
+
selectedFile
);
m_currentEditMenu
=
new
Cervisia
::
EditWithMenu
(
u
,
popup
);
...
...
@@ -828,7 +828,7 @@ void CervisiaPart::openFiles(const QStringList &filenames)
QStringList
::
ConstIterator
end
=
filenames
.
end
();
for
(
;
it
!=
end
;
++
it
)
{
KU
RL
u
;
KU
rl
u
;
u
.
setPath
(
dir
.
absoluteFilePath
(
*
it
));
KRun
*
run
=
new
KRun
(
u
,
0
,
true
,
false
);
run
->
setRunExecutables
(
false
);
...
...
@@ -1024,7 +1024,7 @@ void CervisiaPart::slotFileProperties()
// Create URL from selected filename
QDir
dir
(
sandbox
);
KU
RL
u
;
KU
rl
u
;
u
.
setPath
(
dir
.
absoluteFilePath
(
filename
));
// show file properties dialog
...
...
@@ -1713,7 +1713,7 @@ bool CervisiaPart::openSandbox(const QString &dirname)
// remove path from recent sandbox menu
QFileInfo
fi
(
dirname
);
recent
->
removeURL
(
KU
RL
::
fromPathOrURL
(
fi
.
absoluteFilePath
())
);
recent
->
removeURL
(
KU
rl
::
fromPathOrURL
(
fi
.
absoluteFilePath
())
);
return
false
;
}
...
...
@@ -1724,14 +1724,14 @@ bool CervisiaPart::openSandbox(const QString &dirname)
// get path of sandbox for recent sandbox menu
sandbox
=
cvsRepository
.
workingCopy
();
recent
->
addURL
(
KU
RL
::
fromPathOrURL
(
sandbox
)
);
recent
->
addURL
(
KU
rl
::
fromPathOrURL
(
sandbox
)
);
// get repository for the caption of the window
repository
=
cvsRepository
.
location
();
emit
setWindowCaption
(
sandbox
+
"("
+
repository
+
")"
);
// set m_url member for tabbed window modus of Konqueror
m_url
=
KU
RL
::
fromPathOrURL
(
sandbox
);
m_url
=
KU
rl
::
fromPathOrURL
(
sandbox
);
// *NOTICE*
// The order is important here. We have to set the m_url member before
...
...
cervisiapart.h
View file @
aa4c48e7
...
...
@@ -73,7 +73,7 @@ public:
public
slots
:
// unused because we overwrite the default behaviour of openURL()
virtual
bool
openFile
()
{
return
true
;
}
virtual
bool
openURL
(
const
KU
RL
&
);
virtual
bool
openURL
(
const
KU
rl
&
);
void
openFile
(
QString
filename
);
void
openFiles
(
const
QStringList
&
filenames
);
...
...
cervisiashell.cpp
View file @
aa4c48e7
...
...
@@ -137,11 +137,11 @@ void CervisiaShell::setupActions()
void
CervisiaShell
::
openURL
()
{
if
(
!
m_lastOpenDir
.
isEmpty
()
)
m_part
->
openURL
(
KU
RL
::
fromPathOrURL
(
m_lastOpenDir
));
m_part
->
openURL
(
KU
rl
::
fromPathOrURL
(
m_lastOpenDir
));
}
void
CervisiaShell
::
openURL
(
const
KU
RL
&
url
)
void
CervisiaShell
::
openURL
(
const
KU
rl
&
url
)
{
m_part
->
openURL
(
url
);
}
...
...
cervisiashell.h
View file @
aa4c48e7
...
...
@@ -41,7 +41,7 @@ public:
public
slots
:
void
openURL
();
void
openURL
(
const
KU
RL
&
url
);
void
openURL
(
const
KU
rl
&
url
);
void
slotConfigureKeys
();
void
slotConfigureToolBars
();
...
...
checkoutdlg.cpp
View file @
aa4c48e7
...
...
@@ -126,7 +126,7 @@ CheckoutDialog::CheckoutDialog(KConfig& cfg, CvsService_stub* service,
workdir_edit
->
setText
(
QDir
::
homePath
());
workdir_edit
->
setMinimumWidth
(
fontMetrics
().
width
(
'X'
)
*
40
);
KU
RL
Completion
*
comp
=
new
KU
RL
Completion
();
KU
rl
Completion
*
comp
=
new
KU
rl
Completion
();
workdir_edit
->
setCompletionObject
(
comp
);
workdir_edit
->
setAutoDeleteCompletionObject
(
true
);
connect
(
workdir_edit
,
SIGNAL
(
returnPressed
(
const
QString
&
)),
...
...
cvsinitdlg.cpp
View file @
aa4c48e7
...
...
@@ -50,7 +50,7 @@ CvsInitDialog::CvsInitDialog(QWidget* parent, const char* name)
m_directoryEdit
=
new
KLineEdit
(
mainWidget
);
m_directoryEdit
->
setFocus
();
KU
RL
Completion
*
comp
=
new
KU
RL
Completion
();
KU
rl
Completion
*
comp
=
new
KU
rl
Completion
();
m_directoryEdit
->
setCompletionObject
(
comp
);
m_directoryEdit
->
setAutoDeleteCompletionObject
(
true
);
...
...
cvsservice/cvsaskpass.cpp
View file @
aa4c48e7
...
...
@@ -23,7 +23,7 @@
#include <kapplication.h>
#include <kcmdlineargs.h>
#include <klocale.h>
#include <kpass
dl
g.h>
#include <kpass
worddialo
g.h>
#include <iostream>
...
...
cvsservice/cvsloginjob.cpp
View file @
aa4c48e7
...
...
@@ -22,7 +22,7 @@
#include <kdebug.h>
#include <klocale.h>
#include <kpass
dl
g.h>
#include <kpass
worddialo
g.h>
#include <sys/types.h>
#include <signal.h>
...
...
editwithmenu.cpp
View file @
aa4c48e7
...
...
@@ -27,7 +27,7 @@ using namespace Cervisia;
#include <kurl.h>
EditWithMenu
::
EditWithMenu
(
const
KU
RL
&
url
,
QWidget
*
parent
)
EditWithMenu
::
EditWithMenu
(
const
KU
rl
&
url
,
QWidget
*
parent
)
:
QObject
(
parent
)
,
m_menu
(
0
)
,
m_url
(
url
)
...
...
@@ -67,7 +67,7 @@ void EditWithMenu::itemActivated(int item)
{
KService
::
Ptr
service
=
m_offers
[
item
];
KU
RL
::
List
list
;
KU
rl
::
List
list
;
list
.
append
(
m_url
);
KRun
::
run
(
*
service
,
list
);
...
...
editwithmenu.h
View file @
aa4c48e7
...
...
@@ -37,7 +37,7 @@ class EditWithMenu : public QObject
Q_OBJECT
public:
EditWithMenu
(
const
KU
RL
&
url
,
QWidget
*
parent
);
EditWithMenu
(
const
KU
rl
&
url
,
QWidget
*
parent
);
Q3PopupMenu
*
menu
();
private
slots
:
...
...
@@ -46,7 +46,7 @@ private slots:
private:
KTrader
::
OfferList
m_offers
;
Q3PopupMenu
*
m_menu
;
KU
RL
m_url
;
KU
rl
m_url
;
};
...
...
logdlg.cpp
View file @
aa4c48e7
...
...
@@ -432,7 +432,7 @@ void LogDialog::slotOk()
chmod
(
QFile
::
encodeName
(
tempFileName
),
0400
);
// open file in preferred editor
KU
RL
url
;
KU
rl
url
;
url
.
setPath
(
tempFileName
);
(
void
)
new
KRun
(
url
,
0
,
true
,
false
);
}
...
...
main.cpp
View file @
aa4c48e7
...
...
@@ -193,7 +193,7 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
const
KCmdLineArgs
*
args
=
KCmdLineArgs
::
parsedArgs
();
if
(
args
->
count
()
)
{
KU
RL
directory
=
args
->
url
(
0
);
KU
rl
directory
=
args
->
url
(
0
);
shell
->
openURL
(
directory
);
}
else
...
...
settingsdlg.cpp
View file @
aa4c48e7
...
...
@@ -250,7 +250,7 @@ void SettingsDialog::addGeneralPage()
layout
->
addWidget
(
usernameedit
);
QLabel
*
cvspathlabel
=
new
QLabel
(
i18n
(
"&Path to CVS executable, or 'cvs':"
),
generalPage
);
cvspathedit
=
new
KU
RL
Requester
(
generalPage
);
cvspathedit
=
new
KU
rl
Requester
(
generalPage
);
cvspathlabel
->
setBuddy
(
cvspathedit
);
layout
->
addWidget
(
cvspathlabel
);
...
...
@@ -293,7 +293,7 @@ void SettingsDialog::addDiffPage()
layout
->
addWidget
(
tabwidthedit
,
2
,
1
);
QLabel
*
extdifflabel
=
new
QLabel
(
i18n
(
"External diff &frontend:"
),
diffPage
);
extdiffedit
=
new
KU
RL
Requester
(
diffPage
);
extdiffedit
=
new
KU
rl
Requester
(
diffPage
);
extdifflabel
->
setBuddy
(
extdiffedit
);
layout
->
addWidget
(
extdifflabel
,
3
,
0
);
...
...
settingsdlg.h
View file @
aa4c48e7
...
...
@@ -31,7 +31,7 @@ class KIntNumInput;
class
KLineEdit
;
class
KConfig
;
class
KColorButton
;
class
KU
RL
Requester
;
class
KU
rl
Requester
;
class
AdvancedPage
;
...
...
@@ -71,10 +71,10 @@ private:
KConfig
*
config
;
KIntNumInput
*
contextedit
;
KIntNumInput
*
tabwidthedit
;
KU
RL
Requester
*
cvspathedit
;
KU
rl
Requester
*
cvspathedit
;
KLineEdit
*
usernameedit
;
KLineEdit
*
diffoptedit
;
KU
RL
Requester
*
extdiffedit
;
KU
rl
Requester
*
extdiffedit
;
QCheckBox
*
remotestatusbox
;
QCheckBox
*
localstatusbox
;
FontButton
*
m_protocolFontBox
;
...
...
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