Public Member Functions | |
| QtMain (int argc, char *argv[]) | |
| virtual void | TrackFile (const Dedupe::FileInfo &file) |
| virtual void | UntrackFile (const Dedupe::FileInfo &file) |
| virtual void | ClearTrackedFiles () |
| virtual bool | IsRecursive () |
| virtual int | exec () |
Protected Slots | |
| void | quitEvent () |
Protected Member Functions | |
| std::vector< Dedupe::FileInfo > | GetFiles () |
| std::vector< Dedupe::FileInfo > | GetSelectedTrackedFiles () |
| void | closeEvent (QCloseEvent *event) |
| void | changeEvent (QEvent *event) |
Definition at line 28 of file implementation.h.
| void Dedupe::GUI::QtMain::ClearTrackedFiles | ( | ) | [virtual] |
Clears the graphical list of tracked files.
Implements Dedupe::GUI::Main.
Definition at line 114 of file implementation.cpp.
| int Dedupe::GUI::QtMain::exec | ( | ) | [virtual] |
Waits for user interaction
Implements Dedupe::GUI::Main.
Definition at line 127 of file implementation.cpp.
{
| std::vector< Dedupe::FileInfo > Dedupe::GUI::QtMain::GetFiles | ( | ) | [protected, virtual] |
Get several files from the user.
Implements Dedupe::GUI::Main.
Definition at line 134 of file implementation.cpp.
{
return QMessageBox::question( this, tr( "Settings" ),
tr( "Process directories recursively?" ),
QMessageBox::Yes | QMessageBox::No )
== QMessageBox::Yes;
| std::vector< Dedupe::FileInfo > Dedupe::GUI::QtMain::GetSelectedTrackedFiles | ( | ) | [protected, virtual] |
Get selected files in the list of tracked files.
Implements Dedupe::GUI::Main.
Definition at line 144 of file implementation.cpp.
{
show();
OnShow();
return qApp->exec();
}
std::vector<Dedupe::FileInfo> QtMain::GetFiles()
| bool Dedupe::GUI::QtMain::IsRecursive | ( | ) | [virtual] |
Shows a dialog to ask whether directories should be processed recursively or not.
Implements Dedupe::GUI::Main.
Definition at line 119 of file implementation.cpp.
References Dedupe::FileInfo::GetPath().
{
TrackedFiles->addItem( file.GetPath().c_str() );
}
void QtMain::UntrackFile( const Dedupe::FileInfo & file )
{
for( int i = 0; i < TrackedFiles->count(); i++ )
| void Dedupe::GUI::QtMain::TrackFile | ( | const Dedupe::FileInfo & | file | ) | [virtual] |
Refresh the main window - add the given File to the list
| file | reference to the new file |
Implements Dedupe::GUI::Main.
Definition at line 100 of file implementation.cpp.
{
| void Dedupe::GUI::QtMain::UntrackFile | ( | const Dedupe::FileInfo & | file | ) | [virtual] |
Refresh the main window - remove the given File from the list
Implements Dedupe::GUI::Main.
Definition at line 105 of file implementation.cpp.
1.7.1