Commit 64f395af authored by Tobias WEBER's avatar Tobias WEBER

some renaming

parent 504bc4dd
...@@ -73,7 +73,7 @@ include_directories( ...@@ -73,7 +73,7 @@ include_directories(
) )
add_executable(maintool add_executable(magtool
main.cpp mainwnd.cpp mainwnd.h main.cpp mainwnd.cpp mainwnd.h
filebrowser.cpp filebrowser.h filebrowser.cpp filebrowser.h
workspace.cpp workspace.h workspace.cpp workspace.h
...@@ -94,7 +94,7 @@ add_executable(maintool ...@@ -94,7 +94,7 @@ add_executable(maintool
) )
target_link_libraries(maintool target_link_libraries(magtool
${Boost_LIBRARIES} ${Boost_LIBRARIES}
Qt5::Core Qt5::Gui Qt5::Widgets Qt5::PrintSupport Qt5::Core Qt5::Gui Qt5::Widgets Qt5::PrintSupport
-ldl -ldl
......
...@@ -17,7 +17,7 @@ int main(int argc, char** argv) ...@@ -17,7 +17,7 @@ int main(int argc, char** argv)
tl2::set_locales(); tl2::set_locales();
QApplication app(argc, argv); QApplication app(argc, argv);
QSettings sett("tobis_stuff", "in20tool"); QSettings sett("tobis_stuff", "magtool");
// set GUI style // set GUI style
//sett.setValue("mainwnd/theme", "fusion"); //sett.setValue("mainwnd/theme", "fusion");
......
...@@ -35,7 +35,7 @@ MainWnd::MainWnd(QSettings* pSettings) ...@@ -35,7 +35,7 @@ MainWnd::MainWnd(QSettings* pSettings)
// the command line widget has to be accessible globally for error output // the command line widget has to be accessible globally for error output
g_pCLI = m_pCLI; g_pCLI = m_pCLI;
this->setObjectName("in20"); this->setObjectName("magtool");
SetCurrentFile(""); SetCurrentFile("");
LoadPlugins(); LoadPlugins();
...@@ -217,7 +217,7 @@ void MainWnd::OpenFile() ...@@ -217,7 +217,7 @@ void MainWnd::OpenFile()
{ {
QString dirLast = m_pSettings->value("mainwnd/sessiondir", "").toString(); QString dirLast = m_pSettings->value("mainwnd/sessiondir", "").toString();
QString filename = QFileDialog::getOpenFileName(this, "Open File", dirLast, "IN20 Files (*.in20 *.IN20)"); QString filename = QFileDialog::getOpenFileName(this, "Open File", dirLast, "Magtool Files (*.mag *.MAG)");
if(filename=="" || !QFile::exists(filename)) if(filename=="" || !QFile::exists(filename))
return; return;
...@@ -245,7 +245,7 @@ void MainWnd::SaveFileAs() ...@@ -245,7 +245,7 @@ void MainWnd::SaveFileAs()
{ {
QString dirLast = m_pSettings->value("mainwnd/sessiondir", "").toString(); QString dirLast = m_pSettings->value("mainwnd/sessiondir", "").toString();
QString filename = QFileDialog::getSaveFileName(this, "Save File", dirLast, "IN20 Files (*.in20 *.IN20)"); QString filename = QFileDialog::getSaveFileName(this, "Save File", dirLast, "Magtool Files (*.mag *.MAG)");
if(filename=="") if(filename=="")
return; return;
...@@ -259,7 +259,7 @@ void MainWnd::SaveFileAs() ...@@ -259,7 +259,7 @@ void MainWnd::SaveFileAs()
*/ */
bool MainWnd::OpenFile(const QString &file) bool MainWnd::OpenFile(const QString &file)
{ {
static const std::string basename = "in20/"; static const std::string basename = "mag/";
if(file=="" || !QFile::exists(file)) if(file=="" || !QFile::exists(file))
return false; return false;
...@@ -302,7 +302,7 @@ bool MainWnd::OpenFile(const QString &file) ...@@ -302,7 +302,7 @@ bool MainWnd::OpenFile(const QString &file)
*/ */
bool MainWnd::SaveFile(const QString &file) bool MainWnd::SaveFile(const QString &file)
{ {
static const std::string basename = "in20/"; static const std::string basename = "mag/";
if(file=="") if(file=="")
return false; return false;
...@@ -389,7 +389,7 @@ void MainWnd::RebuildRecentFiles() ...@@ -389,7 +389,7 @@ void MainWnd::RebuildRecentFiles()
*/ */
void MainWnd::SetCurrentFile(const QString &file) void MainWnd::SetCurrentFile(const QString &file)
{ {
static const QString title("IN20 Tool"); static const QString title("Magtool");
m_curFile = file; m_curFile = file;
if(m_curFile == "") if(m_curFile == "")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment