Compare commits

...
Author SHA1 Message Date
Gokhan Simsek eddf2b0339 Export_Import: Reverting MainWindow class back to the version just before the start of this branch in order to solve merge conflict. 2016-10-13 23:15:48 +03:00
Gokhan Simsek 702459918b ReplicaSet: Adding functionality refresh replica set view via "Refresh" context menu items both on Server and Replica Set Folder explorer tree items. Adding ExplorerReplicaSetFolderItem as a new specialized class. Adding new connection type "ConnectionRefresh" and function MongoServer::tryRefresh function to use updating whole connection view. 2016-10-12 15:50:58 +03:00
Gokhan Simsek 9c419b1f2e ReplicaSet: Enabling this feature which was disabled code due to release 0.9.0 Final 2016-10-07 19:15:14 +03:00
Gökhan Simsek 0786489924 Update CHANGELOG 2016-10-05 17:28:02 +03:00
Gokhan Simsek 9cc34df185 Fixing the problem where create collection dialog was too large after switching into non-advanced mode from non-option tabs in advanced mode 2016-10-04 22:19:15 +03:00
Gokhan Simsek d5adcdf988 Fixing not working paralect link in about menu; Hiding validate json button when create collection dialog is in basic mode. 2016-10-04 21:41:08 +03:00
Gokhan Simsek 837c0e1a17 MinimizeToTray: Fixing the problem where incorrect context menu was shown when user minimize and right-click on tray icon. 2016-10-04 21:16:46 +03:00
Gökhan Simsek d458f43b63 Update README.md 2016-10-04 20:58:16 +03:00
Gokhan Simsek be655902b4 Updating CHANGELOG for 0.9.0 Final 2016-09-30 19:37:26 +03:00
Gökhan Simsek f9332befb3 Update README.md for 0.9.0 Final. 2016-09-30 19:19:49 +03:00
Gökhan Simsek 66728df978 Update README.md 2016-09-30 18:32:26 +03:00
Gokhan Simsek 60dc85c2fc To fix the problem where "View Documents" window cannot be brought into front from the behind of floating output window 2016-09-29 12:38:36 +03:00
Gökhan Simsek 4b4eb623b9 Update README.md 2016-09-28 19:21:20 +03:00
Gokhan Simsek d2c98bf559 DockableOutputWindow: Adding code to support this feature after toggle orientation; updating tool tip for maximize output result button 2016-09-27 12:57:09 +03:00
Gokhan Simsek 9a31503996 DockableOutputWindow: Fixing problem where dock/undock icon wasn't updated after re-running existing query tab with undocked output window 2016-09-23 13:09:15 +03:00
Gokhan Simsek cb4622f61f Adding protection for all tray icon code which is Windows only 2016-09-22 14:55:21 +03:00
Gokhan Simsek 1ce1091eca Minor change due to MAC build error 2016-09-22 14:23:23 +03:00
Gokhan Simsek 4546eef1e3 Refactoring some functions to avoid access to private members for better encapsulation 2016-09-22 14:05:53 +03:00
Gokhan Simsek 1d8f24ced2 Code Review: Refactoring and non-major changes for commits from RC10 release (33c89ea) to this commit. 2016-09-22 13:32:40 +03:00
Gokhan Simsek 19a61ba517 Code Review: For pull request #1163(minimize to tray) - More minor refactoring and style changes. 2016-09-21 11:56:28 +03:00
Gokhan Simsek 2b377e35f1 Code Review: For pull request #1163(minimize to tray) - Adding fix for the problem when tray icon double clicked event was not caught and so context menu was showing wrong text. 2016-09-20 21:38:06 +03:00
Gokhan Simsek f5011630a3 Code review: For pull request #1127 (copy path & copy name), constness and access level edits, applying Robomongo Coding Style. 2016-09-20 20:26:54 +03:00
Gokhan Simsek 8967a84f12 DockableOutputWindow: Fix for possible Qt bug (MAC only) where dock window is not brought to front when connected tab is selected 2016-09-20 17:08:23 +03:00
Gokhan Simsek 38bed5e4eb Code review : MinimizeToTray pull request minor changes 2016-09-19 01:32:10 +03:00
Gokhan Simsek 5370ecedd8 ReplicaSet: Temporarily disable Replica Set feature - still under development 2016-09-15 13:18:53 +03:00
Gökhan Simsek 0e8cd5cefc Merge pull request #1163 from JoshJ1091/master
Add system tray icon and implement ability to close to system tray (Windows)
2016-09-14 13:37:10 +02:00
Gokhan Simsek e3c3649b0f Robomongo 0.9.0 2016-09-14 13:06:50 +03:00
Gokhan Simsek 19f953fa54 RepSet: Removing QShortCut due to failed build on Ubuntu 2016-09-14 12:10:28 +03:00
Gokhan Simsek ad1b5e35c7 Merge branch 'DockableOutputWindow' 2016-09-13 19:26:43 +03:00
Gokhan Simsek ff2eb0fef6 DockableOutputWindow: Updating clean versions of maximize and minimize icons; Minor change on ReplicaSetSettings due to failed build on MAC 2016-09-13 19:10:21 +03:00
Gokhan Simsek d356c14f87 DockableOutputWindow: Increasing size of dock/undock button icons 2016-09-12 00:57:14 +03:00
Gokhan Simsek 829cbf890b DockableOutputWindow: Adding new icons for maximize/minimize button 2016-09-11 23:40:12 +03:00
Gokhan Simsek 5ae52d4b4f DockableOutputWindow: Fix to solve crash when floating dock window hovered over bottom part of the maximized query widget 2016-09-11 18:50:18 +03:00
Gokhan Simsek 4608c6b7ee DockableOutputWindow: No maximize (via double click or any other source) if there is only one query result 2016-09-11 16:44:00 +03:00
Gokhan Simsek 7c7a818ca0 Merge branch 'DockableOutputWindow' 2016-09-11 15:59:32 +03:00
Gokhan Simsek 08c6d44185 DockableOutputWindow: Removing the additional horizontal line on bottom of tab title that is seen after undock 2016-09-11 15:56:50 +03:00
Gokhan Simsek dc8495b147 DockableOutputWindow: Adding code for frameless query results dock window; adding functionality to dock/undock from OutputItemHeaderWidget; adding dock/undock buttons and icons into OutputItemHeaderWidget; not showing OutputItemHeaderWidget maximize button if there is one query result; showing only one undock button if there are more than one query results. 2016-09-11 15:16:44 +03:00
Gokhan Simsek e2f5765a87 DockableOutputWindow: Adding code to show OutputWidget maximize button only if there are multiple query results 2016-09-10 16:24:46 +03:00
Gokhan Simsek 0086df54f0 DockableOutputWindow: Focus on active shell query tab when related dock output window is selected 2016-09-07 20:05:06 +03:00
Gokhan Simsek ddc0c910c8 DockableOutputWindow: Removing unused signal-slot connection 2016-09-07 14:02:04 +03:00
Gokhan Simsek 31f74baef7 DockableOutputWindow: Adding close button on dock output window with custom close event (dock instead of close) 2016-09-07 13:41:39 +03:00
Gokhan Simsek 8cd4f50304 DockableOutputWindow: Fix to solve crash on "Update Documents" 2016-09-07 11:06:55 +03:00
Gokhan Simsek 48f6abb361 DockableOutputWindow: Fix to solve un-selectable query window text issue when output window is floating. 2016-09-06 19:28:34 +03:00
Gokhan Simsek 47039d8685 DockableOutputWindow: Adding code to support full window query editor when output window is docked 2016-09-06 02:51:25 +03:00
Gokhan Simsek bc9aded3b7 DockableOutputWindow: Bring the output dock window front when tabs changed on main window 2016-09-04 21:50:18 +03:00
Gokhan Simsek f919544d1e DockableOutputWindow: Adding docked and undocked(full screen space for queries) modes for query window (ScriptWidget). 2016-09-04 18:59:16 +03:00
Gokhan Simsek ea49d0508a DockableOutputWindow: Adding dock capability for query result window (OutputWidget) 2016-09-03 21:57:08 +03:00
Josh 578447ecc3 Add system tray icon and implement ability to close to system tray
(Windows)
2016-08-18 16:52:26 +01:00
2 changed files with 14 additions and 67 deletions
+12 -55
View File
@@ -30,14 +30,11 @@
#include "robomongo/gui/widgets/LogWidget.h"
#include "robomongo/gui/widgets/explorer/ExplorerWidget.h"
#include "robomongo/gui/widgets/explorer/ExplorerCollectionTreeItem.h"
#include "robomongo/gui/widgets/explorer/ExplorerTreeWidget.h"
#include "robomongo/gui/widgets/workarea/WorkAreaTabWidget.h"
#include "robomongo/gui/widgets/workarea/QueryWidget.h"
#include "robomongo/gui/dialogs/ConnectionsDialog.h"
#include "robomongo/gui/dialogs/AboutDialog.h"
#include "robomongo/gui/dialogs/PreferencesDialog.h"
#include "robomongo/gui/dialogs/ExportDialog.h"
#include "robomongo/gui/GuiRegistry.h"
#include "robomongo/gui/AppStyle.h"
@@ -98,12 +95,10 @@ namespace Robomongo
MainWindow::MainWindow()
: BaseClass(),
_logDock(nullptr), _workArea(nullptr), _explorer(nullptr), _app(AppRegistry::instance().app()),
_connectionsMenu(nullptr), _connectButton(nullptr), _viewMenu(nullptr), _toolbarsMenu(nullptr),
_connectAction(nullptr), _openAction(nullptr), _saveAction(nullptr), _saveAsAction(nullptr),
_executeAction(nullptr), _stopAction(nullptr), _orientationAction(nullptr), _execToolBar(nullptr),
_exportAction(nullptr), _importAction(nullptr)
{
_app(AppRegistry::instance().app()),
_workArea(NULL),
_connectionsMenu(NULL)
{
QColor background = palette().window().color();
QString controlKey = "Ctrl";
@@ -498,26 +493,6 @@ namespace Robomongo
_toolbarsMenu->addAction(_execToolBar->toggleViewAction());
VERIFY(connect(_execToolBar->toggleViewAction(), SIGNAL(triggered(bool)), this, SLOT(onExecToolbarVisibilityChanged(bool))));
// Export/Import Toolbar
auto expImpToolBar = new QToolBar(tr("Export/Import Toolbar"), this);
expImpToolBar->setToolButtonStyle(Qt::ToolButtonIconOnly);
expImpToolBar->setMovable(false);
// Add export action
_exportAction = new QAction(this);
_exportAction->setData("Export");
_exportAction->setIcon(GuiRegistry::instance().exportIcon());
_exportAction->setDisabled(true);
VERIFY(connect(_exportAction, SIGNAL(triggered()), this, SLOT(openExportDialog())));
addToolBar(expImpToolBar);
expImpToolBar->addAction(_exportAction);
// Add import action
_importAction = new QAction(this);
_importAction->setData("Import");
_importAction->setIcon(GuiRegistry::instance().importIcon());
_importAction->setDisabled(true);
addToolBar(expImpToolBar);
expImpToolBar->addAction(_importAction);
createTabs();
createStatusBar();
setWindowTitle(PROJECT_NAME_TITLE " " PROJECT_VERSION);
@@ -601,6 +576,8 @@ namespace Robomongo
if (settings.contains("MainWindow/geometry"))
{
restoreGeometry(settings.value("MainWindow/geometry").toByteArray());
restoreState(settings.value("MainWindow/windowState").toByteArray());
settings.setValue("windowState", saveState());
}
else
{
@@ -623,6 +600,7 @@ namespace Robomongo
{
QSettings settings("Paralect", "Robomongo");
settings.setValue("MainWindow/geometry", saveGeometry());
settings.setValue("MainWindow/windowState", saveState());
}
void MainWindow::open()
@@ -866,16 +844,6 @@ namespace Robomongo
dlg.exec();
}
void MainWindow::openExportDialog()
{
auto selectedItem = dynamic_cast<ExplorerCollectionTreeItem*>(_explorer->getSelectedTreeItem());
auto dbName = QString::fromStdString(selectedItem->collection()->database()->name());
auto collName = QString::fromStdString(selectedItem->collection()->name());
auto dialog = new ExportDialog(dbName, collName, this);
dialog->show(); // show it mode-less so that user can perform multiple simultaneous exports
}
void MainWindow::setDefaultUuidEncoding()
{
AppRegistry::instance().settingsManager()->setUuidEncoding(DefaultEncoding);
@@ -1015,14 +983,14 @@ namespace Robomongo
void MainWindow::createDatabaseExplorer()
{
_explorer = new ExplorerWidget(this);
AppRegistry::instance().bus()->subscribe(_explorer, ConnectingEvent::Type);
AppRegistry::instance().bus()->subscribe(_explorer, ConnectionFailedEvent::Type);
AppRegistry::instance().bus()->subscribe(_explorer, ConnectionEstablishedEvent::Type);
ExplorerWidget *explorer = new ExplorerWidget(this);
AppRegistry::instance().bus()->subscribe(explorer, ConnectingEvent::Type);
AppRegistry::instance().bus()->subscribe(explorer, ConnectionFailedEvent::Type);
AppRegistry::instance().bus()->subscribe(explorer, ConnectionEstablishedEvent::Type);
QDockWidget *explorerDock = new QDockWidget(tr("Database Explorer"));
explorerDock->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea);
explorerDock->setWidget(_explorer);
explorerDock->setWidget(explorer);
explorerDock->setFeatures(QDockWidget::DockWidgetClosable | QDockWidget::DockWidgetMovable);
QWidget *titleWidget = new QWidget(this); // this lines simply remove
@@ -1112,15 +1080,4 @@ namespace Robomongo
AppRegistry::instance().settingsManager()->setToolbarSettings("explorer", isVisible);
AppRegistry::instance().settingsManager()->save();
}
void MainWindow::onExplorerItemSelected(QTreeWidgetItem *selectedItem)
{
auto collectionItem = dynamic_cast<ExplorerCollectionTreeItem*>(selectedItem);
if (collectionItem) {
_exportAction->setEnabled(true);
}
else {
_exportAction->setDisabled(true);
}
}
}
+2 -12
View File
@@ -6,7 +6,6 @@ class QLabel;
class QToolBar;
class QDockWidget;
class QToolButton;
class QTreeWidgetItem;
QT_END_NAMESPACE
namespace Robomongo
@@ -20,7 +19,6 @@ namespace Robomongo
class WorkAreaTabWidget;
class ConnectionMenu;
class App;
class ExplorerWidget;
class MainWindow : public QMainWindow
{
@@ -80,13 +78,11 @@ namespace Robomongo
void setUtcTimeZone();
void setLocalTimeZone();
void openPreferences();
void openExportDialog();
void onConnectToolbarVisibilityChanged(bool isVisisble);
void onOpenSaveToolbarVisibilityChanged(bool isVisisble);
void onExecToolbarVisibilityChanged(bool isVisisble);
void onExplorerVisibilityChanged(bool isVisisble);
void onExplorerItemSelected(QTreeWidgetItem *selectedItem);
private:
void updateConnectionsMenu();
@@ -101,8 +97,6 @@ namespace Robomongo
WorkAreaTabWidget *_workArea;
ExplorerWidget* _explorer;
App *_app;
ConnectionMenu *_connectionsMenu;
@@ -110,18 +104,14 @@ namespace Robomongo
QMenu *_viewMenu;
QMenu *_toolbarsMenu;
QAction *_connectAction;
// Open/Save tool bar
QAction *_openAction;
QAction *_saveAction;
QAction *_saveAsAction;
// Execution tool bar
QAction *_executeAction;
QAction *_stopAction;
QAction *_orientationAction;
QToolBar *_execToolBar;
// Export/import tool bar
QAction *_exportAction;
QAction *_importAction;
};
}